1
/* GdkGLExt - OpenGL Extension to GDK
2
* Copyright (C) 2002-2004 Naofumi Yasufuku
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20
* This is a generated file. Please modify "gen-gdkglglxext-c.pl".
24
#include "gdkglprivate-x11.h"
25
#include "gdkglglxext.h"
31
static GdkGL_GLX_VERSION_1_3 _procs_GLX_VERSION_1_3 = {
32
(GdkGLProc_glXGetFBConfigs) -1,
33
(GdkGLProc_glXChooseFBConfig) -1,
34
(GdkGLProc_glXGetFBConfigAttrib) -1,
35
(GdkGLProc_glXGetVisualFromFBConfig) -1,
36
(GdkGLProc_glXCreateWindow) -1,
37
(GdkGLProc_glXDestroyWindow) -1,
38
(GdkGLProc_glXCreatePixmap) -1,
39
(GdkGLProc_glXDestroyPixmap) -1,
40
(GdkGLProc_glXCreatePbuffer) -1,
41
(GdkGLProc_glXDestroyPbuffer) -1,
42
(GdkGLProc_glXQueryDrawable) -1,
43
(GdkGLProc_glXCreateNewContext) -1,
44
(GdkGLProc_glXMakeContextCurrent) -1,
45
(GdkGLProc_glXGetCurrentReadDrawable) -1,
46
(GdkGLProc_glXGetCurrentDisplay) -1,
47
(GdkGLProc_glXQueryContext) -1,
48
(GdkGLProc_glXSelectEvent) -1,
49
(GdkGLProc_glXGetSelectedEvent) -1
54
gdk_gl_get_glXGetFBConfigs (void)
56
if (_procs_GLX_VERSION_1_3.glXGetFBConfigs == (GdkGLProc_glXGetFBConfigs) -1)
57
_procs_GLX_VERSION_1_3.glXGetFBConfigs =
58
(GdkGLProc_glXGetFBConfigs) gdk_gl_get_proc_address ("glXGetFBConfigs");
61
g_message (" - gdk_gl_get_glXGetFBConfigs () - %s",
62
(_procs_GLX_VERSION_1_3.glXGetFBConfigs) ? "supported" : "not supported"));
64
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXGetFBConfigs);
67
/* glXChooseFBConfig */
69
gdk_gl_get_glXChooseFBConfig (void)
71
if (_procs_GLX_VERSION_1_3.glXChooseFBConfig == (GdkGLProc_glXChooseFBConfig) -1)
72
_procs_GLX_VERSION_1_3.glXChooseFBConfig =
73
(GdkGLProc_glXChooseFBConfig) gdk_gl_get_proc_address ("glXChooseFBConfig");
76
g_message (" - gdk_gl_get_glXChooseFBConfig () - %s",
77
(_procs_GLX_VERSION_1_3.glXChooseFBConfig) ? "supported" : "not supported"));
79
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXChooseFBConfig);
82
/* glXGetFBConfigAttrib */
84
gdk_gl_get_glXGetFBConfigAttrib (void)
86
if (_procs_GLX_VERSION_1_3.glXGetFBConfigAttrib == (GdkGLProc_glXGetFBConfigAttrib) -1)
87
_procs_GLX_VERSION_1_3.glXGetFBConfigAttrib =
88
(GdkGLProc_glXGetFBConfigAttrib) gdk_gl_get_proc_address ("glXGetFBConfigAttrib");
91
g_message (" - gdk_gl_get_glXGetFBConfigAttrib () - %s",
92
(_procs_GLX_VERSION_1_3.glXGetFBConfigAttrib) ? "supported" : "not supported"));
94
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXGetFBConfigAttrib);
97
/* glXGetVisualFromFBConfig */
99
gdk_gl_get_glXGetVisualFromFBConfig (void)
101
if (_procs_GLX_VERSION_1_3.glXGetVisualFromFBConfig == (GdkGLProc_glXGetVisualFromFBConfig) -1)
102
_procs_GLX_VERSION_1_3.glXGetVisualFromFBConfig =
103
(GdkGLProc_glXGetVisualFromFBConfig) gdk_gl_get_proc_address ("glXGetVisualFromFBConfig");
106
g_message (" - gdk_gl_get_glXGetVisualFromFBConfig () - %s",
107
(_procs_GLX_VERSION_1_3.glXGetVisualFromFBConfig) ? "supported" : "not supported"));
109
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXGetVisualFromFBConfig);
112
/* glXCreateWindow */
114
gdk_gl_get_glXCreateWindow (void)
116
if (_procs_GLX_VERSION_1_3.glXCreateWindow == (GdkGLProc_glXCreateWindow) -1)
117
_procs_GLX_VERSION_1_3.glXCreateWindow =
118
(GdkGLProc_glXCreateWindow) gdk_gl_get_proc_address ("glXCreateWindow");
121
g_message (" - gdk_gl_get_glXCreateWindow () - %s",
122
(_procs_GLX_VERSION_1_3.glXCreateWindow) ? "supported" : "not supported"));
124
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXCreateWindow);
127
/* glXDestroyWindow */
129
gdk_gl_get_glXDestroyWindow (void)
131
if (_procs_GLX_VERSION_1_3.glXDestroyWindow == (GdkGLProc_glXDestroyWindow) -1)
132
_procs_GLX_VERSION_1_3.glXDestroyWindow =
133
(GdkGLProc_glXDestroyWindow) gdk_gl_get_proc_address ("glXDestroyWindow");
136
g_message (" - gdk_gl_get_glXDestroyWindow () - %s",
137
(_procs_GLX_VERSION_1_3.glXDestroyWindow) ? "supported" : "not supported"));
139
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXDestroyWindow);
142
/* glXCreatePixmap */
144
gdk_gl_get_glXCreatePixmap (void)
146
if (_procs_GLX_VERSION_1_3.glXCreatePixmap == (GdkGLProc_glXCreatePixmap) -1)
147
_procs_GLX_VERSION_1_3.glXCreatePixmap =
148
(GdkGLProc_glXCreatePixmap) gdk_gl_get_proc_address ("glXCreatePixmap");
151
g_message (" - gdk_gl_get_glXCreatePixmap () - %s",
152
(_procs_GLX_VERSION_1_3.glXCreatePixmap) ? "supported" : "not supported"));
154
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXCreatePixmap);
157
/* glXDestroyPixmap */
159
gdk_gl_get_glXDestroyPixmap (void)
161
if (_procs_GLX_VERSION_1_3.glXDestroyPixmap == (GdkGLProc_glXDestroyPixmap) -1)
162
_procs_GLX_VERSION_1_3.glXDestroyPixmap =
163
(GdkGLProc_glXDestroyPixmap) gdk_gl_get_proc_address ("glXDestroyPixmap");
166
g_message (" - gdk_gl_get_glXDestroyPixmap () - %s",
167
(_procs_GLX_VERSION_1_3.glXDestroyPixmap) ? "supported" : "not supported"));
169
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXDestroyPixmap);
172
/* glXCreatePbuffer */
174
gdk_gl_get_glXCreatePbuffer (void)
176
if (_procs_GLX_VERSION_1_3.glXCreatePbuffer == (GdkGLProc_glXCreatePbuffer) -1)
177
_procs_GLX_VERSION_1_3.glXCreatePbuffer =
178
(GdkGLProc_glXCreatePbuffer) gdk_gl_get_proc_address ("glXCreatePbuffer");
181
g_message (" - gdk_gl_get_glXCreatePbuffer () - %s",
182
(_procs_GLX_VERSION_1_3.glXCreatePbuffer) ? "supported" : "not supported"));
184
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXCreatePbuffer);
187
/* glXDestroyPbuffer */
189
gdk_gl_get_glXDestroyPbuffer (void)
191
if (_procs_GLX_VERSION_1_3.glXDestroyPbuffer == (GdkGLProc_glXDestroyPbuffer) -1)
192
_procs_GLX_VERSION_1_3.glXDestroyPbuffer =
193
(GdkGLProc_glXDestroyPbuffer) gdk_gl_get_proc_address ("glXDestroyPbuffer");
196
g_message (" - gdk_gl_get_glXDestroyPbuffer () - %s",
197
(_procs_GLX_VERSION_1_3.glXDestroyPbuffer) ? "supported" : "not supported"));
199
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXDestroyPbuffer);
202
/* glXQueryDrawable */
204
gdk_gl_get_glXQueryDrawable (void)
206
if (_procs_GLX_VERSION_1_3.glXQueryDrawable == (GdkGLProc_glXQueryDrawable) -1)
207
_procs_GLX_VERSION_1_3.glXQueryDrawable =
208
(GdkGLProc_glXQueryDrawable) gdk_gl_get_proc_address ("glXQueryDrawable");
211
g_message (" - gdk_gl_get_glXQueryDrawable () - %s",
212
(_procs_GLX_VERSION_1_3.glXQueryDrawable) ? "supported" : "not supported"));
214
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXQueryDrawable);
217
/* glXCreateNewContext */
219
gdk_gl_get_glXCreateNewContext (void)
221
if (_procs_GLX_VERSION_1_3.glXCreateNewContext == (GdkGLProc_glXCreateNewContext) -1)
222
_procs_GLX_VERSION_1_3.glXCreateNewContext =
223
(GdkGLProc_glXCreateNewContext) gdk_gl_get_proc_address ("glXCreateNewContext");
226
g_message (" - gdk_gl_get_glXCreateNewContext () - %s",
227
(_procs_GLX_VERSION_1_3.glXCreateNewContext) ? "supported" : "not supported"));
229
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXCreateNewContext);
232
/* glXMakeContextCurrent */
234
gdk_gl_get_glXMakeContextCurrent (void)
236
if (_procs_GLX_VERSION_1_3.glXMakeContextCurrent == (GdkGLProc_glXMakeContextCurrent) -1)
237
_procs_GLX_VERSION_1_3.glXMakeContextCurrent =
238
(GdkGLProc_glXMakeContextCurrent) gdk_gl_get_proc_address ("glXMakeContextCurrent");
241
g_message (" - gdk_gl_get_glXMakeContextCurrent () - %s",
242
(_procs_GLX_VERSION_1_3.glXMakeContextCurrent) ? "supported" : "not supported"));
244
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXMakeContextCurrent);
247
/* glXGetCurrentReadDrawable */
249
gdk_gl_get_glXGetCurrentReadDrawable (void)
251
if (_procs_GLX_VERSION_1_3.glXGetCurrentReadDrawable == (GdkGLProc_glXGetCurrentReadDrawable) -1)
252
_procs_GLX_VERSION_1_3.glXGetCurrentReadDrawable =
253
(GdkGLProc_glXGetCurrentReadDrawable) gdk_gl_get_proc_address ("glXGetCurrentReadDrawable");
256
g_message (" - gdk_gl_get_glXGetCurrentReadDrawable () - %s",
257
(_procs_GLX_VERSION_1_3.glXGetCurrentReadDrawable) ? "supported" : "not supported"));
259
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXGetCurrentReadDrawable);
262
/* glXGetCurrentDisplay */
264
gdk_gl_get_glXGetCurrentDisplay (void)
266
if (_procs_GLX_VERSION_1_3.glXGetCurrentDisplay == (GdkGLProc_glXGetCurrentDisplay) -1)
267
_procs_GLX_VERSION_1_3.glXGetCurrentDisplay =
268
(GdkGLProc_glXGetCurrentDisplay) gdk_gl_get_proc_address ("glXGetCurrentDisplay");
271
g_message (" - gdk_gl_get_glXGetCurrentDisplay () - %s",
272
(_procs_GLX_VERSION_1_3.glXGetCurrentDisplay) ? "supported" : "not supported"));
274
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXGetCurrentDisplay);
277
/* glXQueryContext */
279
gdk_gl_get_glXQueryContext (void)
281
if (_procs_GLX_VERSION_1_3.glXQueryContext == (GdkGLProc_glXQueryContext) -1)
282
_procs_GLX_VERSION_1_3.glXQueryContext =
283
(GdkGLProc_glXQueryContext) gdk_gl_get_proc_address ("glXQueryContext");
286
g_message (" - gdk_gl_get_glXQueryContext () - %s",
287
(_procs_GLX_VERSION_1_3.glXQueryContext) ? "supported" : "not supported"));
289
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXQueryContext);
294
gdk_gl_get_glXSelectEvent (void)
296
if (_procs_GLX_VERSION_1_3.glXSelectEvent == (GdkGLProc_glXSelectEvent) -1)
297
_procs_GLX_VERSION_1_3.glXSelectEvent =
298
(GdkGLProc_glXSelectEvent) gdk_gl_get_proc_address ("glXSelectEvent");
301
g_message (" - gdk_gl_get_glXSelectEvent () - %s",
302
(_procs_GLX_VERSION_1_3.glXSelectEvent) ? "supported" : "not supported"));
304
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXSelectEvent);
307
/* glXGetSelectedEvent */
309
gdk_gl_get_glXGetSelectedEvent (void)
311
if (_procs_GLX_VERSION_1_3.glXGetSelectedEvent == (GdkGLProc_glXGetSelectedEvent) -1)
312
_procs_GLX_VERSION_1_3.glXGetSelectedEvent =
313
(GdkGLProc_glXGetSelectedEvent) gdk_gl_get_proc_address ("glXGetSelectedEvent");
316
g_message (" - gdk_gl_get_glXGetSelectedEvent () - %s",
317
(_procs_GLX_VERSION_1_3.glXGetSelectedEvent) ? "supported" : "not supported"));
319
return (GdkGLProc) (_procs_GLX_VERSION_1_3.glXGetSelectedEvent);
322
/* Get GLX_VERSION_1_3 functions */
323
GdkGL_GLX_VERSION_1_3 *
324
gdk_gl_get_GLX_VERSION_1_3 (void)
326
static gint supported = -1;
330
supported = (gdk_gl_get_glXGetFBConfigs () != NULL);
331
supported &= (gdk_gl_get_glXChooseFBConfig () != NULL);
332
supported &= (gdk_gl_get_glXGetFBConfigAttrib () != NULL);
333
supported &= (gdk_gl_get_glXGetVisualFromFBConfig () != NULL);
334
supported &= (gdk_gl_get_glXCreateWindow () != NULL);
335
supported &= (gdk_gl_get_glXDestroyWindow () != NULL);
336
supported &= (gdk_gl_get_glXCreatePixmap () != NULL);
337
supported &= (gdk_gl_get_glXDestroyPixmap () != NULL);
338
supported &= (gdk_gl_get_glXCreatePbuffer () != NULL);
339
supported &= (gdk_gl_get_glXDestroyPbuffer () != NULL);
340
supported &= (gdk_gl_get_glXQueryDrawable () != NULL);
341
supported &= (gdk_gl_get_glXCreateNewContext () != NULL);
342
supported &= (gdk_gl_get_glXMakeContextCurrent () != NULL);
343
supported &= (gdk_gl_get_glXGetCurrentReadDrawable () != NULL);
344
supported &= (gdk_gl_get_glXGetCurrentDisplay () != NULL);
345
supported &= (gdk_gl_get_glXQueryContext () != NULL);
346
supported &= (gdk_gl_get_glXSelectEvent () != NULL);
347
supported &= (gdk_gl_get_glXGetSelectedEvent () != NULL);
351
g_message (" - gdk_gl_get_GLX_VERSION_1_3 () - %s",
352
(supported) ? "supported" : "not supported"));
357
return &_procs_GLX_VERSION_1_3;
364
static GdkGL_GLX_VERSION_1_4 _procs_GLX_VERSION_1_4 = {
365
(GdkGLProc_glXGetProcAddress) -1
368
/* glXGetProcAddress */
370
gdk_gl_get_glXGetProcAddress (void)
372
if (_procs_GLX_VERSION_1_4.glXGetProcAddress == (GdkGLProc_glXGetProcAddress) -1)
373
_procs_GLX_VERSION_1_4.glXGetProcAddress =
374
(GdkGLProc_glXGetProcAddress) gdk_gl_get_proc_address ("glXGetProcAddress");
377
g_message (" - gdk_gl_get_glXGetProcAddress () - %s",
378
(_procs_GLX_VERSION_1_4.glXGetProcAddress) ? "supported" : "not supported"));
380
return (GdkGLProc) (_procs_GLX_VERSION_1_4.glXGetProcAddress);
383
/* Get GLX_VERSION_1_4 functions */
384
GdkGL_GLX_VERSION_1_4 *
385
gdk_gl_get_GLX_VERSION_1_4 (void)
387
static gint supported = -1;
391
supported = (gdk_gl_get_glXGetProcAddress () != NULL);
395
g_message (" - gdk_gl_get_GLX_VERSION_1_4 () - %s",
396
(supported) ? "supported" : "not supported"));
401
return &_procs_GLX_VERSION_1_4;
405
* GLX_ARB_get_proc_address
408
static GdkGL_GLX_ARB_get_proc_address _procs_GLX_ARB_get_proc_address = {
409
(GdkGLProc_glXGetProcAddressARB) -1
412
/* glXGetProcAddressARB */
414
gdk_gl_get_glXGetProcAddressARB (void)
416
if (_procs_GLX_ARB_get_proc_address.glXGetProcAddressARB == (GdkGLProc_glXGetProcAddressARB) -1)
417
_procs_GLX_ARB_get_proc_address.glXGetProcAddressARB =
418
(GdkGLProc_glXGetProcAddressARB) gdk_gl_get_proc_address ("glXGetProcAddressARB");
421
g_message (" - gdk_gl_get_glXGetProcAddressARB () - %s",
422
(_procs_GLX_ARB_get_proc_address.glXGetProcAddressARB) ? "supported" : "not supported"));
424
return (GdkGLProc) (_procs_GLX_ARB_get_proc_address.glXGetProcAddressARB);
427
/* Get GLX_ARB_get_proc_address functions */
428
GdkGL_GLX_ARB_get_proc_address *
429
gdk_gl_get_GLX_ARB_get_proc_address (GdkGLConfig *glconfig)
431
static gint supported = -1;
435
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_ARB_get_proc_address");
439
supported &= (gdk_gl_get_glXGetProcAddressARB () != NULL);
444
g_message (" - gdk_gl_get_GLX_ARB_get_proc_address () - %s",
445
(supported) ? "supported" : "not supported"));
450
return &_procs_GLX_ARB_get_proc_address;
454
* GLX_SGI_swap_control
457
static GdkGL_GLX_SGI_swap_control _procs_GLX_SGI_swap_control = {
458
(GdkGLProc_glXSwapIntervalSGI) -1
461
/* glXSwapIntervalSGI */
463
gdk_gl_get_glXSwapIntervalSGI (void)
465
if (_procs_GLX_SGI_swap_control.glXSwapIntervalSGI == (GdkGLProc_glXSwapIntervalSGI) -1)
466
_procs_GLX_SGI_swap_control.glXSwapIntervalSGI =
467
(GdkGLProc_glXSwapIntervalSGI) gdk_gl_get_proc_address ("glXSwapIntervalSGI");
470
g_message (" - gdk_gl_get_glXSwapIntervalSGI () - %s",
471
(_procs_GLX_SGI_swap_control.glXSwapIntervalSGI) ? "supported" : "not supported"));
473
return (GdkGLProc) (_procs_GLX_SGI_swap_control.glXSwapIntervalSGI);
476
/* Get GLX_SGI_swap_control functions */
477
GdkGL_GLX_SGI_swap_control *
478
gdk_gl_get_GLX_SGI_swap_control (GdkGLConfig *glconfig)
480
static gint supported = -1;
484
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGI_swap_control");
488
supported &= (gdk_gl_get_glXSwapIntervalSGI () != NULL);
493
g_message (" - gdk_gl_get_GLX_SGI_swap_control () - %s",
494
(supported) ? "supported" : "not supported"));
499
return &_procs_GLX_SGI_swap_control;
506
static GdkGL_GLX_SGI_video_sync _procs_GLX_SGI_video_sync = {
507
(GdkGLProc_glXGetVideoSyncSGI) -1,
508
(GdkGLProc_glXWaitVideoSyncSGI) -1
511
/* glXGetVideoSyncSGI */
513
gdk_gl_get_glXGetVideoSyncSGI (void)
515
if (_procs_GLX_SGI_video_sync.glXGetVideoSyncSGI == (GdkGLProc_glXGetVideoSyncSGI) -1)
516
_procs_GLX_SGI_video_sync.glXGetVideoSyncSGI =
517
(GdkGLProc_glXGetVideoSyncSGI) gdk_gl_get_proc_address ("glXGetVideoSyncSGI");
520
g_message (" - gdk_gl_get_glXGetVideoSyncSGI () - %s",
521
(_procs_GLX_SGI_video_sync.glXGetVideoSyncSGI) ? "supported" : "not supported"));
523
return (GdkGLProc) (_procs_GLX_SGI_video_sync.glXGetVideoSyncSGI);
526
/* glXWaitVideoSyncSGI */
528
gdk_gl_get_glXWaitVideoSyncSGI (void)
530
if (_procs_GLX_SGI_video_sync.glXWaitVideoSyncSGI == (GdkGLProc_glXWaitVideoSyncSGI) -1)
531
_procs_GLX_SGI_video_sync.glXWaitVideoSyncSGI =
532
(GdkGLProc_glXWaitVideoSyncSGI) gdk_gl_get_proc_address ("glXWaitVideoSyncSGI");
535
g_message (" - gdk_gl_get_glXWaitVideoSyncSGI () - %s",
536
(_procs_GLX_SGI_video_sync.glXWaitVideoSyncSGI) ? "supported" : "not supported"));
538
return (GdkGLProc) (_procs_GLX_SGI_video_sync.glXWaitVideoSyncSGI);
541
/* Get GLX_SGI_video_sync functions */
542
GdkGL_GLX_SGI_video_sync *
543
gdk_gl_get_GLX_SGI_video_sync (GdkGLConfig *glconfig)
545
static gint supported = -1;
549
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGI_video_sync");
553
supported &= (gdk_gl_get_glXGetVideoSyncSGI () != NULL);
554
supported &= (gdk_gl_get_glXWaitVideoSyncSGI () != NULL);
559
g_message (" - gdk_gl_get_GLX_SGI_video_sync () - %s",
560
(supported) ? "supported" : "not supported"));
565
return &_procs_GLX_SGI_video_sync;
569
* GLX_SGI_make_current_read
572
static GdkGL_GLX_SGI_make_current_read _procs_GLX_SGI_make_current_read = {
573
(GdkGLProc_glXMakeCurrentReadSGI) -1,
574
(GdkGLProc_glXGetCurrentReadDrawableSGI) -1
577
/* glXMakeCurrentReadSGI */
579
gdk_gl_get_glXMakeCurrentReadSGI (void)
581
if (_procs_GLX_SGI_make_current_read.glXMakeCurrentReadSGI == (GdkGLProc_glXMakeCurrentReadSGI) -1)
582
_procs_GLX_SGI_make_current_read.glXMakeCurrentReadSGI =
583
(GdkGLProc_glXMakeCurrentReadSGI) gdk_gl_get_proc_address ("glXMakeCurrentReadSGI");
586
g_message (" - gdk_gl_get_glXMakeCurrentReadSGI () - %s",
587
(_procs_GLX_SGI_make_current_read.glXMakeCurrentReadSGI) ? "supported" : "not supported"));
589
return (GdkGLProc) (_procs_GLX_SGI_make_current_read.glXMakeCurrentReadSGI);
592
/* glXGetCurrentReadDrawableSGI */
594
gdk_gl_get_glXGetCurrentReadDrawableSGI (void)
596
if (_procs_GLX_SGI_make_current_read.glXGetCurrentReadDrawableSGI == (GdkGLProc_glXGetCurrentReadDrawableSGI) -1)
597
_procs_GLX_SGI_make_current_read.glXGetCurrentReadDrawableSGI =
598
(GdkGLProc_glXGetCurrentReadDrawableSGI) gdk_gl_get_proc_address ("glXGetCurrentReadDrawableSGI");
601
g_message (" - gdk_gl_get_glXGetCurrentReadDrawableSGI () - %s",
602
(_procs_GLX_SGI_make_current_read.glXGetCurrentReadDrawableSGI) ? "supported" : "not supported"));
604
return (GdkGLProc) (_procs_GLX_SGI_make_current_read.glXGetCurrentReadDrawableSGI);
607
/* Get GLX_SGI_make_current_read functions */
608
GdkGL_GLX_SGI_make_current_read *
609
gdk_gl_get_GLX_SGI_make_current_read (GdkGLConfig *glconfig)
611
static gint supported = -1;
615
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGI_make_current_read");
619
supported &= (gdk_gl_get_glXMakeCurrentReadSGI () != NULL);
620
supported &= (gdk_gl_get_glXGetCurrentReadDrawableSGI () != NULL);
625
g_message (" - gdk_gl_get_GLX_SGI_make_current_read () - %s",
626
(supported) ? "supported" : "not supported"));
631
return &_procs_GLX_SGI_make_current_read;
635
* GLX_SGIX_video_source
640
static GdkGL_GLX_SGIX_video_source _procs_GLX_SGIX_video_source = {
641
(GdkGLProc_glXCreateGLXVideoSourceSGIX) -1,
642
(GdkGLProc_glXDestroyGLXVideoSourceSGIX) -1
645
/* glXCreateGLXVideoSourceSGIX */
647
gdk_gl_get_glXCreateGLXVideoSourceSGIX (void)
649
if (_procs_GLX_SGIX_video_source.glXCreateGLXVideoSourceSGIX == (GdkGLProc_glXCreateGLXVideoSourceSGIX) -1)
650
_procs_GLX_SGIX_video_source.glXCreateGLXVideoSourceSGIX =
651
(GdkGLProc_glXCreateGLXVideoSourceSGIX) gdk_gl_get_proc_address ("glXCreateGLXVideoSourceSGIX");
654
g_message (" - gdk_gl_get_glXCreateGLXVideoSourceSGIX () - %s",
655
(_procs_GLX_SGIX_video_source.glXCreateGLXVideoSourceSGIX) ? "supported" : "not supported"));
657
return (GdkGLProc) (_procs_GLX_SGIX_video_source.glXCreateGLXVideoSourceSGIX);
660
/* glXDestroyGLXVideoSourceSGIX */
662
gdk_gl_get_glXDestroyGLXVideoSourceSGIX (void)
664
if (_procs_GLX_SGIX_video_source.glXDestroyGLXVideoSourceSGIX == (GdkGLProc_glXDestroyGLXVideoSourceSGIX) -1)
665
_procs_GLX_SGIX_video_source.glXDestroyGLXVideoSourceSGIX =
666
(GdkGLProc_glXDestroyGLXVideoSourceSGIX) gdk_gl_get_proc_address ("glXDestroyGLXVideoSourceSGIX");
669
g_message (" - gdk_gl_get_glXDestroyGLXVideoSourceSGIX () - %s",
670
(_procs_GLX_SGIX_video_source.glXDestroyGLXVideoSourceSGIX) ? "supported" : "not supported"));
672
return (GdkGLProc) (_procs_GLX_SGIX_video_source.glXDestroyGLXVideoSourceSGIX);
675
/* Get GLX_SGIX_video_source functions */
676
GdkGL_GLX_SGIX_video_source *
677
gdk_gl_get_GLX_SGIX_video_source (GdkGLConfig *glconfig)
679
static gint supported = -1;
683
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGIX_video_source");
687
supported &= (gdk_gl_get_glXCreateGLXVideoSourceSGIX () != NULL);
688
supported &= (gdk_gl_get_glXDestroyGLXVideoSourceSGIX () != NULL);
693
g_message (" - gdk_gl_get_GLX_SGIX_video_source () - %s",
694
(supported) ? "supported" : "not supported"));
699
return &_procs_GLX_SGIX_video_source;
705
* GLX_EXT_import_context
708
static GdkGL_GLX_EXT_import_context _procs_GLX_EXT_import_context = {
709
(GdkGLProc_glXGetCurrentDisplayEXT) -1,
710
(GdkGLProc_glXQueryContextInfoEXT) -1,
711
(GdkGLProc_glXGetContextIDEXT) -1,
712
(GdkGLProc_glXImportContextEXT) -1,
713
(GdkGLProc_glXFreeContextEXT) -1
716
/* glXGetCurrentDisplayEXT */
718
gdk_gl_get_glXGetCurrentDisplayEXT (void)
720
if (_procs_GLX_EXT_import_context.glXGetCurrentDisplayEXT == (GdkGLProc_glXGetCurrentDisplayEXT) -1)
721
_procs_GLX_EXT_import_context.glXGetCurrentDisplayEXT =
722
(GdkGLProc_glXGetCurrentDisplayEXT) gdk_gl_get_proc_address ("glXGetCurrentDisplayEXT");
725
g_message (" - gdk_gl_get_glXGetCurrentDisplayEXT () - %s",
726
(_procs_GLX_EXT_import_context.glXGetCurrentDisplayEXT) ? "supported" : "not supported"));
728
return (GdkGLProc) (_procs_GLX_EXT_import_context.glXGetCurrentDisplayEXT);
731
/* glXQueryContextInfoEXT */
733
gdk_gl_get_glXQueryContextInfoEXT (void)
735
if (_procs_GLX_EXT_import_context.glXQueryContextInfoEXT == (GdkGLProc_glXQueryContextInfoEXT) -1)
736
_procs_GLX_EXT_import_context.glXQueryContextInfoEXT =
737
(GdkGLProc_glXQueryContextInfoEXT) gdk_gl_get_proc_address ("glXQueryContextInfoEXT");
740
g_message (" - gdk_gl_get_glXQueryContextInfoEXT () - %s",
741
(_procs_GLX_EXT_import_context.glXQueryContextInfoEXT) ? "supported" : "not supported"));
743
return (GdkGLProc) (_procs_GLX_EXT_import_context.glXQueryContextInfoEXT);
746
/* glXGetContextIDEXT */
748
gdk_gl_get_glXGetContextIDEXT (void)
750
if (_procs_GLX_EXT_import_context.glXGetContextIDEXT == (GdkGLProc_glXGetContextIDEXT) -1)
751
_procs_GLX_EXT_import_context.glXGetContextIDEXT =
752
(GdkGLProc_glXGetContextIDEXT) gdk_gl_get_proc_address ("glXGetContextIDEXT");
755
g_message (" - gdk_gl_get_glXGetContextIDEXT () - %s",
756
(_procs_GLX_EXT_import_context.glXGetContextIDEXT) ? "supported" : "not supported"));
758
return (GdkGLProc) (_procs_GLX_EXT_import_context.glXGetContextIDEXT);
761
/* glXImportContextEXT */
763
gdk_gl_get_glXImportContextEXT (void)
765
if (_procs_GLX_EXT_import_context.glXImportContextEXT == (GdkGLProc_glXImportContextEXT) -1)
766
_procs_GLX_EXT_import_context.glXImportContextEXT =
767
(GdkGLProc_glXImportContextEXT) gdk_gl_get_proc_address ("glXImportContextEXT");
770
g_message (" - gdk_gl_get_glXImportContextEXT () - %s",
771
(_procs_GLX_EXT_import_context.glXImportContextEXT) ? "supported" : "not supported"));
773
return (GdkGLProc) (_procs_GLX_EXT_import_context.glXImportContextEXT);
776
/* glXFreeContextEXT */
778
gdk_gl_get_glXFreeContextEXT (void)
780
if (_procs_GLX_EXT_import_context.glXFreeContextEXT == (GdkGLProc_glXFreeContextEXT) -1)
781
_procs_GLX_EXT_import_context.glXFreeContextEXT =
782
(GdkGLProc_glXFreeContextEXT) gdk_gl_get_proc_address ("glXFreeContextEXT");
785
g_message (" - gdk_gl_get_glXFreeContextEXT () - %s",
786
(_procs_GLX_EXT_import_context.glXFreeContextEXT) ? "supported" : "not supported"));
788
return (GdkGLProc) (_procs_GLX_EXT_import_context.glXFreeContextEXT);
791
/* Get GLX_EXT_import_context functions */
792
GdkGL_GLX_EXT_import_context *
793
gdk_gl_get_GLX_EXT_import_context (GdkGLConfig *glconfig)
795
static gint supported = -1;
799
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_EXT_import_context");
803
supported &= (gdk_gl_get_glXGetCurrentDisplayEXT () != NULL);
804
supported &= (gdk_gl_get_glXQueryContextInfoEXT () != NULL);
805
supported &= (gdk_gl_get_glXGetContextIDEXT () != NULL);
806
supported &= (gdk_gl_get_glXImportContextEXT () != NULL);
807
supported &= (gdk_gl_get_glXFreeContextEXT () != NULL);
812
g_message (" - gdk_gl_get_GLX_EXT_import_context () - %s",
813
(supported) ? "supported" : "not supported"));
818
return &_procs_GLX_EXT_import_context;
825
static GdkGL_GLX_SGIX_fbconfig _procs_GLX_SGIX_fbconfig = {
826
(GdkGLProc_glXGetFBConfigAttribSGIX) -1,
827
(GdkGLProc_glXChooseFBConfigSGIX) -1,
828
(GdkGLProc_glXCreateGLXPixmapWithConfigSGIX) -1,
829
(GdkGLProc_glXCreateContextWithConfigSGIX) -1,
830
(GdkGLProc_glXGetVisualFromFBConfigSGIX) -1,
831
(GdkGLProc_glXGetFBConfigFromVisualSGIX) -1
834
/* glXGetFBConfigAttribSGIX */
836
gdk_gl_get_glXGetFBConfigAttribSGIX (void)
838
if (_procs_GLX_SGIX_fbconfig.glXGetFBConfigAttribSGIX == (GdkGLProc_glXGetFBConfigAttribSGIX) -1)
839
_procs_GLX_SGIX_fbconfig.glXGetFBConfigAttribSGIX =
840
(GdkGLProc_glXGetFBConfigAttribSGIX) gdk_gl_get_proc_address ("glXGetFBConfigAttribSGIX");
843
g_message (" - gdk_gl_get_glXGetFBConfigAttribSGIX () - %s",
844
(_procs_GLX_SGIX_fbconfig.glXGetFBConfigAttribSGIX) ? "supported" : "not supported"));
846
return (GdkGLProc) (_procs_GLX_SGIX_fbconfig.glXGetFBConfigAttribSGIX);
849
/* glXChooseFBConfigSGIX */
851
gdk_gl_get_glXChooseFBConfigSGIX (void)
853
if (_procs_GLX_SGIX_fbconfig.glXChooseFBConfigSGIX == (GdkGLProc_glXChooseFBConfigSGIX) -1)
854
_procs_GLX_SGIX_fbconfig.glXChooseFBConfigSGIX =
855
(GdkGLProc_glXChooseFBConfigSGIX) gdk_gl_get_proc_address ("glXChooseFBConfigSGIX");
858
g_message (" - gdk_gl_get_glXChooseFBConfigSGIX () - %s",
859
(_procs_GLX_SGIX_fbconfig.glXChooseFBConfigSGIX) ? "supported" : "not supported"));
861
return (GdkGLProc) (_procs_GLX_SGIX_fbconfig.glXChooseFBConfigSGIX);
864
/* glXCreateGLXPixmapWithConfigSGIX */
866
gdk_gl_get_glXCreateGLXPixmapWithConfigSGIX (void)
868
if (_procs_GLX_SGIX_fbconfig.glXCreateGLXPixmapWithConfigSGIX == (GdkGLProc_glXCreateGLXPixmapWithConfigSGIX) -1)
869
_procs_GLX_SGIX_fbconfig.glXCreateGLXPixmapWithConfigSGIX =
870
(GdkGLProc_glXCreateGLXPixmapWithConfigSGIX) gdk_gl_get_proc_address ("glXCreateGLXPixmapWithConfigSGIX");
873
g_message (" - gdk_gl_get_glXCreateGLXPixmapWithConfigSGIX () - %s",
874
(_procs_GLX_SGIX_fbconfig.glXCreateGLXPixmapWithConfigSGIX) ? "supported" : "not supported"));
876
return (GdkGLProc) (_procs_GLX_SGIX_fbconfig.glXCreateGLXPixmapWithConfigSGIX);
879
/* glXCreateContextWithConfigSGIX */
881
gdk_gl_get_glXCreateContextWithConfigSGIX (void)
883
if (_procs_GLX_SGIX_fbconfig.glXCreateContextWithConfigSGIX == (GdkGLProc_glXCreateContextWithConfigSGIX) -1)
884
_procs_GLX_SGIX_fbconfig.glXCreateContextWithConfigSGIX =
885
(GdkGLProc_glXCreateContextWithConfigSGIX) gdk_gl_get_proc_address ("glXCreateContextWithConfigSGIX");
888
g_message (" - gdk_gl_get_glXCreateContextWithConfigSGIX () - %s",
889
(_procs_GLX_SGIX_fbconfig.glXCreateContextWithConfigSGIX) ? "supported" : "not supported"));
891
return (GdkGLProc) (_procs_GLX_SGIX_fbconfig.glXCreateContextWithConfigSGIX);
894
/* glXGetVisualFromFBConfigSGIX */
896
gdk_gl_get_glXGetVisualFromFBConfigSGIX (void)
898
if (_procs_GLX_SGIX_fbconfig.glXGetVisualFromFBConfigSGIX == (GdkGLProc_glXGetVisualFromFBConfigSGIX) -1)
899
_procs_GLX_SGIX_fbconfig.glXGetVisualFromFBConfigSGIX =
900
(GdkGLProc_glXGetVisualFromFBConfigSGIX) gdk_gl_get_proc_address ("glXGetVisualFromFBConfigSGIX");
903
g_message (" - gdk_gl_get_glXGetVisualFromFBConfigSGIX () - %s",
904
(_procs_GLX_SGIX_fbconfig.glXGetVisualFromFBConfigSGIX) ? "supported" : "not supported"));
906
return (GdkGLProc) (_procs_GLX_SGIX_fbconfig.glXGetVisualFromFBConfigSGIX);
909
/* glXGetFBConfigFromVisualSGIX */
911
gdk_gl_get_glXGetFBConfigFromVisualSGIX (void)
913
if (_procs_GLX_SGIX_fbconfig.glXGetFBConfigFromVisualSGIX == (GdkGLProc_glXGetFBConfigFromVisualSGIX) -1)
914
_procs_GLX_SGIX_fbconfig.glXGetFBConfigFromVisualSGIX =
915
(GdkGLProc_glXGetFBConfigFromVisualSGIX) gdk_gl_get_proc_address ("glXGetFBConfigFromVisualSGIX");
918
g_message (" - gdk_gl_get_glXGetFBConfigFromVisualSGIX () - %s",
919
(_procs_GLX_SGIX_fbconfig.glXGetFBConfigFromVisualSGIX) ? "supported" : "not supported"));
921
return (GdkGLProc) (_procs_GLX_SGIX_fbconfig.glXGetFBConfigFromVisualSGIX);
924
/* Get GLX_SGIX_fbconfig functions */
925
GdkGL_GLX_SGIX_fbconfig *
926
gdk_gl_get_GLX_SGIX_fbconfig (GdkGLConfig *glconfig)
928
static gint supported = -1;
932
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGIX_fbconfig");
936
supported &= (gdk_gl_get_glXGetFBConfigAttribSGIX () != NULL);
937
supported &= (gdk_gl_get_glXChooseFBConfigSGIX () != NULL);
938
supported &= (gdk_gl_get_glXCreateGLXPixmapWithConfigSGIX () != NULL);
939
supported &= (gdk_gl_get_glXCreateContextWithConfigSGIX () != NULL);
940
supported &= (gdk_gl_get_glXGetVisualFromFBConfigSGIX () != NULL);
941
supported &= (gdk_gl_get_glXGetFBConfigFromVisualSGIX () != NULL);
946
g_message (" - gdk_gl_get_GLX_SGIX_fbconfig () - %s",
947
(supported) ? "supported" : "not supported"));
952
return &_procs_GLX_SGIX_fbconfig;
959
static GdkGL_GLX_SGIX_pbuffer _procs_GLX_SGIX_pbuffer = {
960
(GdkGLProc_glXCreateGLXPbufferSGIX) -1,
961
(GdkGLProc_glXDestroyGLXPbufferSGIX) -1,
962
(GdkGLProc_glXQueryGLXPbufferSGIX) -1,
963
(GdkGLProc_glXSelectEventSGIX) -1,
964
(GdkGLProc_glXGetSelectedEventSGIX) -1
967
/* glXCreateGLXPbufferSGIX */
969
gdk_gl_get_glXCreateGLXPbufferSGIX (void)
971
if (_procs_GLX_SGIX_pbuffer.glXCreateGLXPbufferSGIX == (GdkGLProc_glXCreateGLXPbufferSGIX) -1)
972
_procs_GLX_SGIX_pbuffer.glXCreateGLXPbufferSGIX =
973
(GdkGLProc_glXCreateGLXPbufferSGIX) gdk_gl_get_proc_address ("glXCreateGLXPbufferSGIX");
976
g_message (" - gdk_gl_get_glXCreateGLXPbufferSGIX () - %s",
977
(_procs_GLX_SGIX_pbuffer.glXCreateGLXPbufferSGIX) ? "supported" : "not supported"));
979
return (GdkGLProc) (_procs_GLX_SGIX_pbuffer.glXCreateGLXPbufferSGIX);
982
/* glXDestroyGLXPbufferSGIX */
984
gdk_gl_get_glXDestroyGLXPbufferSGIX (void)
986
if (_procs_GLX_SGIX_pbuffer.glXDestroyGLXPbufferSGIX == (GdkGLProc_glXDestroyGLXPbufferSGIX) -1)
987
_procs_GLX_SGIX_pbuffer.glXDestroyGLXPbufferSGIX =
988
(GdkGLProc_glXDestroyGLXPbufferSGIX) gdk_gl_get_proc_address ("glXDestroyGLXPbufferSGIX");
991
g_message (" - gdk_gl_get_glXDestroyGLXPbufferSGIX () - %s",
992
(_procs_GLX_SGIX_pbuffer.glXDestroyGLXPbufferSGIX) ? "supported" : "not supported"));
994
return (GdkGLProc) (_procs_GLX_SGIX_pbuffer.glXDestroyGLXPbufferSGIX);
997
/* glXQueryGLXPbufferSGIX */
999
gdk_gl_get_glXQueryGLXPbufferSGIX (void)
1001
if (_procs_GLX_SGIX_pbuffer.glXQueryGLXPbufferSGIX == (GdkGLProc_glXQueryGLXPbufferSGIX) -1)
1002
_procs_GLX_SGIX_pbuffer.glXQueryGLXPbufferSGIX =
1003
(GdkGLProc_glXQueryGLXPbufferSGIX) gdk_gl_get_proc_address ("glXQueryGLXPbufferSGIX");
1006
g_message (" - gdk_gl_get_glXQueryGLXPbufferSGIX () - %s",
1007
(_procs_GLX_SGIX_pbuffer.glXQueryGLXPbufferSGIX) ? "supported" : "not supported"));
1009
return (GdkGLProc) (_procs_GLX_SGIX_pbuffer.glXQueryGLXPbufferSGIX);
1012
/* glXSelectEventSGIX */
1014
gdk_gl_get_glXSelectEventSGIX (void)
1016
if (_procs_GLX_SGIX_pbuffer.glXSelectEventSGIX == (GdkGLProc_glXSelectEventSGIX) -1)
1017
_procs_GLX_SGIX_pbuffer.glXSelectEventSGIX =
1018
(GdkGLProc_glXSelectEventSGIX) gdk_gl_get_proc_address ("glXSelectEventSGIX");
1021
g_message (" - gdk_gl_get_glXSelectEventSGIX () - %s",
1022
(_procs_GLX_SGIX_pbuffer.glXSelectEventSGIX) ? "supported" : "not supported"));
1024
return (GdkGLProc) (_procs_GLX_SGIX_pbuffer.glXSelectEventSGIX);
1027
/* glXGetSelectedEventSGIX */
1029
gdk_gl_get_glXGetSelectedEventSGIX (void)
1031
if (_procs_GLX_SGIX_pbuffer.glXGetSelectedEventSGIX == (GdkGLProc_glXGetSelectedEventSGIX) -1)
1032
_procs_GLX_SGIX_pbuffer.glXGetSelectedEventSGIX =
1033
(GdkGLProc_glXGetSelectedEventSGIX) gdk_gl_get_proc_address ("glXGetSelectedEventSGIX");
1036
g_message (" - gdk_gl_get_glXGetSelectedEventSGIX () - %s",
1037
(_procs_GLX_SGIX_pbuffer.glXGetSelectedEventSGIX) ? "supported" : "not supported"));
1039
return (GdkGLProc) (_procs_GLX_SGIX_pbuffer.glXGetSelectedEventSGIX);
1042
/* Get GLX_SGIX_pbuffer functions */
1043
GdkGL_GLX_SGIX_pbuffer *
1044
gdk_gl_get_GLX_SGIX_pbuffer (GdkGLConfig *glconfig)
1046
static gint supported = -1;
1048
if (supported == -1)
1050
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGIX_pbuffer");
1054
supported &= (gdk_gl_get_glXCreateGLXPbufferSGIX () != NULL);
1055
supported &= (gdk_gl_get_glXDestroyGLXPbufferSGIX () != NULL);
1056
supported &= (gdk_gl_get_glXQueryGLXPbufferSGIX () != NULL);
1057
supported &= (gdk_gl_get_glXSelectEventSGIX () != NULL);
1058
supported &= (gdk_gl_get_glXGetSelectedEventSGIX () != NULL);
1063
g_message (" - gdk_gl_get_GLX_SGIX_pbuffer () - %s",
1064
(supported) ? "supported" : "not supported"));
1069
return &_procs_GLX_SGIX_pbuffer;
1076
static GdkGL_GLX_SGI_cushion _procs_GLX_SGI_cushion = {
1077
(GdkGLProc_glXCushionSGI) -1
1082
gdk_gl_get_glXCushionSGI (void)
1084
if (_procs_GLX_SGI_cushion.glXCushionSGI == (GdkGLProc_glXCushionSGI) -1)
1085
_procs_GLX_SGI_cushion.glXCushionSGI =
1086
(GdkGLProc_glXCushionSGI) gdk_gl_get_proc_address ("glXCushionSGI");
1089
g_message (" - gdk_gl_get_glXCushionSGI () - %s",
1090
(_procs_GLX_SGI_cushion.glXCushionSGI) ? "supported" : "not supported"));
1092
return (GdkGLProc) (_procs_GLX_SGI_cushion.glXCushionSGI);
1095
/* Get GLX_SGI_cushion functions */
1096
GdkGL_GLX_SGI_cushion *
1097
gdk_gl_get_GLX_SGI_cushion (GdkGLConfig *glconfig)
1099
static gint supported = -1;
1101
if (supported == -1)
1103
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGI_cushion");
1107
supported &= (gdk_gl_get_glXCushionSGI () != NULL);
1112
g_message (" - gdk_gl_get_GLX_SGI_cushion () - %s",
1113
(supported) ? "supported" : "not supported"));
1118
return &_procs_GLX_SGI_cushion;
1122
* GLX_SGIX_video_resize
1125
static GdkGL_GLX_SGIX_video_resize _procs_GLX_SGIX_video_resize = {
1126
(GdkGLProc_glXBindChannelToWindowSGIX) -1,
1127
(GdkGLProc_glXChannelRectSGIX) -1,
1128
(GdkGLProc_glXQueryChannelRectSGIX) -1,
1129
(GdkGLProc_glXQueryChannelDeltasSGIX) -1,
1130
(GdkGLProc_glXChannelRectSyncSGIX) -1
1133
/* glXBindChannelToWindowSGIX */
1135
gdk_gl_get_glXBindChannelToWindowSGIX (void)
1137
if (_procs_GLX_SGIX_video_resize.glXBindChannelToWindowSGIX == (GdkGLProc_glXBindChannelToWindowSGIX) -1)
1138
_procs_GLX_SGIX_video_resize.glXBindChannelToWindowSGIX =
1139
(GdkGLProc_glXBindChannelToWindowSGIX) gdk_gl_get_proc_address ("glXBindChannelToWindowSGIX");
1142
g_message (" - gdk_gl_get_glXBindChannelToWindowSGIX () - %s",
1143
(_procs_GLX_SGIX_video_resize.glXBindChannelToWindowSGIX) ? "supported" : "not supported"));
1145
return (GdkGLProc) (_procs_GLX_SGIX_video_resize.glXBindChannelToWindowSGIX);
1148
/* glXChannelRectSGIX */
1150
gdk_gl_get_glXChannelRectSGIX (void)
1152
if (_procs_GLX_SGIX_video_resize.glXChannelRectSGIX == (GdkGLProc_glXChannelRectSGIX) -1)
1153
_procs_GLX_SGIX_video_resize.glXChannelRectSGIX =
1154
(GdkGLProc_glXChannelRectSGIX) gdk_gl_get_proc_address ("glXChannelRectSGIX");
1157
g_message (" - gdk_gl_get_glXChannelRectSGIX () - %s",
1158
(_procs_GLX_SGIX_video_resize.glXChannelRectSGIX) ? "supported" : "not supported"));
1160
return (GdkGLProc) (_procs_GLX_SGIX_video_resize.glXChannelRectSGIX);
1163
/* glXQueryChannelRectSGIX */
1165
gdk_gl_get_glXQueryChannelRectSGIX (void)
1167
if (_procs_GLX_SGIX_video_resize.glXQueryChannelRectSGIX == (GdkGLProc_glXQueryChannelRectSGIX) -1)
1168
_procs_GLX_SGIX_video_resize.glXQueryChannelRectSGIX =
1169
(GdkGLProc_glXQueryChannelRectSGIX) gdk_gl_get_proc_address ("glXQueryChannelRectSGIX");
1172
g_message (" - gdk_gl_get_glXQueryChannelRectSGIX () - %s",
1173
(_procs_GLX_SGIX_video_resize.glXQueryChannelRectSGIX) ? "supported" : "not supported"));
1175
return (GdkGLProc) (_procs_GLX_SGIX_video_resize.glXQueryChannelRectSGIX);
1178
/* glXQueryChannelDeltasSGIX */
1180
gdk_gl_get_glXQueryChannelDeltasSGIX (void)
1182
if (_procs_GLX_SGIX_video_resize.glXQueryChannelDeltasSGIX == (GdkGLProc_glXQueryChannelDeltasSGIX) -1)
1183
_procs_GLX_SGIX_video_resize.glXQueryChannelDeltasSGIX =
1184
(GdkGLProc_glXQueryChannelDeltasSGIX) gdk_gl_get_proc_address ("glXQueryChannelDeltasSGIX");
1187
g_message (" - gdk_gl_get_glXQueryChannelDeltasSGIX () - %s",
1188
(_procs_GLX_SGIX_video_resize.glXQueryChannelDeltasSGIX) ? "supported" : "not supported"));
1190
return (GdkGLProc) (_procs_GLX_SGIX_video_resize.glXQueryChannelDeltasSGIX);
1193
/* glXChannelRectSyncSGIX */
1195
gdk_gl_get_glXChannelRectSyncSGIX (void)
1197
if (_procs_GLX_SGIX_video_resize.glXChannelRectSyncSGIX == (GdkGLProc_glXChannelRectSyncSGIX) -1)
1198
_procs_GLX_SGIX_video_resize.glXChannelRectSyncSGIX =
1199
(GdkGLProc_glXChannelRectSyncSGIX) gdk_gl_get_proc_address ("glXChannelRectSyncSGIX");
1202
g_message (" - gdk_gl_get_glXChannelRectSyncSGIX () - %s",
1203
(_procs_GLX_SGIX_video_resize.glXChannelRectSyncSGIX) ? "supported" : "not supported"));
1205
return (GdkGLProc) (_procs_GLX_SGIX_video_resize.glXChannelRectSyncSGIX);
1208
/* Get GLX_SGIX_video_resize functions */
1209
GdkGL_GLX_SGIX_video_resize *
1210
gdk_gl_get_GLX_SGIX_video_resize (GdkGLConfig *glconfig)
1212
static gint supported = -1;
1214
if (supported == -1)
1216
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGIX_video_resize");
1220
supported &= (gdk_gl_get_glXBindChannelToWindowSGIX () != NULL);
1221
supported &= (gdk_gl_get_glXChannelRectSGIX () != NULL);
1222
supported &= (gdk_gl_get_glXQueryChannelRectSGIX () != NULL);
1223
supported &= (gdk_gl_get_glXQueryChannelDeltasSGIX () != NULL);
1224
supported &= (gdk_gl_get_glXChannelRectSyncSGIX () != NULL);
1229
g_message (" - gdk_gl_get_GLX_SGIX_video_resize () - %s",
1230
(supported) ? "supported" : "not supported"));
1235
return &_procs_GLX_SGIX_video_resize;
1242
#ifdef _DM_BUFFER_H_
1244
static GdkGL_GLX_SGIX_dmbuffer _procs_GLX_SGIX_dmbuffer = {
1245
(GdkGLProc_glXAssociateDMPbufferSGIX) -1
1248
/* glXAssociateDMPbufferSGIX */
1250
gdk_gl_get_glXAssociateDMPbufferSGIX (void)
1252
if (_procs_GLX_SGIX_dmbuffer.glXAssociateDMPbufferSGIX == (GdkGLProc_glXAssociateDMPbufferSGIX) -1)
1253
_procs_GLX_SGIX_dmbuffer.glXAssociateDMPbufferSGIX =
1254
(GdkGLProc_glXAssociateDMPbufferSGIX) gdk_gl_get_proc_address ("glXAssociateDMPbufferSGIX");
1257
g_message (" - gdk_gl_get_glXAssociateDMPbufferSGIX () - %s",
1258
(_procs_GLX_SGIX_dmbuffer.glXAssociateDMPbufferSGIX) ? "supported" : "not supported"));
1260
return (GdkGLProc) (_procs_GLX_SGIX_dmbuffer.glXAssociateDMPbufferSGIX);
1263
/* Get GLX_SGIX_dmbuffer functions */
1264
GdkGL_GLX_SGIX_dmbuffer *
1265
gdk_gl_get_GLX_SGIX_dmbuffer (GdkGLConfig *glconfig)
1267
static gint supported = -1;
1269
if (supported == -1)
1271
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGIX_dmbuffer");
1275
supported &= (gdk_gl_get_glXAssociateDMPbufferSGIX () != NULL);
1280
g_message (" - gdk_gl_get_GLX_SGIX_dmbuffer () - %s",
1281
(supported) ? "supported" : "not supported"));
1286
return &_procs_GLX_SGIX_dmbuffer;
1289
#endif /* _DM_BUFFER_H_ */
1292
* GLX_SGIX_swap_group
1295
static GdkGL_GLX_SGIX_swap_group _procs_GLX_SGIX_swap_group = {
1296
(GdkGLProc_glXJoinSwapGroupSGIX) -1
1299
/* glXJoinSwapGroupSGIX */
1301
gdk_gl_get_glXJoinSwapGroupSGIX (void)
1303
if (_procs_GLX_SGIX_swap_group.glXJoinSwapGroupSGIX == (GdkGLProc_glXJoinSwapGroupSGIX) -1)
1304
_procs_GLX_SGIX_swap_group.glXJoinSwapGroupSGIX =
1305
(GdkGLProc_glXJoinSwapGroupSGIX) gdk_gl_get_proc_address ("glXJoinSwapGroupSGIX");
1308
g_message (" - gdk_gl_get_glXJoinSwapGroupSGIX () - %s",
1309
(_procs_GLX_SGIX_swap_group.glXJoinSwapGroupSGIX) ? "supported" : "not supported"));
1311
return (GdkGLProc) (_procs_GLX_SGIX_swap_group.glXJoinSwapGroupSGIX);
1314
/* Get GLX_SGIX_swap_group functions */
1315
GdkGL_GLX_SGIX_swap_group *
1316
gdk_gl_get_GLX_SGIX_swap_group (GdkGLConfig *glconfig)
1318
static gint supported = -1;
1320
if (supported == -1)
1322
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGIX_swap_group");
1326
supported &= (gdk_gl_get_glXJoinSwapGroupSGIX () != NULL);
1331
g_message (" - gdk_gl_get_GLX_SGIX_swap_group () - %s",
1332
(supported) ? "supported" : "not supported"));
1337
return &_procs_GLX_SGIX_swap_group;
1341
* GLX_SGIX_swap_barrier
1344
static GdkGL_GLX_SGIX_swap_barrier _procs_GLX_SGIX_swap_barrier = {
1345
(GdkGLProc_glXBindSwapBarrierSGIX) -1,
1346
(GdkGLProc_glXQueryMaxSwapBarriersSGIX) -1
1349
/* glXBindSwapBarrierSGIX */
1351
gdk_gl_get_glXBindSwapBarrierSGIX (void)
1353
if (_procs_GLX_SGIX_swap_barrier.glXBindSwapBarrierSGIX == (GdkGLProc_glXBindSwapBarrierSGIX) -1)
1354
_procs_GLX_SGIX_swap_barrier.glXBindSwapBarrierSGIX =
1355
(GdkGLProc_glXBindSwapBarrierSGIX) gdk_gl_get_proc_address ("glXBindSwapBarrierSGIX");
1358
g_message (" - gdk_gl_get_glXBindSwapBarrierSGIX () - %s",
1359
(_procs_GLX_SGIX_swap_barrier.glXBindSwapBarrierSGIX) ? "supported" : "not supported"));
1361
return (GdkGLProc) (_procs_GLX_SGIX_swap_barrier.glXBindSwapBarrierSGIX);
1364
/* glXQueryMaxSwapBarriersSGIX */
1366
gdk_gl_get_glXQueryMaxSwapBarriersSGIX (void)
1368
if (_procs_GLX_SGIX_swap_barrier.glXQueryMaxSwapBarriersSGIX == (GdkGLProc_glXQueryMaxSwapBarriersSGIX) -1)
1369
_procs_GLX_SGIX_swap_barrier.glXQueryMaxSwapBarriersSGIX =
1370
(GdkGLProc_glXQueryMaxSwapBarriersSGIX) gdk_gl_get_proc_address ("glXQueryMaxSwapBarriersSGIX");
1373
g_message (" - gdk_gl_get_glXQueryMaxSwapBarriersSGIX () - %s",
1374
(_procs_GLX_SGIX_swap_barrier.glXQueryMaxSwapBarriersSGIX) ? "supported" : "not supported"));
1376
return (GdkGLProc) (_procs_GLX_SGIX_swap_barrier.glXQueryMaxSwapBarriersSGIX);
1379
/* Get GLX_SGIX_swap_barrier functions */
1380
GdkGL_GLX_SGIX_swap_barrier *
1381
gdk_gl_get_GLX_SGIX_swap_barrier (GdkGLConfig *glconfig)
1383
static gint supported = -1;
1385
if (supported == -1)
1387
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SGIX_swap_barrier");
1391
supported &= (gdk_gl_get_glXBindSwapBarrierSGIX () != NULL);
1392
supported &= (gdk_gl_get_glXQueryMaxSwapBarriersSGIX () != NULL);
1397
g_message (" - gdk_gl_get_GLX_SGIX_swap_barrier () - %s",
1398
(supported) ? "supported" : "not supported"));
1403
return &_procs_GLX_SGIX_swap_barrier;
1407
* GLX_SUN_get_transparent_index
1410
static GdkGL_GLX_SUN_get_transparent_index _procs_GLX_SUN_get_transparent_index = {
1411
(GdkGLProc_glXGetTransparentIndexSUN) -1
1414
/* glXGetTransparentIndexSUN */
1416
gdk_gl_get_glXGetTransparentIndexSUN (void)
1418
if (_procs_GLX_SUN_get_transparent_index.glXGetTransparentIndexSUN == (GdkGLProc_glXGetTransparentIndexSUN) -1)
1419
_procs_GLX_SUN_get_transparent_index.glXGetTransparentIndexSUN =
1420
(GdkGLProc_glXGetTransparentIndexSUN) gdk_gl_get_proc_address ("glXGetTransparentIndexSUN");
1423
g_message (" - gdk_gl_get_glXGetTransparentIndexSUN () - %s",
1424
(_procs_GLX_SUN_get_transparent_index.glXGetTransparentIndexSUN) ? "supported" : "not supported"));
1426
return (GdkGLProc) (_procs_GLX_SUN_get_transparent_index.glXGetTransparentIndexSUN);
1429
/* Get GLX_SUN_get_transparent_index functions */
1430
GdkGL_GLX_SUN_get_transparent_index *
1431
gdk_gl_get_GLX_SUN_get_transparent_index (GdkGLConfig *glconfig)
1433
static gint supported = -1;
1435
if (supported == -1)
1437
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_SUN_get_transparent_index");
1441
supported &= (gdk_gl_get_glXGetTransparentIndexSUN () != NULL);
1446
g_message (" - gdk_gl_get_GLX_SUN_get_transparent_index () - %s",
1447
(supported) ? "supported" : "not supported"));
1452
return &_procs_GLX_SUN_get_transparent_index;
1456
* GLX_MESA_copy_sub_buffer
1459
static GdkGL_GLX_MESA_copy_sub_buffer _procs_GLX_MESA_copy_sub_buffer = {
1460
(GdkGLProc_glXCopySubBufferMESA) -1
1463
/* glXCopySubBufferMESA */
1465
gdk_gl_get_glXCopySubBufferMESA (void)
1467
if (_procs_GLX_MESA_copy_sub_buffer.glXCopySubBufferMESA == (GdkGLProc_glXCopySubBufferMESA) -1)
1468
_procs_GLX_MESA_copy_sub_buffer.glXCopySubBufferMESA =
1469
(GdkGLProc_glXCopySubBufferMESA) gdk_gl_get_proc_address ("glXCopySubBufferMESA");
1472
g_message (" - gdk_gl_get_glXCopySubBufferMESA () - %s",
1473
(_procs_GLX_MESA_copy_sub_buffer.glXCopySubBufferMESA) ? "supported" : "not supported"));
1475
return (GdkGLProc) (_procs_GLX_MESA_copy_sub_buffer.glXCopySubBufferMESA);
1478
/* Get GLX_MESA_copy_sub_buffer functions */
1479
GdkGL_GLX_MESA_copy_sub_buffer *
1480
gdk_gl_get_GLX_MESA_copy_sub_buffer (GdkGLConfig *glconfig)
1482
static gint supported = -1;
1484
if (supported == -1)
1486
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_MESA_copy_sub_buffer");
1490
supported &= (gdk_gl_get_glXCopySubBufferMESA () != NULL);
1495
g_message (" - gdk_gl_get_GLX_MESA_copy_sub_buffer () - %s",
1496
(supported) ? "supported" : "not supported"));
1501
return &_procs_GLX_MESA_copy_sub_buffer;
1505
* GLX_MESA_pixmap_colormap
1508
static GdkGL_GLX_MESA_pixmap_colormap _procs_GLX_MESA_pixmap_colormap = {
1509
(GdkGLProc_glXCreateGLXPixmapMESA) -1
1512
/* glXCreateGLXPixmapMESA */
1514
gdk_gl_get_glXCreateGLXPixmapMESA (void)
1516
if (_procs_GLX_MESA_pixmap_colormap.glXCreateGLXPixmapMESA == (GdkGLProc_glXCreateGLXPixmapMESA) -1)
1517
_procs_GLX_MESA_pixmap_colormap.glXCreateGLXPixmapMESA =
1518
(GdkGLProc_glXCreateGLXPixmapMESA) gdk_gl_get_proc_address ("glXCreateGLXPixmapMESA");
1521
g_message (" - gdk_gl_get_glXCreateGLXPixmapMESA () - %s",
1522
(_procs_GLX_MESA_pixmap_colormap.glXCreateGLXPixmapMESA) ? "supported" : "not supported"));
1524
return (GdkGLProc) (_procs_GLX_MESA_pixmap_colormap.glXCreateGLXPixmapMESA);
1527
/* Get GLX_MESA_pixmap_colormap functions */
1528
GdkGL_GLX_MESA_pixmap_colormap *
1529
gdk_gl_get_GLX_MESA_pixmap_colormap (GdkGLConfig *glconfig)
1531
static gint supported = -1;
1533
if (supported == -1)
1535
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_MESA_pixmap_colormap");
1539
supported &= (gdk_gl_get_glXCreateGLXPixmapMESA () != NULL);
1544
g_message (" - gdk_gl_get_GLX_MESA_pixmap_colormap () - %s",
1545
(supported) ? "supported" : "not supported"));
1550
return &_procs_GLX_MESA_pixmap_colormap;
1554
* GLX_MESA_release_buffers
1557
static GdkGL_GLX_MESA_release_buffers _procs_GLX_MESA_release_buffers = {
1558
(GdkGLProc_glXReleaseBuffersMESA) -1
1561
/* glXReleaseBuffersMESA */
1563
gdk_gl_get_glXReleaseBuffersMESA (void)
1565
if (_procs_GLX_MESA_release_buffers.glXReleaseBuffersMESA == (GdkGLProc_glXReleaseBuffersMESA) -1)
1566
_procs_GLX_MESA_release_buffers.glXReleaseBuffersMESA =
1567
(GdkGLProc_glXReleaseBuffersMESA) gdk_gl_get_proc_address ("glXReleaseBuffersMESA");
1570
g_message (" - gdk_gl_get_glXReleaseBuffersMESA () - %s",
1571
(_procs_GLX_MESA_release_buffers.glXReleaseBuffersMESA) ? "supported" : "not supported"));
1573
return (GdkGLProc) (_procs_GLX_MESA_release_buffers.glXReleaseBuffersMESA);
1576
/* Get GLX_MESA_release_buffers functions */
1577
GdkGL_GLX_MESA_release_buffers *
1578
gdk_gl_get_GLX_MESA_release_buffers (GdkGLConfig *glconfig)
1580
static gint supported = -1;
1582
if (supported == -1)
1584
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_MESA_release_buffers");
1588
supported &= (gdk_gl_get_glXReleaseBuffersMESA () != NULL);
1593
g_message (" - gdk_gl_get_GLX_MESA_release_buffers () - %s",
1594
(supported) ? "supported" : "not supported"));
1599
return &_procs_GLX_MESA_release_buffers;
1603
* GLX_MESA_set_3dfx_mode
1606
static GdkGL_GLX_MESA_set_3dfx_mode _procs_GLX_MESA_set_3dfx_mode = {
1607
(GdkGLProc_glXSet3DfxModeMESA) -1
1610
/* glXSet3DfxModeMESA */
1612
gdk_gl_get_glXSet3DfxModeMESA (void)
1614
if (_procs_GLX_MESA_set_3dfx_mode.glXSet3DfxModeMESA == (GdkGLProc_glXSet3DfxModeMESA) -1)
1615
_procs_GLX_MESA_set_3dfx_mode.glXSet3DfxModeMESA =
1616
(GdkGLProc_glXSet3DfxModeMESA) gdk_gl_get_proc_address ("glXSet3DfxModeMESA");
1619
g_message (" - gdk_gl_get_glXSet3DfxModeMESA () - %s",
1620
(_procs_GLX_MESA_set_3dfx_mode.glXSet3DfxModeMESA) ? "supported" : "not supported"));
1622
return (GdkGLProc) (_procs_GLX_MESA_set_3dfx_mode.glXSet3DfxModeMESA);
1625
/* Get GLX_MESA_set_3dfx_mode functions */
1626
GdkGL_GLX_MESA_set_3dfx_mode *
1627
gdk_gl_get_GLX_MESA_set_3dfx_mode (GdkGLConfig *glconfig)
1629
static gint supported = -1;
1631
if (supported == -1)
1633
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_MESA_set_3dfx_mode");
1637
supported &= (gdk_gl_get_glXSet3DfxModeMESA () != NULL);
1642
g_message (" - gdk_gl_get_GLX_MESA_set_3dfx_mode () - %s",
1643
(supported) ? "supported" : "not supported"));
1648
return &_procs_GLX_MESA_set_3dfx_mode;
1652
* GLX_OML_sync_control
1655
static GdkGL_GLX_OML_sync_control _procs_GLX_OML_sync_control = {
1656
(GdkGLProc_glXGetSyncValuesOML) -1,
1657
(GdkGLProc_glXGetMscRateOML) -1,
1658
(GdkGLProc_glXSwapBuffersMscOML) -1,
1659
(GdkGLProc_glXWaitForMscOML) -1,
1660
(GdkGLProc_glXWaitForSbcOML) -1
1663
/* glXGetSyncValuesOML */
1665
gdk_gl_get_glXGetSyncValuesOML (void)
1667
if (_procs_GLX_OML_sync_control.glXGetSyncValuesOML == (GdkGLProc_glXGetSyncValuesOML) -1)
1668
_procs_GLX_OML_sync_control.glXGetSyncValuesOML =
1669
(GdkGLProc_glXGetSyncValuesOML) gdk_gl_get_proc_address ("glXGetSyncValuesOML");
1672
g_message (" - gdk_gl_get_glXGetSyncValuesOML () - %s",
1673
(_procs_GLX_OML_sync_control.glXGetSyncValuesOML) ? "supported" : "not supported"));
1675
return (GdkGLProc) (_procs_GLX_OML_sync_control.glXGetSyncValuesOML);
1678
/* glXGetMscRateOML */
1680
gdk_gl_get_glXGetMscRateOML (void)
1682
if (_procs_GLX_OML_sync_control.glXGetMscRateOML == (GdkGLProc_glXGetMscRateOML) -1)
1683
_procs_GLX_OML_sync_control.glXGetMscRateOML =
1684
(GdkGLProc_glXGetMscRateOML) gdk_gl_get_proc_address ("glXGetMscRateOML");
1687
g_message (" - gdk_gl_get_glXGetMscRateOML () - %s",
1688
(_procs_GLX_OML_sync_control.glXGetMscRateOML) ? "supported" : "not supported"));
1690
return (GdkGLProc) (_procs_GLX_OML_sync_control.glXGetMscRateOML);
1693
/* glXSwapBuffersMscOML */
1695
gdk_gl_get_glXSwapBuffersMscOML (void)
1697
if (_procs_GLX_OML_sync_control.glXSwapBuffersMscOML == (GdkGLProc_glXSwapBuffersMscOML) -1)
1698
_procs_GLX_OML_sync_control.glXSwapBuffersMscOML =
1699
(GdkGLProc_glXSwapBuffersMscOML) gdk_gl_get_proc_address ("glXSwapBuffersMscOML");
1702
g_message (" - gdk_gl_get_glXSwapBuffersMscOML () - %s",
1703
(_procs_GLX_OML_sync_control.glXSwapBuffersMscOML) ? "supported" : "not supported"));
1705
return (GdkGLProc) (_procs_GLX_OML_sync_control.glXSwapBuffersMscOML);
1708
/* glXWaitForMscOML */
1710
gdk_gl_get_glXWaitForMscOML (void)
1712
if (_procs_GLX_OML_sync_control.glXWaitForMscOML == (GdkGLProc_glXWaitForMscOML) -1)
1713
_procs_GLX_OML_sync_control.glXWaitForMscOML =
1714
(GdkGLProc_glXWaitForMscOML) gdk_gl_get_proc_address ("glXWaitForMscOML");
1717
g_message (" - gdk_gl_get_glXWaitForMscOML () - %s",
1718
(_procs_GLX_OML_sync_control.glXWaitForMscOML) ? "supported" : "not supported"));
1720
return (GdkGLProc) (_procs_GLX_OML_sync_control.glXWaitForMscOML);
1723
/* glXWaitForSbcOML */
1725
gdk_gl_get_glXWaitForSbcOML (void)
1727
if (_procs_GLX_OML_sync_control.glXWaitForSbcOML == (GdkGLProc_glXWaitForSbcOML) -1)
1728
_procs_GLX_OML_sync_control.glXWaitForSbcOML =
1729
(GdkGLProc_glXWaitForSbcOML) gdk_gl_get_proc_address ("glXWaitForSbcOML");
1732
g_message (" - gdk_gl_get_glXWaitForSbcOML () - %s",
1733
(_procs_GLX_OML_sync_control.glXWaitForSbcOML) ? "supported" : "not supported"));
1735
return (GdkGLProc) (_procs_GLX_OML_sync_control.glXWaitForSbcOML);
1738
/* Get GLX_OML_sync_control functions */
1739
GdkGL_GLX_OML_sync_control *
1740
gdk_gl_get_GLX_OML_sync_control (GdkGLConfig *glconfig)
1742
static gint supported = -1;
1744
if (supported == -1)
1746
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_OML_sync_control");
1750
supported &= (gdk_gl_get_glXGetSyncValuesOML () != NULL);
1751
supported &= (gdk_gl_get_glXGetMscRateOML () != NULL);
1752
supported &= (gdk_gl_get_glXSwapBuffersMscOML () != NULL);
1753
supported &= (gdk_gl_get_glXWaitForMscOML () != NULL);
1754
supported &= (gdk_gl_get_glXWaitForSbcOML () != NULL);
1759
g_message (" - gdk_gl_get_GLX_OML_sync_control () - %s",
1760
(supported) ? "supported" : "not supported"));
1765
return &_procs_GLX_OML_sync_control;
1769
* GLX_MESA_agp_offset
1772
static GdkGL_GLX_MESA_agp_offset _procs_GLX_MESA_agp_offset = {
1773
(GdkGLProc_glXGetAGPOffsetMESA) -1
1776
/* glXGetAGPOffsetMESA */
1778
gdk_gl_get_glXGetAGPOffsetMESA (void)
1780
if (_procs_GLX_MESA_agp_offset.glXGetAGPOffsetMESA == (GdkGLProc_glXGetAGPOffsetMESA) -1)
1781
_procs_GLX_MESA_agp_offset.glXGetAGPOffsetMESA =
1782
(GdkGLProc_glXGetAGPOffsetMESA) gdk_gl_get_proc_address ("glXGetAGPOffsetMESA");
1785
g_message (" - gdk_gl_get_glXGetAGPOffsetMESA () - %s",
1786
(_procs_GLX_MESA_agp_offset.glXGetAGPOffsetMESA) ? "supported" : "not supported"));
1788
return (GdkGLProc) (_procs_GLX_MESA_agp_offset.glXGetAGPOffsetMESA);
1791
/* Get GLX_MESA_agp_offset functions */
1792
GdkGL_GLX_MESA_agp_offset *
1793
gdk_gl_get_GLX_MESA_agp_offset (GdkGLConfig *glconfig)
1795
static gint supported = -1;
1797
if (supported == -1)
1799
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_MESA_agp_offset");
1803
supported &= (gdk_gl_get_glXGetAGPOffsetMESA () != NULL);
1808
g_message (" - gdk_gl_get_GLX_MESA_agp_offset () - %s",
1809
(supported) ? "supported" : "not supported"));
1814
return &_procs_GLX_MESA_agp_offset;
1818
* GLX_NV_vertex_array_range
1821
static GdkGL_GLX_NV_vertex_array_range _procs_GLX_NV_vertex_array_range = {
1822
(GdkGLProc_glXAllocateMemoryNV) -1,
1823
(GdkGLProc_glXFreeMemoryNV) -1
1826
/* glXAllocateMemoryNV */
1828
gdk_gl_get_glXAllocateMemoryNV (void)
1830
if (_procs_GLX_NV_vertex_array_range.glXAllocateMemoryNV == (GdkGLProc_glXAllocateMemoryNV) -1)
1831
_procs_GLX_NV_vertex_array_range.glXAllocateMemoryNV =
1832
(GdkGLProc_glXAllocateMemoryNV) gdk_gl_get_proc_address ("glXAllocateMemoryNV");
1835
g_message (" - gdk_gl_get_glXAllocateMemoryNV () - %s",
1836
(_procs_GLX_NV_vertex_array_range.glXAllocateMemoryNV) ? "supported" : "not supported"));
1838
return (GdkGLProc) (_procs_GLX_NV_vertex_array_range.glXAllocateMemoryNV);
1841
/* glXFreeMemoryNV */
1843
gdk_gl_get_glXFreeMemoryNV (void)
1845
if (_procs_GLX_NV_vertex_array_range.glXFreeMemoryNV == (GdkGLProc_glXFreeMemoryNV) -1)
1846
_procs_GLX_NV_vertex_array_range.glXFreeMemoryNV =
1847
(GdkGLProc_glXFreeMemoryNV) gdk_gl_get_proc_address ("glXFreeMemoryNV");
1850
g_message (" - gdk_gl_get_glXFreeMemoryNV () - %s",
1851
(_procs_GLX_NV_vertex_array_range.glXFreeMemoryNV) ? "supported" : "not supported"));
1853
return (GdkGLProc) (_procs_GLX_NV_vertex_array_range.glXFreeMemoryNV);
1856
/* Get GLX_NV_vertex_array_range functions */
1857
GdkGL_GLX_NV_vertex_array_range *
1858
gdk_gl_get_GLX_NV_vertex_array_range (GdkGLConfig *glconfig)
1860
static gint supported = -1;
1862
if (supported == -1)
1864
supported = gdk_x11_gl_query_glx_extension (glconfig, "GLX_NV_vertex_array_range");
1868
supported &= (gdk_gl_get_glXAllocateMemoryNV () != NULL);
1869
supported &= (gdk_gl_get_glXFreeMemoryNV () != NULL);
1874
g_message (" - gdk_gl_get_GLX_NV_vertex_array_range () - %s",
1875
(supported) ? "supported" : "not supported"));
1880
return &_procs_GLX_NV_vertex_array_range;