xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #226: gdkglext.defs

File gdkglext.defs, 11.5 KB (added by Antoine Martin, 8 years ago)

fixed gdkglext definition file for building on osx

Line 
1;; -*- scheme -*-
2
3(include "gdkglext-types.defs")
4
5;; From gtkglext/gdk/gdkgl.h
6
7
8
9;; From gtkglext/gdk/gdkglconfig.h
10
11(define-function gdk_gl_config_get_type
12  (c-name "gdk_gl_config_get_type")
13  (return-type "GType")
14)
15
16(define-function gdk_gl_config_new
17  (c-name "gdk_gl_config_new")
18  (is-constructor-of "GdkGLConfig")
19  (return-type "GdkGLConfig*")
20  (parameters
21    '("const-int*" "attrib_list")
22  )
23)
24
25(define-function gdk_gl_config_new_for_screen
26  (c-name "gdk_gl_config_new_for_screen")
27  (is-constructor-of "GdkGLConfig")
28  (return-type "GdkGLConfig*")
29  (parameters
30    '("GdkScreen*" "screen")
31    '("const-int*" "attrib_list")
32  )
33)
34
35(define-function gdk_gl_config_new_by_mode
36  (c-name "gdk_gl_config_new_by_mode")
37  (is-constructor-of "GdkGLConfig")
38  (return-type "GdkGLConfig*")
39  (parameters
40    '("GdkGLConfigMode" "mode")
41  )
42)
43
44(define-function gdk_gl_config_new_by_mode_for_screen
45  (c-name "gdk_gl_config_new_by_mode_for_screen")
46  (is-constructor-of "GdkGLConfig")
47  (return-type "GdkGLConfig*")
48  (parameters
49    '("GdkScreen*" "screen")
50    '("GdkGLConfigMode" "mode")
51  )
52)
53
54(define-method get_screen
55  (of-object "GdkGLConfig")
56  (c-name "gdk_gl_config_get_screen")
57  (return-type "GdkScreen*")
58)
59
60(define-method get_attrib
61  (of-object "GdkGLConfig")
62  (c-name "gdk_gl_config_get_attrib")
63  (return-type "gboolean")
64  (parameters
65    '("int" "attribute")
66    '("int*" "value")
67  )
68)
69
70(define-method get_colormap
71  (of-object "GdkGLConfig")
72  (c-name "gdk_gl_config_get_colormap")
73  (return-type "GdkColormap*")
74)
75
76(define-method get_visual
77  (of-object "GdkGLConfig")
78  (c-name "gdk_gl_config_get_visual")
79  (return-type "GdkVisual*")
80)
81
82(define-method get_layer_plane
83  (of-object "GdkGLConfig")
84  (c-name "gdk_gl_config_get_layer_plane")
85  (return-type "gint")
86)
87
88(define-method get_n_aux_buffers
89  (of-object "GdkGLConfig")
90  (c-name "gdk_gl_config_get_n_aux_buffers")
91  (return-type "gint")
92)
93
94(define-method get_n_sample_buffers
95  (of-object "GdkGLConfig")
96  (c-name "gdk_gl_config_get_n_sample_buffers")
97  (return-type "gint")
98)
99
100(define-method is_rgba
101  (of-object "GdkGLConfig")
102  (c-name "gdk_gl_config_is_rgba")
103  (return-type "gboolean")
104)
105
106(define-method is_double_buffered
107  (of-object "GdkGLConfig")
108  (c-name "gdk_gl_config_is_double_buffered")
109  (return-type "gboolean")
110)
111
112(define-method is_stereo
113  (of-object "GdkGLConfig")
114  (c-name "gdk_gl_config_is_stereo")
115  (return-type "gboolean")
116)
117
118(define-method has_alpha
119  (of-object "GdkGLConfig")
120  (c-name "gdk_gl_config_has_alpha")
121  (return-type "gboolean")
122)
123
124(define-method has_depth_buffer
125  (of-object "GdkGLConfig")
126  (c-name "gdk_gl_config_has_depth_buffer")
127  (return-type "gboolean")
128)
129
130(define-method has_stencil_buffer
131  (of-object "GdkGLConfig")
132  (c-name "gdk_gl_config_has_stencil_buffer")
133  (return-type "gboolean")
134)
135
136(define-method has_accum_buffer
137  (of-object "GdkGLConfig")
138  (c-name "gdk_gl_config_has_accum_buffer")
139  (return-type "gboolean")
140)
141
142
143
144;; From gtkglext/gdk/gdkglcontext.h
145
146(define-function gdk_gl_context_get_type
147  (c-name "gdk_gl_context_get_type")
148  (return-type "GType")
149)
150
151(define-function gdk_gl_context_new
152  (c-name "gdk_gl_context_new")
153  (is-constructor-of "GdkGLContext")
154  (return-type "GdkGLContext*")
155  (parameters
156    '("GdkGLDrawable*" "gldrawable")
157    '("GdkGLContext*" "share_list" (null-ok) (default "NULL"))
158    '("gboolean" "direct" (default "TRUE"))
159    '("int" "render_type" (default "GDK_GL_RGBA_TYPE"))
160  )
161)
162
163(define-method destroy
164  (of-object "GdkGLContext")
165  (c-name "_gdk_gl_context_destroy")
166  (return-type "none")
167)
168
169(define-method get_gl_drawable
170  (of-object "GdkGLContext")
171  (c-name "gdk_gl_context_get_gl_drawable")
172  (return-type "GdkGLDrawable*")
173)
174
175(define-function context_get_current
176  (c-name "gdk_gl_context_get_current")
177  (return-type "GdkGLContext*")
178)
179
180
181
182;; From gtkglext/gdk/gdkgldebug.h
183
184
185
186;; From gtkglext/gdk/gdkgldefs.h
187
188
189
190;; From gtkglext/gdk/gdkgldrawable.h
191
192(define-function gdk_gl_drawable_get_type
193  (c-name "gdk_gl_drawable_get_type")
194  (return-type "GType")
195)
196
197(define-method make_current
198  (of-object "GdkGLDrawable")
199  (c-name "gdk_gl_drawable_make_current")
200  (return-type "gboolean")
201  (parameters
202    '("GdkGLContext*" "glcontext")
203  )
204)
205
206(define-method is_double_buffered
207  (of-object "GdkGLDrawable")
208  (c-name "gdk_gl_drawable_is_double_buffered")
209  (return-type "gboolean")
210)
211
212(define-method swap_buffers
213  (of-object "GdkGLDrawable")
214  (c-name "gdk_gl_drawable_swap_buffers")
215  (return-type "none")
216)
217
218(define-method wait_gl
219  (of-object "GdkGLDrawable")
220  (c-name "gdk_gl_drawable_wait_gl")
221  (return-type "none")
222)
223
224(define-method wait_gdk
225  (of-object "GdkGLDrawable")
226  (c-name "gdk_gl_drawable_wait_gdk")
227  (return-type "none")
228)
229
230(define-method gl_begin
231  (of-object "GdkGLDrawable")
232  (c-name "gdk_gl_drawable_gl_begin")
233  (return-type "gboolean")
234  (parameters
235    '("GdkGLContext*" "glcontext")
236  )
237)
238
239(define-method gl_end
240  (of-object "GdkGLDrawable")
241  (c-name "gdk_gl_drawable_gl_end")
242  (return-type "none")
243)
244
245(define-method get_size
246  (of-object "GdkGLDrawable")
247  (c-name "gdk_gl_drawable_get_size")
248  (return-type "none")
249  (parameters
250    '("gint*" "width")
251    '("gint*" "height")
252  )
253)
254
255(define-function drawable_get_current
256  (c-name "gdk_gl_drawable_get_current")
257  (return-type "GdkGLDrawable*")
258)
259
260
261
262;; From gtkglext/gdk/gdkglenumtypes.h
263
264(define-function gdk_gl_config_caveat_get_type
265  (c-name "gdk_gl_config_caveat_get_type")
266  (return-type "GType")
267)
268
269(define-function gdk_gl_visual_type_get_type
270  (c-name "gdk_gl_visual_type_get_type")
271  (return-type "GType")
272)
273
274(define-function gdk_gl_transparent_type_get_type
275  (c-name "gdk_gl_transparent_type_get_type")
276  (return-type "GType")
277)
278
279(define-function gdk_gl_drawable_type_mask_get_type
280  (c-name "gdk_gl_drawable_type_mask_get_type")
281  (return-type "GType")
282)
283
284(define-function gdk_gl_render_type_mask_get_type
285  (c-name "gdk_gl_render_type_mask_get_type")
286  (return-type "GType")
287)
288
289(define-function gdk_gl_buffer_mask_get_type
290  (c-name "gdk_gl_buffer_mask_get_type")
291  (return-type "GType")
292)
293
294(define-function gdk_gl_config_error_get_type
295  (c-name "gdk_gl_config_error_get_type")
296  (return-type "GType")
297)
298
299(define-function gdk_gl_render_type_get_type
300  (c-name "gdk_gl_render_type_get_type")
301  (return-type "GType")
302)
303
304(define-function gdk_gl_drawable_attrib_get_type
305  (c-name "gdk_gl_drawable_attrib_get_type")
306  (return-type "GType")
307)
308
309(define-function gdk_gl_pbuffer_attrib_get_type
310  (c-name "gdk_gl_pbuffer_attrib_get_type")
311  (return-type "GType")
312)
313
314(define-function gdk_gl_event_mask_get_type
315  (c-name "gdk_gl_event_mask_get_type")
316  (return-type "GType")
317)
318
319(define-function gdk_gl_event_type_get_type
320  (c-name "gdk_gl_event_type_get_type")
321  (return-type "GType")
322)
323
324(define-function gdk_gl_drawable_type_get_type
325  (c-name "gdk_gl_drawable_type_get_type")
326  (return-type "GType")
327)
328
329(define-function gdk_gl_config_mode_get_type
330  (c-name "gdk_gl_config_mode_get_type")
331  (return-type "GType")
332)
333
334
335
336;; From gtkglext/gdk/gdkglext-config.h
337
338
339
340;; From gtkglext/gdk/gdkglfont.h
341
342
343;; From gtkglext/gdk/gdkglinit.h
344
345(define-function gdk_gl_parse_args
346  (c-name "gdk_gl_parse_args")
347  (return-type "gboolean")
348  (parameters
349    '("int*" "argc")
350    '("char***" "argv")
351  )
352)
353
354(define-function gdk_gl_init_check
355  (c-name "gdk_gl_init_check")
356  (return-type "gboolean")
357  (parameters
358    '("int*" "argc")
359    '("char***" "argv")
360  )
361)
362
363(define-function gdk_gl_init
364  (c-name "gdk_gl_init")
365  (return-type "none")
366  (parameters
367    '("int*" "argc")
368    '("char***" "argv")
369  )
370)
371
372
373
374;; From gtkglext/gdk/gdkglpixmap.h
375
376(define-function gdk_gl_pixmap_get_type
377  (c-name "gdk_gl_pixmap_get_type")
378  (return-type "GType")
379)
380
381(define-function gdk_gl_pixmap_new
382  (c-name "gdk_gl_pixmap_new")
383  (is-constructor-of "GdkGLPixmap")
384  (return-type "GdkGLPixmap*")
385  (parameters
386    '("GdkGLConfig*" "glconfig")
387    '("GdkPixmap*" "pixmap")
388    '("const-int*" "attrib_list" (null-ok) (default "NULL"))
389  )
390)
391
392(define-method destroy
393  (of-object "GdkGLPixmap")
394  (c-name "_gdk_gl_pixmap_destroy")
395  (return-type "none")
396)
397
398(define-method get_pixmap
399  (of-object "GdkGLPixmap")
400  (c-name "gdk_gl_pixmap_get_pixmap")
401  (return-type "GdkPixmap*")
402)
403
404(define-function pixmap_set_gl_capability
405  (c-name "gdk_pixmap_set_gl_capability")
406  (return-type "GdkGLPixmap*")
407  (parameters
408    '("GdkPixmap*" "pixmap")
409    '("GdkGLConfig*" "glconfig")
410    '("const-int*" "attrib_list" (null-ok) (default "NULL"))
411  )
412)
413
414(define-function pixmap_unset_gl_capability
415  (c-name "gdk_pixmap_unset_gl_capability")
416  (return-type "none")
417  (parameters
418    '("GdkPixmap*" "pixmap")
419  )
420)
421
422(define-function pixmap_is_gl_capable
423  (c-name "gdk_pixmap_is_gl_capable")
424  (return-type "gboolean")
425  (parameters
426    '("GdkPixmap*" "pixmap")
427  )
428)
429
430(define-function pixmap_get_gl_pixmap
431  (c-name "gdk_pixmap_get_gl_pixmap")
432  (return-type "GdkGLPixmap*")
433  (parameters
434    '("GdkPixmap*" "pixmap")
435  )
436)
437
438(define-function pixmap_get_gl_drawable
439  (c-name "gdk_pixmap_get_gl_drawable")
440  (return-type "GdkGLDrawable*")
441  (parameters
442    '("GdkPixmap*" "pixmap")
443  )
444)
445
446
447
448;; From gtkglext/gdk/gdkglprivate.h
449
450
451
452;; From gtkglext/gdk/gdkglquery.h
453
454(define-function query_extension
455  (c-name "gdk_gl_query_extension")
456  (return-type "gboolean")
457)
458
459(define-function query_extension_for_display
460  (c-name "gdk_gl_query_extension_for_display")
461  (return-type "gboolean")
462  (parameters
463    '("GdkDisplay*" "display")
464  )
465)
466
467(define-function query_version
468  (c-name "gdk_gl_query_version")
469  (return-type "gboolean")
470  (parameters
471    '("int*" "major")
472    '("int*" "minor")
473  )
474)
475
476(define-function query_version_for_display
477  (c-name "gdk_gl_query_version_for_display")
478  (return-type "gboolean")
479  (parameters
480    '("GdkDisplay*" "display")
481    '("int*" "major")
482    '("int*" "minor")
483  )
484)
485
486(define-function query_gl_extension
487  (c-name "gdk_gl_query_gl_extension")
488  (return-type "gboolean")
489  (parameters
490    '("const-char*" "extension")
491  )
492)
493
494(define-function gdk_gl_get_proc_address
495  (c-name "gdk_gl_get_proc_address")
496  (return-type "GdkGLProc")
497  (parameters
498    '("const-char*" "proc_name")
499  )
500)
501
502
503
504;; From gtkglext/gdk/gdkgltokens.h
505
506
507
508;; From gtkglext/gdk/gdkgltypes.h
509
510
511
512;; From gtkglext/gdk/gdkglversion.h
513
514
515
516;; From gtkglext/gdk/gdkglwindow.h
517
518(define-function gdk_gl_window_get_type
519  (c-name "gdk_gl_window_get_type")
520  (return-type "GType")
521)
522
523(define-function gdk_gl_window_new
524  (c-name "gdk_gl_window_new")
525  (is-constructor-of "GdkGLWindow")
526  (return-type "GdkGLWindow*")
527  (parameters
528    '("GdkGLConfig*" "glconfig")
529    '("GdkWindow*" "window")
530    '("const-int*" "attrib_list" (null-ok) (default "NULL"))
531  )
532)
533
534(define-method destroy
535  (of-object "GdkGLWindow")
536  (c-name "_gdk_gl_window_destroy")
537  (return-type "none")
538)
539
540(define-method get_window
541  (of-object "GdkGLWindow")
542  (c-name "gdk_gl_window_get_window")
543  (return-type "GdkWindow*")
544)
545
546(define-function window_set_gl_capability
547  (c-name "gdk_window_set_gl_capability")
548  (return-type "GdkGLWindow*")
549  (parameters
550    '("GdkWindow*" "window")
551    '("GdkGLConfig*" "glconfig")
552    '("const-int*" "attrib_list" (null-ok) (default "NULL"))
553  )
554)
555
556(define-function window_unset_gl_capability
557  (c-name "gdk_window_unset_gl_capability")
558  (return-type "none")
559  (parameters
560    '("GdkWindow*" "window")
561  )
562)
563
564(define-function window_is_gl_capable
565  (c-name "gdk_window_is_gl_capable")
566  (return-type "gboolean")
567  (parameters
568    '("GdkWindow*" "window")
569  )
570)
571
572(define-function window_get_gl_window
573  (c-name "gdk_window_get_gl_window")
574  (return-type "GdkGLWindow*")
575  (parameters
576    '("GdkWindow*" "window")
577  )
578)
579
580(define-function window_get_gl_drawable
581  (c-name "gdk_window_get_gl_drawable")
582  (return-type "GdkGLDrawable*")
583  (parameters
584    '("GdkWindow*" "window")
585  )
586)
587
588