gdkgltokens.inc 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. { Original file is /usr/include/gtkglext-1.0/gdk/gdkgltokens.h }
  2. {$ifdef read_interface_types}
  3. TGdkGLConfigAttrib = LongInt;
  4. TGdkGLConfigCaveat = LongInt;
  5. TGdkGLVisualType = LongInt;
  6. TGdkGLTransparentType = LongInt;
  7. TGdkGLDrawableTypeMask = LongInt;
  8. TGdkGLRenderTypeMask = LongInt;
  9. TGdkGLBufferMask = LongInt;
  10. TGdkGLConfigError = LongInt;
  11. TGdkGLRenderType = LongInt;
  12. TGdkGLDrawableAttrib = LongInt;
  13. TGdkGLPbufferAttrib = LongInt;
  14. TGdkGLEventMask = LongInt;
  15. TGdkGLEventType = LongInt;
  16. TGdkGLDrawableType = LongInt;
  17. {$endif read_interface_types}
  18. {$ifdef read_interface_rest}
  19. {*
  20. * Success return value
  21. *}
  22. const
  23. GDK_GL_SUCCESS = 0; {* same as 'Success' of X11 *}
  24. {*
  25. * Attribute list terminator
  26. *}
  27. GDK_GL_ATTRIB_LIST_NONE = 0; {* same as 'None' of X11 *}
  28. {*
  29. * This source is based on the OpenGL(R) Sample Implementation by SGI.
  30. *}
  31. {*
  32. ** License Applicability. Except to the extent portions of this file are
  33. ** made subject to an alternative license as permitted in the SGI Free
  34. ** Software License B, Version 1.1 (the "License"), the contents of this
  35. ** file are subject only to the provisions of the License. You may not use
  36. ** this file except in compliance with the License. You may obtain a copy
  37. ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
  38. ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
  39. **
  40. ** http://oss.sgi.com/projects/FreeB
  41. **
  42. ** Note that, as provided in the License, the Software is distributed on an
  43. ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
  44. ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
  45. ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
  46. ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
  47. **
  48. ** Original Code. The Original Code is: OpenGL Sample Implementation,
  49. ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
  50. ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
  51. ** Copyright in any portions created by third parties is as indicated
  52. ** elsewhere herein. All Rights Reserved.
  53. **
  54. ** Additional Notice Provisions: The application programming interfaces
  55. ** established by SGI in conjunction with the Original Code are The
  56. ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
  57. ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
  58. ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
  59. ** Window System(R) (Version 1.3), released October 19, 1998. This software
  60. ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
  61. ** published by SGI, but has not been independently verified as being
  62. ** compliant with the OpenGL(R) version 1.2.1 Specification.
  63. *}
  64. {*
  65. * Visual Config Attributes.
  66. *}
  67. GDK_GL_USE_GL = 1; {* support GLX rendering *}
  68. GDK_GL_BUFFER_SIZE = 2; {* depth of the color buffer *}
  69. GDK_GL_LEVEL = 3; {* level in plane stacking *}
  70. GDK_GL_RGBA = 4; {* true if RGBA mode *}
  71. GDK_GL_DOUBLEBUFFER = 5; {* double buffering supported *}
  72. GDK_GL_STEREO = 6; {* stereo buffering supported *}
  73. GDK_GL_AUX_BUFFERS = 7; {* number of aux buffers *}
  74. GDK_GL_RED_SIZE = 8; {* number of red component bits *}
  75. GDK_GL_GREEN_SIZE = 9; {* number of green component bits *}
  76. GDK_GL_BLUE_SIZE = 10; {* number of blue component bits *}
  77. GDK_GL_ALPHA_SIZE = 11; {* number of alpha component bits *}
  78. GDK_GL_DEPTH_SIZE = 12; {* number of depth bits *}
  79. GDK_GL_STENCIL_SIZE = 13; {* number of stencil bits *}
  80. GDK_GL_ACCUM_RED_SIZE = 14; {* number of red accum bits *}
  81. GDK_GL_ACCUM_GREEN_SIZE = 15; {* number of green accum bits *}
  82. GDK_GL_ACCUM_BLUE_SIZE = 16; {* number of blue accum bits *}
  83. GDK_GL_ACCUM_ALPHA_SIZE = 17; {* number of alpha accum bits *}
  84. {*
  85. * FBConfig-specific attributes.
  86. * [ GLX 1.3 and later ]
  87. *}
  88. GDK_GL_CONFIG_CAVEAT = $20;
  89. GDK_GL_X_VISUAL_TYPE = $22;
  90. GDK_GL_TRANSPARENT_TYPE = $23;
  91. GDK_GL_TRANSPARENT_INDEX_VALUE = $24;
  92. GDK_GL_TRANSPARENT_RED_VALUE = $25;
  93. GDK_GL_TRANSPARENT_GREEN_VALUE = $26;
  94. GDK_GL_TRANSPARENT_BLUE_VALUE = $27;
  95. GDK_GL_TRANSPARENT_ALPHA_VALUE = $28;
  96. GDK_GL_DRAWABLE_TYPE = $8010;
  97. GDK_GL_RENDER_TYPE = $8011;
  98. GDK_GL_X_RENDERABLE = $8012;
  99. GDK_GL_FBCONFIG_ID = $8013;
  100. GDK_GL_MAX_PBUFFER_WIDTH = $8016;
  101. GDK_GL_MAX_PBUFFER_HEIGHT = $8017;
  102. GDK_GL_MAX_PBUFFER_PIXELS = $8018;
  103. GDK_GL_VISUAL_ID = $800B;
  104. GDK_GL_SCREEN = $800C;
  105. {*
  106. * Multisampling configuration attributes.
  107. * [ GLX 1.4 and later ]
  108. *}
  109. GDK_GL_SAMPLE_BUFFERS = 100000;
  110. GDK_GL_SAMPLES = 100001;
  111. { Those were values for TGdkGLConfigAttrib }
  112. {*
  113. * Generic "don't care" value.
  114. * [ GLX 1.3 and later ]
  115. *}
  116. GDK_GL_DONT_CARE = $FFFFFFFF;
  117. {*
  118. * "none" value.
  119. * [ GLX 1.3 and later ]
  120. *}
  121. GDK_GL_NONE = $8000;
  122. {*
  123. * GLX_CONFIG_CAVEAT attribute values.
  124. * [ GLX 1.3 and later ]
  125. *}
  126. GDK_GL_CONFIG_CAVEAT_DONT_CARE = $FFFFFFFF; {* GDK_GL_DONT_CARE *}
  127. GDK_GL_CONFIG_CAVEAT_NONE = $8000; {* GDK_GL_NONE *}
  128. GDK_GL_SLOW_CONFIG = $8001;
  129. GDK_GL_NON_CONFORMANT_CONFIG = $800D;
  130. { Those were values for TGdkGLConfigCaveat }
  131. {*
  132. * GLX_X_VISUAL_TYPE attribute values.
  133. * [ GLX 1.3 and later ]
  134. *}
  135. GDK_GL_VISUAL_TYPE_DONT_CARE = $FFFFFFFF; {* GDK_GL_DONT_CARE *}
  136. GDK_GL_TRUE_COLOR = $8002;
  137. GDK_GL_DIRECT_COLOR = $8003;
  138. GDK_GL_PSEUDO_COLOR = $8004;
  139. GDK_GL_STATIC_COLOR = $8005;
  140. GDK_GL_GRAY_SCALE = $8006;
  141. GDK_GL_STATIC_GRAY = $8007;
  142. { Those were values for TGdkGLVisualType }
  143. {*
  144. * GLX_TRANSPARENT_TYPE attribute values.
  145. * [ GLX 1.3 and later ]
  146. *}
  147. GDK_GL_TRANSPARENT_NONE = $8000; {* GDK_GL_NONE *}
  148. GDK_GL_TRANSPARENT_RGB = $8008;
  149. GDK_GL_TRANSPARENT_INDEX = $8009;
  150. { Those were values for TGdkGLTransparentType }
  151. {*
  152. * GLX_DRAWABLE_TYPE bits.
  153. * [ GLX 1.3 and later ]
  154. *}
  155. GDK_GL_WINDOW_BIT = 1 shl 0; {* $00000001 *}
  156. GDK_GL_PIXMAP_BIT = 1 shl 1; {* $00000002 *}
  157. GDK_GL_PBUFFER_BIT = 1 shl 2; {* $00000004 *}
  158. { Those were values for TGdkGLDrawableTypeMask }
  159. {*
  160. * GLX_RENDER_TYPE bits.
  161. * [ GLX 1.3 and later ]
  162. *}
  163. GDK_GL_RGBA_BIT = 1 shl 0; {* $00000001 *}
  164. GDK_GL_COLOR_INDEX_BIT = 1 shl 1; {* $00000002 *}
  165. { Those were values for TGdkGLRenderTypeMask }
  166. {*
  167. * Buffer mask bits.
  168. * [ GLX 1.3 and later ]
  169. *}
  170. GDK_GL_FRONT_LEFT_BUFFER_BIT = 1 shl 0; {* $00000001 *}
  171. GDK_GL_FRONT_RIGHT_BUFFER_BIT = 1 shl 1; {* $00000002 *}
  172. GDK_GL_BACK_LEFT_BUFFER_BIT = 1 shl 2; {* $00000004 *}
  173. GDK_GL_BACK_RIGHT_BUFFER_BIT = 1 shl 3; {* $00000008 *}
  174. GDK_GL_AUX_BUFFERS_BIT = 1 shl 4; {* $00000010 *}
  175. GDK_GL_DEPTH_BUFFER_BIT = 1 shl 5; {* $00000020 *}
  176. GDK_GL_STENCIL_BUFFER_BIT = 1 shl 6; {* $00000040 *}
  177. GDK_GL_ACCUM_BUFFER_BIT = 1 shl 7; {* $00000080 *}
  178. { Those were values for TGdkGLBufferMask }
  179. {*
  180. * Error return values from glXGetConfig. Success is indicated by
  181. * a value of 0.
  182. *}
  183. GDK_GL_BAD_SCREEN = 1; {* screen # is bad *}
  184. GDK_GL_BAD_ATTRIBUTE = 2; {* attribute to get is bad *}
  185. GDK_GL_NO_EXTENSION = 3; {* no glx extension on server *}
  186. GDK_GL_BAD_VISUAL = 4; {* visual # not known by GLX *}
  187. GDK_GL_BAD_CONTEXT = 5; {* returned only by import_context EXT? *}
  188. GDK_GL_BAD_VALUE = 6; {* returned only by glXSwapIntervalSGI? *}
  189. GDK_GL_BAD_ENUM = 7; {* unused? *}
  190. { Those were values for TGdkGLConfigError }
  191. {*
  192. * glXCreateNewContext render_type attribute values.
  193. * [ GLX 1.3 and later ]
  194. *}
  195. GDK_GL_RGBA_TYPE = $8014;
  196. GDK_GL_COLOR_INDEX_TYPE = $8015;
  197. { Those were values for TGdkGLRenderType }
  198. {*
  199. * glXQueryDrawable attributes.
  200. * [ GLX 1.3 and later ]
  201. *}
  202. GDK_GL_PRESERVED_CONTENTS = $801B;
  203. GDK_GL_LARGEST_PBUFFER = $801C;
  204. GDK_GL_WIDTH = $801D;
  205. GDK_GL_HEIGHT = $801E;
  206. GDK_GL_EVENT_MASK = $801F;
  207. { Those were values for TGdkGLDrawableAttrib }
  208. {*
  209. * glXCreatePbuffer attributes.
  210. * [ GLX 1.3 and later ]
  211. *}
  212. GDK_GL_PBUFFER_PRESERVED_CONTENTS = $801B; {* GDK_GL_PRESERVED_CONTENTS *}
  213. GDK_GL_PBUFFER_LARGEST_PBUFFER = $801C; {* GDK_GL_LARGEST_PBUFFER *}
  214. GDK_GL_PBUFFER_HEIGHT = $8040;
  215. GDK_GL_PBUFFER_WIDTH = $8041;
  216. { Those were values for TGdkGLPbufferAttrib }
  217. {*
  218. * glXSelectEvent event mask bits.
  219. * [ GLX 1.3 and later ]
  220. *}
  221. GDK_GL_PBUFFER_CLOBBER_MASK = 1 shl 27; {* $08000000 *}
  222. { Those were values for TGdkGLEventMask }
  223. {*
  224. * GLXPbufferClobberEvent event_type values.
  225. * [ GLX 1.3 and later ]
  226. *}
  227. GDK_GL_DAMAGED = $8020;
  228. GDK_GL_SAVED = $8021;
  229. { Those were values for TGdkGLEventType }
  230. {*
  231. * GLXPbufferClobberEvent draw_type values.
  232. * [ GLX 1.3 and later ]
  233. *}
  234. { Pascal translation comments:
  235. Name GDK_GL_WINDOW conflicts (even in case-sensitve C,
  236. but there macros conflicts are not errors)
  237. with function GDK_GL_WINDOW in gdkglwindow.inc.
  238. Renamed to GDK_GL_WINDOW_VALUE. }
  239. GDK_GL_WINDOW_VALUE = $8022;
  240. GDK_GL_PBUFFER = $8023;
  241. { Those were values for TGdkGLDrawableType }
  242. {$endif read_interface_rest}