VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/glwindows.h@ 78293

Last change on this file since 78293 was 43272, checked in by vboxsync, 12 years ago

Additions/x11: more original X server headers.

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1#ifdef HAVE_DIX_CONFIG_H
2#include <dix-config.h>
3#endif
4
5#include <X11/Xwindows.h>
6#include <GL/gl.h>
7#include <GL/glext.h>
8
9#include <glxserver.h>
10#include <glxext.h>
11
12#include <windowstr.h>
13#include <resource.h>
14#include <GL/glxint.h>
15#include <GL/glxtokens.h>
16#include <scrnintstr.h>
17#include <glxserver.h>
18#include <glxscreens.h>
19#include <glxdrawable.h>
20#include <glxcontext.h>
21#include <glxext.h>
22#include <glxutil.h>
23#include <glxscreens.h>
24#include <GL/internal/glcore.h>
25#include <stdlib.h>
26
27
28typedef struct {
29 unsigned enableDebug : 1;
30 unsigned enableTrace : 1;
31 unsigned dumpPFD : 1;
32 unsigned dumpHWND : 1;
33 unsigned dumpDC : 1;
34} glWinDebugSettingsRec, *glWinDebugSettingsPtr;
35extern glWinDebugSettingsRec glWinDebugSettings;
36
37typedef struct {
38 int num_vis;
39 __GLcontextModes *modes;
40 void **priv;
41
42 /* wrapped screen functions */
43 RealizeWindowProcPtr RealizeWindow;
44 UnrealizeWindowProcPtr UnrealizeWindow;
45 CopyWindowProcPtr CopyWindow;
46} glWinScreenRec;
47
48extern glWinScreenRec glWinScreens[MAXSCREENS];
49
50#define glWinGetScreenPriv(pScreen) &glWinScreens[pScreen->myNum]
51#define glWinScreenPriv(pScreen) glWinScreenRec *pScreenPriv = glWinGetScreenPriv(pScreen);
52
53#if 1
54#define GLWIN_TRACE() if (glWinDebugSettings.enableTrace) ErrorF("%s:%d: Trace\n", __FUNCTION__, __LINE__ )
55#define GLWIN_TRACE_MSG(msg, args...) if (glWinDebugSettings.enableTrace) ErrorF("%s:%d: " msg, __FUNCTION__, __LINE__, ##args )
56#define GLWIN_DEBUG_MSG(msg, args...) if (glWinDebugSettings.enableDebug) ErrorF("%s:%d: " msg, __FUNCTION__, __LINE__, ##args )
57#define GLWIN_DEBUG_MSG2(msg, args...) if (glWinDebugSettings.enableDebug) ErrorF(msg, ##args )
58#else
59#define GLWIN_TRACE()
60#define GLWIN_TRACE_MSG(a, ...)
61#define GLWIN_DEBUG_MSG(a, ...)
62#define GLWIN_DEBUG_MSG2(a, ...)
63#endif
64
Note: See TracBrowser for help on using the repository browser.

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