gdkglconfig.inc 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. { Original file is /usr/include/gtkglext-1.0/gdk/gdkglconfig.h }
  2. {$ifdef read_interface_types}
  3. { PGdkGLConfig already defined in gdkgltypes.inc }
  4. TGdkGLConfig = record
  5. parent_instance: TGObject;
  6. layer_plane: gint;
  7. n_aux_buffers: gint;
  8. n_sample_buffers: gint;
  9. flag0 : word;
  10. end;
  11. PGdkGLConfigClass = ^TGdkGLConfigClass;
  12. TGdkGLConfigClass = record
  13. parent_class: TGObjectClass;
  14. end;
  15. {$endif read_interface_types}
  16. {$ifdef read_interface_rest}
  17. const
  18. { Constants for operating on TGdkGLConfig.flag0 }
  19. bm_TGdkGLConfig_is_rgba = 1 shl 0;
  20. bp_TGdkGLConfig_is_rgba = 0;
  21. bm_TGdkGLConfig_is_double_buffered = 1 shl 1;
  22. bp_TGdkGLConfig_is_double_buffered = 1;
  23. bm_TGdkGLConfig_as_single_mode = 1 shl 2;
  24. bp_TGdkGLConfig_as_single_mode = 2;
  25. bm_TGdkGLConfig_is_stereo = 1 shl 3;
  26. bp_TGdkGLConfig_is_stereo = 3;
  27. bm_TGdkGLConfig_has_alpha = 1 shl 4;
  28. bp_TGdkGLConfig_has_alpha = 4;
  29. bm_TGdkGLConfig_has_depth_buffer = 1 shl 5;
  30. bp_TGdkGLConfig_has_depth_buffer = 5;
  31. bm_TGdkGLConfig_has_stencil_buffer = 1 shl 6;
  32. bp_TGdkGLConfig_has_stencil_buffer = 6;
  33. bm_TGdkGLConfig_has_accum_buffer = 1 shl 7;
  34. bp_TGdkGLConfig_has_accum_buffer = 7;
  35. {*
  36. * Display mode bit masks.
  37. *}
  38. const
  39. GDK_GL_MODE_RGB = 0;
  40. GDK_GL_MODE_RGBA = 0; {* same as RGB *}
  41. GDK_GL_MODE_INDEX = 1 shl 0;
  42. GDK_GL_MODE_SINGLE = 0;
  43. GDK_GL_MODE_DOUBLE = 1 shl 1;
  44. GDK_GL_MODE_STEREO = 1 shl 2;
  45. GDK_GL_MODE_ALPHA = 1 shl 3;
  46. GDK_GL_MODE_DEPTH = 1 shl 4;
  47. GDK_GL_MODE_STENCIL = 1 shl 5;
  48. GDK_GL_MODE_ACCUM = 1 shl 6;
  49. GDK_GL_MODE_MULTISAMPLE = 1 shl 7; {* not supported yet *}
  50. type
  51. TGdkGLConfigMode = Longint;
  52. PGdkGLConfigMode = ^TGdkGLConfigMode;
  53. function GDK_TYPE_GL_CONFIG: GType;
  54. function GDK_GL_CONFIG(anObject: Pointer): PGdkGLConfig;
  55. function GDK_GL_CONFIG_CLASS(klass: Pointer): PGdkGLConfigClass;
  56. function GDK_IS_GL_CONFIG(anObject: Pointer): boolean;
  57. function GDK_IS_GL_CONFIG_CLASS(klass: Pointer): boolean;
  58. function GDK_GL_CONFIG_GET_CLASS(obj: Pointer): PGdkGLConfigClass;
  59. function gdk_gl_config_get_type: GType; cdecl; external GdkGLExtLib;
  60. {$ifndef GDK_MULTIHEAD_SAFE}
  61. function gdk_gl_config_new(
  62. attrib_list: PInteger): PGdkGLConfig;
  63. cdecl; external GdkGLExtLib;
  64. {$endif GDK_MULTIHEAD_SAFE}
  65. {$ifdef GDKGLEXT_MULTIHEAD_SUPPORT}
  66. function gdk_gl_config_new_for_screen(
  67. screen: PGdkScreen;
  68. attrib_list: PInteger): PGdkGLConfig;
  69. cdecl; external GdkGLExtLib;
  70. {$endif GDKGLEXT_MULTIHEAD_SUPPORT}
  71. {$ifndef GDK_MULTIHEAD_SAFE}
  72. function gdk_gl_config_new_by_mode(
  73. mode: TGdkGLConfigMode): PGdkGLConfig;
  74. cdecl; external GdkGLExtLib;
  75. {$endif GDK_MULTIHEAD_SAFE}
  76. {$ifdef GDKGLEXT_MULTIHEAD_SUPPORT}
  77. function gdk_gl_config_new_by_mode_for_screen(
  78. screen: PGdkScreen;
  79. mode: TGdkGLConfigMode): PGdkGLConfig;
  80. cdecl; external GdkGLExtLib;
  81. {$endif GDKGLEXT_MULTIHEAD_SUPPORT}
  82. function gdk_gl_config_get_screen(glconfig: PGdkGLConfig): PGdkScreen;
  83. cdecl; external GdkGLExtLib;
  84. function gdk_gl_config_get_attrib(glconfig: PGdkGLConfig;
  85. attribute: Integer;
  86. value: PInteger): gboolean;
  87. cdecl; external GdkGLExtLib;
  88. function gdk_gl_config_get_colormap(glconfig: PGdkGLConfig): PGdkColormap;
  89. cdecl; external GdkGLExtLib;
  90. function gdk_gl_config_get_visual(glconfig: PGdkGLConfig): PGdkVisual;
  91. cdecl; external GdkGLExtLib;
  92. function gdk_gl_config_get_depth (glconfig: PGdkGLConfig): gint;
  93. cdecl; external GdkGLExtLib;
  94. function gdk_gl_config_get_layer_plane (glconfig: PGdkGLConfig): gint;
  95. cdecl; external GdkGLExtLib;
  96. function gdk_gl_config_get_n_aux_buffers (glconfig: PGdkGLConfig): gint;
  97. cdecl; external GdkGLExtLib;
  98. function gdk_gl_config_get_n_sample_buffers (glconfig: PGdkGLConfig): gint;
  99. cdecl; external GdkGLExtLib;
  100. function gdk_gl_config_is_rgba (glconfig: PGdkGLConfig): gboolean;
  101. cdecl; external GdkGLExtLib;
  102. function gdk_gl_config_is_double_buffered (glconfig: PGdkGLConfig): gboolean;
  103. cdecl; external GdkGLExtLib;
  104. function gdk_gl_config_is_stereo (glconfig: PGdkGLConfig): gboolean;
  105. cdecl; external GdkGLExtLib;
  106. function gdk_gl_config_has_alpha (glconfig: PGdkGLConfig): gboolean;
  107. cdecl; external GdkGLExtLib;
  108. function gdk_gl_config_has_depth_buffer (glconfig: PGdkGLConfig): gboolean;
  109. cdecl; external GdkGLExtLib;
  110. function gdk_gl_config_has_stencil_buffer (glconfig: PGdkGLConfig): gboolean;
  111. cdecl; external GdkGLExtLib;
  112. function gdk_gl_config_has_accum_buffer (glconfig: PGdkGLConfig): gboolean;
  113. cdecl; external GdkGLExtLib;
  114. {$endif read_interface_rest}
  115. {$ifdef read_implementation}
  116. function GDK_TYPE_GL_CONFIG: GType;
  117. begin
  118. GDK_TYPE_GL_CONFIG := gdk_gl_config_get_type;
  119. end;
  120. function GDK_GL_CONFIG(anObject: Pointer): PGdkGLConfig;
  121. begin
  122. GDK_GL_CONFIG := PGdkGLConfig(
  123. G_TYPE_CHECK_INSTANCE_CAST(anObject, GDK_TYPE_GL_CONFIG));
  124. end;
  125. function GDK_GL_CONFIG_CLASS(klass: Pointer): PGdkGLConfigClass;
  126. begin
  127. GDK_GL_CONFIG_CLASS := PGdkGLConfigClass(
  128. G_TYPE_CHECK_CLASS_CAST(klass, GDK_TYPE_GL_CONFIG));
  129. end;
  130. function GDK_IS_GL_CONFIG(anObject: Pointer): boolean;
  131. begin
  132. GDK_IS_GL_CONFIG := G_TYPE_CHECK_INSTANCE_TYPE(anObject, GDK_TYPE_GL_CONFIG);
  133. end;
  134. function GDK_IS_GL_CONFIG_CLASS(klass: Pointer): boolean;
  135. begin
  136. GDK_IS_GL_CONFIG_CLASS := G_TYPE_CHECK_CLASS_TYPE(klass, GDK_TYPE_GL_CONFIG);
  137. end;
  138. function GDK_GL_CONFIG_GET_CLASS(obj: Pointer): PGdkGLConfigClass;
  139. begin
  140. GDK_GL_CONFIG_GET_CLASS := PGdkGLConfigClass(
  141. G_TYPE_INSTANCE_GET_CLASS(obj, GDK_TYPE_GL_CONFIG));
  142. end;
  143. {$endif read_implementation}