VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/vbox/VBoxDbgGl.h@ 43129

Last change on this file since 43129 was 43129, checked in by vboxsync, 13 years ago

fix EOL style mess

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
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
25void dbglGetTexImage2D(const struct wined3d_gl_info *gl_info, GLint texTarget, GLint texName, GLint level, GLvoid **ppvImage, GLint *pw, GLint *ph, GLenum format, GLenum type);
26void dbglDumpTexImage2D(const struct wined3d_gl_info *gl_info, const char* pszDesc, GLint texTarget, GLint texName, GLint level, GLboolean fBreak);
27void 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);
28void 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
40extern DWORD g_VBoxDbgGlFCheckDrawPrim;
41extern DWORD g_VBoxDbgGlFBreakDrawPrimIfCanNotMatch;
42
43#endif /* #ifndef ___VBoxDbgGl_h__ */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette