blob: b3186a2542b07cdbc3d1d8bb6073fa437da6e673 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
# This .cfg file is used to generate the interface and implementing
# class for the GLX extensions.
Package com.sun.opengl.impl.x11
Style InterfaceAndImpl
JavaClass GLXExt
ImplPackage com.sun.opengl.impl.x11
ImplJavaClass GLXExtImpl
Include gl-common-x11.cfg
EmitProcAddressTable true
ProcAddressTableClassName GLXExtProcAddressTable
ContextVariableName _context
# Ignore everything that doesn't start with glX or GLX
IgnoreNot ^(glX|GLX).+
CustomCCode #include <inttypes.h>
CustomCCode #include <stdlib.h>
CustomCCode #include <X11/Xlib.h>
CustomCCode /* Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in
CustomCCode "glext.h" are parsed. */
CustomCCode #define GL_GLEXT_PROTOTYPES
CustomCCode /* Define GLX_GLXEXT_PROTOTYPES so that the OpenGL extension prototypes in
CustomCCode "glxext.h" are parsed. */
CustomCCode #define GLX_GLXEXT_PROTOTYPES
CustomCCode /* Include the OpenGL headers */
CustomCCode #include <GL/gl.h>
CustomCCode #include <GL/glx.h>
CustomCCode #include <GL/glxext.h>
CustomCCode /* Provide Windows typedefs */
CustomCCode typedef void* LPVOID;
CustomCCode typedef unsigned int* PUINT;
CustomJavaCode GLXExt public boolean isFunctionAvailable(String glFunctionName);
CustomJavaCode GLXExt public boolean isExtensionAvailable(String glExtensionName);
CustomJavaCode GLXExtImpl public GLXExtImpl(X11GLContext context) {
CustomJavaCode GLXExtImpl this._context = context;
CustomJavaCode GLXExtImpl }
CustomJavaCode GLXExtImpl public boolean isFunctionAvailable(String glFunctionName)
CustomJavaCode GLXExtImpl {
CustomJavaCode GLXExtImpl return _context.isFunctionAvailable(glFunctionName);
CustomJavaCode GLXExtImpl }
CustomJavaCode GLXExtImpl public boolean isExtensionAvailable(String glExtensionName)
CustomJavaCode GLXExtImpl {
CustomJavaCode GLXExtImpl return _context.isExtensionAvailable(glExtensionName);
CustomJavaCode GLXExtImpl }
CustomJavaCode GLXExtImpl private X11GLContext _context;
# These Ignores cause the core GLX routines to be ignored from the
# GLXExt interface and GLXExtImpl implementing class.
Ignore glXChooseVisual
Ignore glXCreateContext
Ignore glXDestroyContext
Ignore glXMakeCurrent
Ignore glXCopyContext
Ignore glXSwapBuffers
Ignore glXCreateGLXPixmap
Ignore glXDestroyGLXPixmap
Ignore glXQueryExtension
Ignore glXQueryVersion
Ignore glXIsDirect
Ignore glXGetConfig
Ignore glXGetCurrentContext
Ignore glXGetCurrentDrawable
Ignore glXWaitGL
Ignore glXWaitX
Ignore glXUseXFont
Ignore glXQueryExtensionsString
Ignore glXQueryServerString
Ignore glXGetClientString
Ignore glXGetCurrentDisplay
Ignore glXChooseFBConfig
Ignore glXGetFBConfigAttrib
Ignore glXGetFBConfigs
Ignore glXGetVisualFromFBConfig
Ignore glXCreateWindow
Ignore glXDestroyWindow
Ignore glXCreatePixmap
Ignore glXDestroyPixmap
Ignore glXCreatePbuffer
Ignore glXDestroyPbuffer
Ignore glXQueryDrawable
Ignore glXCreateNewContext
Ignore glXMakeContextCurrent
Ignore glXGetCurrentReadDrawable
Ignore glXQueryContext
Ignore glXSelectEvent
Ignore glXGetSelectedEvent
Ignore glXGetProcAddress
# Ignore a few extensions that bring in data types we don't want to
# expose in the public API (and that are useless anyway without
# exposing more of the implementation)
Ignore glXGetFBConfigAttribSGIX
Ignore glXChooseFBConfigSGIX
Ignore glXCreateGLXPixmapWithConfigSGIX
Ignore glXCreateContextWithConfigSGIX
Ignore glXGetVisualFromFBConfigSGIX
Ignore glXGetFBConfigFromVisualSGIX
Ignore glXCreateGLXPbufferSGIX
Ignore glXDestroyGLXPbufferSGIX
Ignore glXQueryGLXPbufferSGIX
Ignore glXSelectEventSGIX
Ignore glXGetSelectedEventSGIX
Ignore glXCreateGLXPixmapMESA
# Now we can ignore the GLXFBConfig and XVisualInfo data types
Ignore GLXFBConfig
Ignore XVisualInfo
# Ignore the SGI hyperpipe extension, which will require more GlueGen
# work to expose the pipeName fields in the various structs
Ignore glXQueryHyperpipeNetworkSGIX
Ignore glXHyperpipeConfigSGIX
Ignore glXQueryHyperpipeConfigSGIX
Ignore glXDestroyHyperpipeConfigSGIX
Ignore glXBindHyperpipeSGIX
Ignore glXQueryHyperpipeBestAttribSGIX
Ignore glXHyperpipeAttribSGIX
Ignore glXQueryHyperpipeAttribSGIX
Ignore GLXHyperpipeNetworkSGIX
Ignore GLXHyperpipeConfigSGIX
Ignore GLXPipeRect
Ignore GLXPipeRectLimits
|