1 | /* $Id$ */
|
---|
2 |
|
---|
3 | /** @file
|
---|
4 | * VBox wine & ogl debugging stuff
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2011 Oracle Corporation
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef ___VBoxDbgGl_h__
|
---|
20 | #define ___VBoxDbgGl_h__
|
---|
21 |
|
---|
22 | //#include <windows.h>
|
---|
23 | //#include "../wined3d/wined3d_gl.h"
|
---|
24 |
|
---|
25 | void dbglGetTexImage2D(const struct wined3d_gl_info *gl_info, GLint texTarget, GLint texName, GLint level, GLvoid **ppvImage, GLint *pw, GLint *ph, GLenum format, GLenum type);
|
---|
26 | void dbglDumpTexImage2D(const struct wined3d_gl_info *gl_info, const char* pszDesc, GLint texTarget, GLint texName, GLint level, GLboolean fBreak);
|
---|
27 | void dbglCmpTexImage2D(const struct wined3d_gl_info *gl_info, const char* pszDesc, GLint texTarget, GLint texName, GLint level, void *pvImage, GLint width, GLint height, GLenum format, GLenum type);
|
---|
28 | void dbglCheckTexUnits(const struct wined3d_gl_info *gl_info, const struct IWineD3DDeviceImpl *pDevice, BOOL fBreakIfCanNotMatch);
|
---|
29 |
|
---|
30 | #ifdef DEBUG_misha
|
---|
31 | #define DBGL_CHECK_DRAWPRIM(_gl_info, _pDevice) do { \
|
---|
32 | if (g_VBoxDbgGlFCheckDrawPrim) { \
|
---|
33 | dbglCheckTexUnits((_gl_info), (_pDevice), g_VBoxDbgGlFBreakDrawPrimIfCanNotMatch); \
|
---|
34 | } \
|
---|
35 | } while (0)
|
---|
36 | #else
|
---|
37 | #define DBGL_CHECK_DRAWPRIM(_gl_info, _pDevice) do {} while (0)
|
---|
38 | #endif
|
---|
39 |
|
---|
40 | extern DWORD g_VBoxDbgGlFCheckDrawPrim;
|
---|
41 | extern DWORD g_VBoxDbgGlFBreakDrawPrimIfCanNotMatch;
|
---|
42 |
|
---|
43 | #endif /* #ifndef ___VBoxDbgGl_h__ */
|
---|