~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to GL/windows/glwindows.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
ImportĀ upstreamĀ versionĀ 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
28
typedef struct {
 
29
    unsigned enableDebug : 1;
 
30
    unsigned enableTrace : 1;
 
31
    unsigned dumpPFD : 1;
 
32
    unsigned dumpHWND : 1;
 
33
    unsigned dumpDC : 1;
 
34
} glWinDebugSettingsRec, *glWinDebugSettingsPtr;
 
35
extern glWinDebugSettingsRec glWinDebugSettings;
 
36
 
 
37
typedef 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
 
 
48
extern 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