PageRenderTime 50ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/game_platform/lib/lwjgl-2.8.5/src/generated/org/lwjgl/opengl/GL30.java

https://bitbucket.org/dagronlund/opengl-game-platform
Java | 1562 lines | 1062 code | 169 blank | 331 comment | 10 complexity | d1244657cc26643aac23ac84de5b5f0b MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. /* MACHINE GENERATED FILE, DO NOT EDIT */
  2. package org.lwjgl.opengl;
  3. import org.lwjgl.*;
  4. import java.nio.*;
  5. public final class GL30 {
  6. public static final int GL_MAJOR_VERSION = 0x821B,
  7. GL_MINOR_VERSION = 0x821C,
  8. GL_NUM_EXTENSIONS = 0x821D,
  9. GL_CONTEXT_FLAGS = 0x821E,
  10. GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x1,
  11. GL_DEPTH_BUFFER = 0x8223,
  12. GL_STENCIL_BUFFER = 0x8224,
  13. GL_COMPRESSED_RED = 0x8225,
  14. GL_COMPRESSED_RG = 0x8226,
  15. GL_COMPARE_REF_TO_TEXTURE = 0x884E,
  16. GL_CLIP_DISTANCE0 = 0x3000,
  17. GL_CLIP_DISTANCE1 = 0x3001,
  18. GL_CLIP_DISTANCE2 = 0x3002,
  19. GL_CLIP_DISTANCE3 = 0x3003,
  20. GL_CLIP_DISTANCE4 = 0x3004,
  21. GL_CLIP_DISTANCE5 = 0x3005,
  22. GL_CLIP_DISTANCE6 = 0x3006,
  23. GL_CLIP_DISTANCE7 = 0x3007,
  24. GL_MAX_CLIP_DISTANCES = 0xD32,
  25. GL_MAX_VARYING_COMPONENTS = 0x8B4B,
  26. GL_BUFFER_ACCESS_FLAGS = 0x911F,
  27. GL_BUFFER_MAP_LENGTH = 0x9120,
  28. GL_BUFFER_MAP_OFFSET = 0x9121;
  29. /**
  30. * Accepted by the <pname> parameters of GetVertexAttribdv,
  31. * GetVertexAttribfv, GetVertexAttribiv, GetVertexAttribIiv, and
  32. * GetVertexAttribIuiv:
  33. */
  34. public static final int GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD;
  35. /**
  36. * Returned by the <type> parameter of GetActiveUniform:
  37. */
  38. public static final int GL_SAMPLER_BUFFER = 0x8DC2,
  39. GL_SAMPLER_CUBE_SHADOW = 0x8DC5,
  40. GL_UNSIGNED_INT_VEC2 = 0x8DC6,
  41. GL_UNSIGNED_INT_VEC3 = 0x8DC7,
  42. GL_UNSIGNED_INT_VEC4 = 0x8DC8,
  43. GL_INT_SAMPLER_1D = 0x8DC9,
  44. GL_INT_SAMPLER_2D = 0x8DCA,
  45. GL_INT_SAMPLER_3D = 0x8DCB,
  46. GL_INT_SAMPLER_CUBE = 0x8DCC,
  47. GL_INT_SAMPLER_2D_RECT = 0x8DCD,
  48. GL_INT_SAMPLER_1D_ARRAY = 0x8DCE,
  49. GL_INT_SAMPLER_2D_ARRAY = 0x8DCF,
  50. GL_INT_SAMPLER_BUFFER = 0x8DD0,
  51. GL_UNSIGNED_INT_SAMPLER_1D = 0x8DD1,
  52. GL_UNSIGNED_INT_SAMPLER_2D = 0x8DD2,
  53. GL_UNSIGNED_INT_SAMPLER_3D = 0x8DD3,
  54. GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4,
  55. GL_UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5,
  56. GL_UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6,
  57. GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7,
  58. GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8;
  59. /**
  60. * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
  61. * and GetDoublev:
  62. */
  63. public static final int GL_MIN_PROGRAM_TEXEL_OFFSET = 0x8904,
  64. GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905;
  65. /**
  66. * Accepted by the <mode> parameter of BeginConditionalRender:
  67. */
  68. public static final int GL_QUERY_WAIT = 0x8E13,
  69. GL_QUERY_NO_WAIT = 0x8E14,
  70. GL_QUERY_BY_REGION_WAIT = 0x8E15,
  71. GL_QUERY_BY_REGION_NO_WAIT = 0x8E16;
  72. /**
  73. * Accepted by the <access> parameter of MapBufferRange:
  74. */
  75. public static final int GL_MAP_READ_BIT = 0x1,
  76. GL_MAP_WRITE_BIT = 0x2,
  77. GL_MAP_INVALIDATE_RANGE_BIT = 0x4,
  78. GL_MAP_INVALIDATE_BUFFER_BIT = 0x8,
  79. GL_MAP_FLUSH_EXPLICIT_BIT = 0x10,
  80. GL_MAP_UNSYNCHRONIZED_BIT = 0x20;
  81. /**
  82. * Accepted by the <target> parameter of ClampColor and the <pname>
  83. * parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
  84. */
  85. public static final int GL_CLAMP_VERTEX_COLOR = 0x891A,
  86. GL_CLAMP_FRAGMENT_COLOR = 0x891B,
  87. GL_CLAMP_READ_COLOR = 0x891C;
  88. /**
  89. * Accepted by the <clamp> parameter of ClampColor.
  90. */
  91. public static final int GL_FIXED_ONLY = 0x891D;
  92. /**
  93. * Accepted by the <internalformat> parameter of TexImage1D, TexImage2D,
  94. * TexImage3D, CopyTexImage1D, CopyTexImage2D, and RenderbufferStorageEXT,
  95. * and returned in the <data> parameter of GetTexLevelParameter and
  96. * GetRenderbufferParameterivEXT:
  97. */
  98. public static final int GL_DEPTH_COMPONENT32F = 0x8DAB,
  99. GL_DEPTH32F_STENCIL8 = 0x8DAC;
  100. /**
  101. * Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D,
  102. * TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and
  103. * GetTexImage:
  104. */
  105. public static final int GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD;
  106. /**
  107. * Accepted by the <value> parameter of GetTexLevelParameter:
  108. */
  109. public static final int GL_TEXTURE_RED_TYPE = 0x8C10,
  110. GL_TEXTURE_GREEN_TYPE = 0x8C11,
  111. GL_TEXTURE_BLUE_TYPE = 0x8C12,
  112. GL_TEXTURE_ALPHA_TYPE = 0x8C13,
  113. GL_TEXTURE_LUMINANCE_TYPE = 0x8C14,
  114. GL_TEXTURE_INTENSITY_TYPE = 0x8C15,
  115. GL_TEXTURE_DEPTH_TYPE = 0x8C16;
  116. /**
  117. * Returned by the <params> parameter of GetTexLevelParameter:
  118. */
  119. public static final int GL_UNSIGNED_NORMALIZED = 0x8C17;
  120. /**
  121. * Accepted by the <internalFormat> parameter of TexImage1D,
  122. * TexImage2D, and TexImage3D:
  123. */
  124. public static final int GL_RGBA32F = 0x8814,
  125. GL_RGB32F = 0x8815,
  126. GL_ALPHA32F = 0x8816,
  127. GL_RGBA16F = 0x881A,
  128. GL_RGB16F = 0x881B,
  129. GL_ALPHA16F = 0x881C;
  130. /**
  131. * Accepted by the <internalformat> parameter of TexImage1D,
  132. * TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
  133. * RenderbufferStorage:
  134. */
  135. public static final int GL_R11F_G11F_B10F = 0x8C3A;
  136. /**
  137. * Accepted by the <type> parameter of DrawPixels, ReadPixels,
  138. * TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D,
  139. * TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
  140. * ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D,
  141. * GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter,
  142. * ColorTable, ColorSubTable, and GetColorTable:
  143. */
  144. public static final int GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B;
  145. /**
  146. * Accepted by the <internalformat> parameter of TexImage1D,
  147. * TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
  148. * RenderbufferStorage:
  149. */
  150. public static final int GL_RGB9_E5 = 0x8C3D;
  151. /**
  152. * Accepted by the <type> parameter of DrawPixels, ReadPixels,
  153. * TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D,
  154. * TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
  155. * ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D,
  156. * GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter,
  157. * ColorTable, ColorSubTable, and GetColorTable:
  158. */
  159. public static final int GL_UNSIGNED_INT_5_9_9_9_REV = 0x8C3E;
  160. /**
  161. * Accepted by the <pname> parameter of GetTexLevelParameterfv and
  162. * GetTexLevelParameteriv:
  163. */
  164. public static final int GL_TEXTURE_SHARED_SIZE = 0x8C3F;
  165. /**
  166. * Accepted by the <target> parameter of BindFramebuffer,
  167. * CheckFramebufferStatus, FramebufferTexture{1D|2D|3D},
  168. * FramebufferRenderbuffer, and
  169. * GetFramebufferAttachmentParameteriv:
  170. */
  171. public static final int GL_FRAMEBUFFER = 0x8D40,
  172. GL_READ_FRAMEBUFFER = 0x8CA8,
  173. GL_DRAW_FRAMEBUFFER = 0x8CA9;
  174. /**
  175. * Accepted by the <target> parameter of BindRenderbuffer,
  176. * RenderbufferStorage, and GetRenderbufferParameteriv, and
  177. * returned by GetFramebufferAttachmentParameteriv:
  178. */
  179. public static final int GL_RENDERBUFFER = 0x8D41;
  180. /**
  181. * Accepted by the <internalformat> parameter of
  182. * RenderbufferStorage:
  183. */
  184. public static final int GL_STENCIL_INDEX1 = 0x8D46,
  185. GL_STENCIL_INDEX4 = 0x8D47,
  186. GL_STENCIL_INDEX8 = 0x8D48,
  187. GL_STENCIL_INDEX16 = 0x8D49;
  188. /**
  189. * Accepted by the <pname> parameter of GetRenderbufferParameteriv:
  190. */
  191. public static final int GL_RENDERBUFFER_WIDTH = 0x8D42,
  192. GL_RENDERBUFFER_HEIGHT = 0x8D43,
  193. GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44,
  194. GL_RENDERBUFFER_RED_SIZE = 0x8D50,
  195. GL_RENDERBUFFER_GREEN_SIZE = 0x8D51,
  196. GL_RENDERBUFFER_BLUE_SIZE = 0x8D52,
  197. GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53,
  198. GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54,
  199. GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55;
  200. /**
  201. * Accepted by the <pname> parameter of
  202. * GetFramebufferAttachmentParameteriv:
  203. */
  204. public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0,
  205. GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1,
  206. GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2,
  207. GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3,
  208. GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210,
  209. GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211,
  210. GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212,
  211. GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213,
  212. GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214,
  213. GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215,
  214. GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216,
  215. GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217;
  216. /**
  217. * Returned in <params> by GetFramebufferAttachmentParameteriv:
  218. */
  219. public static final int GL_FRAMEBUFFER_DEFAULT = 0x8218,
  220. GL_INDEX = 0x8222;
  221. /**
  222. * Accepted by the <attachment> parameter of
  223. * FramebufferTexture{1D|2D|3D}, FramebufferRenderbuffer, and
  224. * GetFramebufferAttachmentParameteriv
  225. */
  226. public static final int GL_COLOR_ATTACHMENT0 = 0x8CE0,
  227. GL_COLOR_ATTACHMENT1 = 0x8CE1,
  228. GL_COLOR_ATTACHMENT2 = 0x8CE2,
  229. GL_COLOR_ATTACHMENT3 = 0x8CE3,
  230. GL_COLOR_ATTACHMENT4 = 0x8CE4,
  231. GL_COLOR_ATTACHMENT5 = 0x8CE5,
  232. GL_COLOR_ATTACHMENT6 = 0x8CE6,
  233. GL_COLOR_ATTACHMENT7 = 0x8CE7,
  234. GL_COLOR_ATTACHMENT8 = 0x8CE8,
  235. GL_COLOR_ATTACHMENT9 = 0x8CE9,
  236. GL_COLOR_ATTACHMENT10 = 0x8CEA,
  237. GL_COLOR_ATTACHMENT11 = 0x8CEB,
  238. GL_COLOR_ATTACHMENT12 = 0x8CEC,
  239. GL_COLOR_ATTACHMENT13 = 0x8CED,
  240. GL_COLOR_ATTACHMENT14 = 0x8CEE,
  241. GL_COLOR_ATTACHMENT15 = 0x8CEF,
  242. GL_DEPTH_ATTACHMENT = 0x8D00,
  243. GL_STENCIL_ATTACHMENT = 0x8D20,
  244. GL_DEPTH_STENCIL_ATTACHMENT = 0x821A;
  245. /**
  246. * Returned by CheckFramebufferStatus():
  247. */
  248. public static final int GL_FRAMEBUFFER_COMPLETE = 0x8CD5,
  249. GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6,
  250. GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7,
  251. GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB,
  252. GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC,
  253. GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD,
  254. GL_FRAMEBUFFER_UNDEFINED = 0x8219;
  255. /**
  256. * Accepted by the <pname> parameters of GetIntegerv, GetFloatv,
  257. * and GetDoublev:
  258. */
  259. public static final int GL_FRAMEBUFFER_BINDING = 0x8CA6,
  260. GL_RENDERBUFFER_BINDING = 0x8CA7,
  261. GL_MAX_COLOR_ATTACHMENTS = 0x8CDF,
  262. GL_MAX_RENDERBUFFER_SIZE = 0x84E8;
  263. /**
  264. * Returned by GetError():
  265. */
  266. public static final int GL_INVALID_FRAMEBUFFER_OPERATION = 0x506;
  267. /**
  268. * Accepted by the <type> parameter of DrawPixels, ReadPixels,
  269. * TexImage1D, TexImage2D, TexImage3D, GetTexImage, TexSubImage1D,
  270. * TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax,
  271. * ConvolutionFilter1D, ConvolutionFilter2D, GetConvolutionFilter,
  272. * SeparableFilter2D, GetSeparableFilter, ColorTable, ColorSubTable,
  273. * and GetColorTable:
  274. * <p/>
  275. * Accepted by the &lt;type&gt; argument of VertexPointer, NormalPointer,
  276. * ColorPointer, SecondaryColorPointer, FogCoordPointer, TexCoordPointer,
  277. * and VertexAttribPointer:
  278. */
  279. public static final int GL_HALF_FLOAT = 0x140B;
  280. /**
  281. * Accepted by the &lt;pname&gt; parameter of GetRenderbufferParameteriv.
  282. */
  283. public static final int GL_RENDERBUFFER_SAMPLES = 0x8CAB;
  284. /**
  285. * Returned by CheckFramebufferStatus.
  286. */
  287. public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56;
  288. /**
  289. * Accepted by the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv,
  290. * GetFloatv, and GetDoublev.
  291. */
  292. public static final int GL_MAX_SAMPLES = 0x8D57;
  293. /**
  294. * Accepted by the &lt;pname&gt; parameters of GetIntegerv, GetFloatv, and GetDoublev.
  295. */
  296. public static final int GL_DRAW_FRAMEBUFFER_BINDING = 0x8CA6,
  297. GL_READ_FRAMEBUFFER_BINDING = 0x8CAA;
  298. /**
  299. * Accepted by the &lt;pname&gt; parameters of GetBooleanv, GetIntegerv,
  300. * GetFloatv, and GetDoublev:
  301. */
  302. public static final int GL_RGBA_INTEGER_MODE = 0x8D9E;
  303. /**
  304. * Accepted by the &lt;internalFormat&gt; parameter of TexImage1D,
  305. * TexImage2D, and TexImage3D:
  306. */
  307. public static final int GL_RGBA32UI = 0x8D70,
  308. GL_RGB32UI = 0x8D71,
  309. GL_ALPHA32UI = 0x8D72,
  310. GL_RGBA16UI = 0x8D76,
  311. GL_RGB16UI = 0x8D77,
  312. GL_ALPHA16UI = 0x8D78,
  313. GL_RGBA8UI = 0x8D7C,
  314. GL_RGB8UI = 0x8D7D,
  315. GL_ALPHA8UI = 0x8D7E,
  316. GL_RGBA32I = 0x8D82,
  317. GL_RGB32I = 0x8D83,
  318. GL_ALPHA32I = 0x8D84,
  319. GL_RGBA16I = 0x8D88,
  320. GL_RGB16I = 0x8D89,
  321. GL_ALPHA16I = 0x8D8A,
  322. GL_RGBA8I = 0x8D8E,
  323. GL_RGB8I = 0x8D8F,
  324. GL_ALPHA8I = 0x8D90;
  325. /**
  326. * Accepted by the &lt;format&gt; parameter of TexImage1D, TexImage2D,
  327. * TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D,
  328. * DrawPixels and ReadPixels:
  329. */
  330. public static final int GL_RED_INTEGER = 0x8D94,
  331. GL_GREEN_INTEGER = 0x8D95,
  332. GL_BLUE_INTEGER = 0x8D96,
  333. GL_ALPHA_INTEGER = 0x8D97,
  334. GL_RGB_INTEGER = 0x8D98,
  335. GL_RGBA_INTEGER = 0x8D99,
  336. GL_BGR_INTEGER = 0x8D9A,
  337. GL_BGRA_INTEGER = 0x8D9B;
  338. /**
  339. * Accepted by the &lt;target&gt; parameter of TexParameteri, TexParameteriv,
  340. * TexParameterf, TexParameterfv, and BindTexture:
  341. */
  342. public static final int GL_TEXTURE_1D_ARRAY = 0x8C18,
  343. GL_TEXTURE_2D_ARRAY = 0x8C1A;
  344. /**
  345. * Accepted by the &lt;target&gt; parameter of TexImage3D, TexSubImage3D,
  346. * CopyTexSubImage3D, CompressedTexImage3D, and CompressedTexSubImage3D:
  347. */
  348. public static final int GL_PROXY_TEXTURE_2D_ARRAY = 0x8C1B;
  349. /**
  350. * Accepted by the &lt;target&gt; parameter of TexImage2D, TexSubImage2D,
  351. * CopyTexImage2D, CopyTexSubImage2D, CompressedTexImage2D, and
  352. * CompressedTexSubImage2D:
  353. */
  354. public static final int GL_PROXY_TEXTURE_1D_ARRAY = 0x8C19;
  355. /**
  356. * Accepted by the &lt;pname&gt; parameter of GetBooleanv, GetDoublev, GetIntegerv
  357. * and GetFloatv:
  358. */
  359. public static final int GL_TEXTURE_BINDING_1D_ARRAY = 0x8C1C,
  360. GL_TEXTURE_BINDING_2D_ARRAY = 0x8C1D,
  361. GL_MAX_ARRAY_TEXTURE_LAYERS = 0x88FF;
  362. /**
  363. * Accepted by the &lt;param&gt; parameter of TexParameterf, TexParameteri,
  364. * TexParameterfv, and TexParameteriv when the &lt;pname&gt; parameter is
  365. * TEXTURE_COMPARE_MODE_ARB:
  366. */
  367. public static final int GL_COMPARE_REF_DEPTH_TO_TEXTURE = 0x884E;
  368. /**
  369. * Accepted by the &lt;pname&gt; parameter of
  370. * GetFramebufferAttachmentParameteriv:
  371. */
  372. public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4;
  373. /**
  374. * Returned by the &lt;type&gt; parameter of GetActiveUniform:
  375. */
  376. public static final int GL_SAMPLER_1D_ARRAY = 0x8DC0,
  377. GL_SAMPLER_2D_ARRAY = 0x8DC1,
  378. GL_SAMPLER_1D_ARRAY_SHADOW = 0x8DC3,
  379. GL_SAMPLER_2D_ARRAY_SHADOW = 0x8DC4;
  380. /**
  381. * Accepted by the &lt;format&gt; parameter of DrawPixels, ReadPixels,
  382. * TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D,
  383. * TexSubImage3D, and GetTexImage, by the &lt;type&gt; parameter of
  384. * CopyPixels, by the &lt;internalformat&gt; parameter of TexImage1D,
  385. * TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
  386. * RenderbufferStorage, and returned in the &lt;data&gt; parameter of
  387. * GetTexLevelParameter and GetRenderbufferParameteriv.
  388. */
  389. public static final int GL_DEPTH_STENCIL = 0x84F9;
  390. /**
  391. * Accepted by the &lt;type&gt; parameter of DrawPixels, ReadPixels,
  392. * TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D,
  393. * TexSubImage3D, and GetTexImage.
  394. */
  395. public static final int GL_UNSIGNED_INT_24_8 = 0x84FA;
  396. /**
  397. * Accepted by the &lt;internalformat&gt; parameter of TexImage1D,
  398. * TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and
  399. * RenderbufferStorage, and returned in the &lt;data&gt; parameter of
  400. * GetTexLevelParameter and GetRenderbufferParameteriv.
  401. */
  402. public static final int GL_DEPTH24_STENCIL8 = 0x88F0;
  403. /**
  404. * Accepted by the &lt;value&gt; parameter of GetTexLevelParameter.
  405. */
  406. public static final int GL_TEXTURE_STENCIL_SIZE = 0x88F1;
  407. /**
  408. * Accepted by the &lt;internalformat&gt; parameter of TexImage2D,
  409. * CopyTexImage2D, and CompressedTexImage2D and the &lt;format&gt; parameter
  410. * of CompressedTexSubImage2D:
  411. */
  412. public static final int GL_COMPRESSED_RED_RGTC1 = 0x8DBB,
  413. GL_COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC,
  414. GL_COMPRESSED_RED_GREEN_RGTC2 = 0x8DBD,
  415. GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2 = 0x8DBE;
  416. /**
  417. * Accepted by the &lt;internalFormat&gt; parameter of TexImage1D, TexImage2D,
  418. * TexImage3D, CopyTexImage1D, and CopyTexImage2D:
  419. */
  420. public static final int GL_R8 = 0x8229,
  421. GL_R16 = 0x822A,
  422. GL_RG8 = 0x822B,
  423. GL_RG16 = 0x822C,
  424. GL_R16F = 0x822D,
  425. GL_R32F = 0x822E,
  426. GL_RG16F = 0x822F,
  427. GL_RG32F = 0x8230,
  428. GL_R8I = 0x8231,
  429. GL_R8UI = 0x8232,
  430. GL_R16I = 0x8233,
  431. GL_R16UI = 0x8234,
  432. GL_R32I = 0x8235,
  433. GL_R32UI = 0x8236,
  434. GL_RG8I = 0x8237,
  435. GL_RG8UI = 0x8238,
  436. GL_RG16I = 0x8239,
  437. GL_RG16UI = 0x823A,
  438. GL_RG32I = 0x823B,
  439. GL_RG32UI = 0x823C;
  440. /**
  441. * Accepted by the &lt;format&gt; parameter of TexImage3D, TexImage2D,
  442. * TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D,
  443. * DrawPixels and ReadPixels:
  444. */
  445. public static final int GL_RG = 0x8227,
  446. GL_RG_INTEGER = 0x8228;
  447. /**
  448. * Accepted by the &lt;target&gt; parameters of BindBuffer, BufferData,
  449. * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
  450. * GetBufferPointerv, BindBufferRange, BindBufferOffset and
  451. * BindBufferBase:
  452. */
  453. public static final int GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E;
  454. /**
  455. * Accepted by the &lt;param&gt; parameter of GetIntegerIndexedv and
  456. * GetBooleanIndexedv:
  457. */
  458. public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84,
  459. GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85;
  460. /**
  461. * Accepted by the &lt;param&gt; parameter of GetIntegerIndexedv and
  462. * GetBooleanIndexedv, and by the &lt;pname&gt; parameter of GetBooleanv,
  463. * GetDoublev, GetIntegerv, and GetFloatv:
  464. */
  465. public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F;
  466. /**
  467. * Accepted by the &lt;bufferMode&gt; parameter of TransformFeedbackVaryings:
  468. */
  469. public static final int GL_INTERLEAVED_ATTRIBS = 0x8C8C,
  470. GL_SEPARATE_ATTRIBS = 0x8C8D;
  471. /**
  472. * Accepted by the &lt;target&gt; parameter of BeginQuery, EndQuery, and
  473. * GetQueryiv:
  474. */
  475. public static final int GL_PRIMITIVES_GENERATED = 0x8C87,
  476. GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88;
  477. /**
  478. * Accepted by the &lt;cap&gt; parameter of Enable, Disable, and IsEnabled, and by
  479. * the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv, GetFloatv, and
  480. * GetDoublev:
  481. */
  482. public static final int GL_RASTERIZER_DISCARD = 0x8C89;
  483. /**
  484. * Accepted by the &lt;pname&gt; parameter of GetBooleanv, GetDoublev, GetIntegerv,
  485. * and GetFloatv:
  486. */
  487. public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A,
  488. GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B,
  489. GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80;
  490. /**
  491. * Accepted by the &lt;pname&gt; parameter of GetProgramiv:
  492. */
  493. public static final int GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83,
  494. GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F,
  495. GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76;
  496. /**
  497. * Accepted by the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv,
  498. * GetFloatv, and GetDoublev:
  499. */
  500. public static final int GL_VERTEX_ARRAY_BINDING = 0x85B5;
  501. /**
  502. * Accepted by the &lt;cap&gt; parameter of Enable, Disable, and IsEnabled,
  503. * and by the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv, GetFloatv,
  504. * and GetDoublev:
  505. */
  506. public static final int GL_FRAMEBUFFER_SRGB = 0x8DB9;
  507. /**
  508. * Accepted by the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv,
  509. * GetFloatv, and GetDoublev:
  510. */
  511. public static final int GL_FRAMEBUFFER_SRGB_CAPABLE = 0x8DBA;
  512. private GL30() {}
  513. public static String glGetStringi(int name, int index) {
  514. ContextCapabilities caps = GLContext.getCapabilities();
  515. long function_pointer = caps.glGetStringi;
  516. BufferChecks.checkFunctionAddress(function_pointer);
  517. String __result = nglGetStringi(name, index, function_pointer);
  518. return __result;
  519. }
  520. static native String nglGetStringi(int name, int index, long function_pointer);
  521. public static void glClearBuffer(int buffer, int drawbuffer, FloatBuffer value) {
  522. ContextCapabilities caps = GLContext.getCapabilities();
  523. long function_pointer = caps.glClearBufferfv;
  524. BufferChecks.checkFunctionAddress(function_pointer);
  525. BufferChecks.checkBuffer(value, 4);
  526. nglClearBufferfv(buffer, drawbuffer, MemoryUtil.getAddress(value), function_pointer);
  527. }
  528. static native void nglClearBufferfv(int buffer, int drawbuffer, long value, long function_pointer);
  529. public static void glClearBuffer(int buffer, int drawbuffer, IntBuffer value) {
  530. ContextCapabilities caps = GLContext.getCapabilities();
  531. long function_pointer = caps.glClearBufferiv;
  532. BufferChecks.checkFunctionAddress(function_pointer);
  533. BufferChecks.checkBuffer(value, 4);
  534. nglClearBufferiv(buffer, drawbuffer, MemoryUtil.getAddress(value), function_pointer);
  535. }
  536. static native void nglClearBufferiv(int buffer, int drawbuffer, long value, long function_pointer);
  537. public static void glClearBufferu(int buffer, int drawbuffer, IntBuffer value) {
  538. ContextCapabilities caps = GLContext.getCapabilities();
  539. long function_pointer = caps.glClearBufferuiv;
  540. BufferChecks.checkFunctionAddress(function_pointer);
  541. BufferChecks.checkBuffer(value, 4);
  542. nglClearBufferuiv(buffer, drawbuffer, MemoryUtil.getAddress(value), function_pointer);
  543. }
  544. static native void nglClearBufferuiv(int buffer, int drawbuffer, long value, long function_pointer);
  545. public static void glClearBufferfi(int buffer, int drawbuffer, float depth, int stencil) {
  546. ContextCapabilities caps = GLContext.getCapabilities();
  547. long function_pointer = caps.glClearBufferfi;
  548. BufferChecks.checkFunctionAddress(function_pointer);
  549. nglClearBufferfi(buffer, drawbuffer, depth, stencil, function_pointer);
  550. }
  551. static native void nglClearBufferfi(int buffer, int drawbuffer, float depth, int stencil, long function_pointer);
  552. public static void glVertexAttribI1i(int index, int x) {
  553. ContextCapabilities caps = GLContext.getCapabilities();
  554. long function_pointer = caps.glVertexAttribI1i;
  555. BufferChecks.checkFunctionAddress(function_pointer);
  556. nglVertexAttribI1i(index, x, function_pointer);
  557. }
  558. static native void nglVertexAttribI1i(int index, int x, long function_pointer);
  559. public static void glVertexAttribI2i(int index, int x, int y) {
  560. ContextCapabilities caps = GLContext.getCapabilities();
  561. long function_pointer = caps.glVertexAttribI2i;
  562. BufferChecks.checkFunctionAddress(function_pointer);
  563. nglVertexAttribI2i(index, x, y, function_pointer);
  564. }
  565. static native void nglVertexAttribI2i(int index, int x, int y, long function_pointer);
  566. public static void glVertexAttribI3i(int index, int x, int y, int z) {
  567. ContextCapabilities caps = GLContext.getCapabilities();
  568. long function_pointer = caps.glVertexAttribI3i;
  569. BufferChecks.checkFunctionAddress(function_pointer);
  570. nglVertexAttribI3i(index, x, y, z, function_pointer);
  571. }
  572. static native void nglVertexAttribI3i(int index, int x, int y, int z, long function_pointer);
  573. public static void glVertexAttribI4i(int index, int x, int y, int z, int w) {
  574. ContextCapabilities caps = GLContext.getCapabilities();
  575. long function_pointer = caps.glVertexAttribI4i;
  576. BufferChecks.checkFunctionAddress(function_pointer);
  577. nglVertexAttribI4i(index, x, y, z, w, function_pointer);
  578. }
  579. static native void nglVertexAttribI4i(int index, int x, int y, int z, int w, long function_pointer);
  580. public static void glVertexAttribI1ui(int index, int x) {
  581. ContextCapabilities caps = GLContext.getCapabilities();
  582. long function_pointer = caps.glVertexAttribI1ui;
  583. BufferChecks.checkFunctionAddress(function_pointer);
  584. nglVertexAttribI1ui(index, x, function_pointer);
  585. }
  586. static native void nglVertexAttribI1ui(int index, int x, long function_pointer);
  587. public static void glVertexAttribI2ui(int index, int x, int y) {
  588. ContextCapabilities caps = GLContext.getCapabilities();
  589. long function_pointer = caps.glVertexAttribI2ui;
  590. BufferChecks.checkFunctionAddress(function_pointer);
  591. nglVertexAttribI2ui(index, x, y, function_pointer);
  592. }
  593. static native void nglVertexAttribI2ui(int index, int x, int y, long function_pointer);
  594. public static void glVertexAttribI3ui(int index, int x, int y, int z) {
  595. ContextCapabilities caps = GLContext.getCapabilities();
  596. long function_pointer = caps.glVertexAttribI3ui;
  597. BufferChecks.checkFunctionAddress(function_pointer);
  598. nglVertexAttribI3ui(index, x, y, z, function_pointer);
  599. }
  600. static native void nglVertexAttribI3ui(int index, int x, int y, int z, long function_pointer);
  601. public static void glVertexAttribI4ui(int index, int x, int y, int z, int w) {
  602. ContextCapabilities caps = GLContext.getCapabilities();
  603. long function_pointer = caps.glVertexAttribI4ui;
  604. BufferChecks.checkFunctionAddress(function_pointer);
  605. nglVertexAttribI4ui(index, x, y, z, w, function_pointer);
  606. }
  607. static native void nglVertexAttribI4ui(int index, int x, int y, int z, int w, long function_pointer);
  608. public static void glVertexAttribI1(int index, IntBuffer v) {
  609. ContextCapabilities caps = GLContext.getCapabilities();
  610. long function_pointer = caps.glVertexAttribI1iv;
  611. BufferChecks.checkFunctionAddress(function_pointer);
  612. BufferChecks.checkBuffer(v, 1);
  613. nglVertexAttribI1iv(index, MemoryUtil.getAddress(v), function_pointer);
  614. }
  615. static native void nglVertexAttribI1iv(int index, long v, long function_pointer);
  616. public static void glVertexAttribI2(int index, IntBuffer v) {
  617. ContextCapabilities caps = GLContext.getCapabilities();
  618. long function_pointer = caps.glVertexAttribI2iv;
  619. BufferChecks.checkFunctionAddress(function_pointer);
  620. BufferChecks.checkBuffer(v, 2);
  621. nglVertexAttribI2iv(index, MemoryUtil.getAddress(v), function_pointer);
  622. }
  623. static native void nglVertexAttribI2iv(int index, long v, long function_pointer);
  624. public static void glVertexAttribI3(int index, IntBuffer v) {
  625. ContextCapabilities caps = GLContext.getCapabilities();
  626. long function_pointer = caps.glVertexAttribI3iv;
  627. BufferChecks.checkFunctionAddress(function_pointer);
  628. BufferChecks.checkBuffer(v, 3);
  629. nglVertexAttribI3iv(index, MemoryUtil.getAddress(v), function_pointer);
  630. }
  631. static native void nglVertexAttribI3iv(int index, long v, long function_pointer);
  632. public static void glVertexAttribI4(int index, IntBuffer v) {
  633. ContextCapabilities caps = GLContext.getCapabilities();
  634. long function_pointer = caps.glVertexAttribI4iv;
  635. BufferChecks.checkFunctionAddress(function_pointer);
  636. BufferChecks.checkBuffer(v, 4);
  637. nglVertexAttribI4iv(index, MemoryUtil.getAddress(v), function_pointer);
  638. }
  639. static native void nglVertexAttribI4iv(int index, long v, long function_pointer);
  640. public static void glVertexAttribI1u(int index, IntBuffer v) {
  641. ContextCapabilities caps = GLContext.getCapabilities();
  642. long function_pointer = caps.glVertexAttribI1uiv;
  643. BufferChecks.checkFunctionAddress(function_pointer);
  644. BufferChecks.checkBuffer(v, 1);
  645. nglVertexAttribI1uiv(index, MemoryUtil.getAddress(v), function_pointer);
  646. }
  647. static native void nglVertexAttribI1uiv(int index, long v, long function_pointer);
  648. public static void glVertexAttribI2u(int index, IntBuffer v) {
  649. ContextCapabilities caps = GLContext.getCapabilities();
  650. long function_pointer = caps.glVertexAttribI2uiv;
  651. BufferChecks.checkFunctionAddress(function_pointer);
  652. BufferChecks.checkBuffer(v, 2);
  653. nglVertexAttribI2uiv(index, MemoryUtil.getAddress(v), function_pointer);
  654. }
  655. static native void nglVertexAttribI2uiv(int index, long v, long function_pointer);
  656. public static void glVertexAttribI3u(int index, IntBuffer v) {
  657. ContextCapabilities caps = GLContext.getCapabilities();
  658. long function_pointer = caps.glVertexAttribI3uiv;
  659. BufferChecks.checkFunctionAddress(function_pointer);
  660. BufferChecks.checkBuffer(v, 3);
  661. nglVertexAttribI3uiv(index, MemoryUtil.getAddress(v), function_pointer);
  662. }
  663. static native void nglVertexAttribI3uiv(int index, long v, long function_pointer);
  664. public static void glVertexAttribI4u(int index, IntBuffer v) {
  665. ContextCapabilities caps = GLContext.getCapabilities();
  666. long function_pointer = caps.glVertexAttribI4uiv;
  667. BufferChecks.checkFunctionAddress(function_pointer);
  668. BufferChecks.checkBuffer(v, 4);
  669. nglVertexAttribI4uiv(index, MemoryUtil.getAddress(v), function_pointer);
  670. }
  671. static native void nglVertexAttribI4uiv(int index, long v, long function_pointer);
  672. public static void glVertexAttribI4(int index, ByteBuffer v) {
  673. ContextCapabilities caps = GLContext.getCapabilities();
  674. long function_pointer = caps.glVertexAttribI4bv;
  675. BufferChecks.checkFunctionAddress(function_pointer);
  676. BufferChecks.checkBuffer(v, 4);
  677. nglVertexAttribI4bv(index, MemoryUtil.getAddress(v), function_pointer);
  678. }
  679. static native void nglVertexAttribI4bv(int index, long v, long function_pointer);
  680. public static void glVertexAttribI4(int index, ShortBuffer v) {
  681. ContextCapabilities caps = GLContext.getCapabilities();
  682. long function_pointer = caps.glVertexAttribI4sv;
  683. BufferChecks.checkFunctionAddress(function_pointer);
  684. BufferChecks.checkBuffer(v, 4);
  685. nglVertexAttribI4sv(index, MemoryUtil.getAddress(v), function_pointer);
  686. }
  687. static native void nglVertexAttribI4sv(int index, long v, long function_pointer);
  688. public static void glVertexAttribI4u(int index, ByteBuffer v) {
  689. ContextCapabilities caps = GLContext.getCapabilities();
  690. long function_pointer = caps.glVertexAttribI4ubv;
  691. BufferChecks.checkFunctionAddress(function_pointer);
  692. BufferChecks.checkBuffer(v, 4);
  693. nglVertexAttribI4ubv(index, MemoryUtil.getAddress(v), function_pointer);
  694. }
  695. static native void nglVertexAttribI4ubv(int index, long v, long function_pointer);
  696. public static void glVertexAttribI4u(int index, ShortBuffer v) {
  697. ContextCapabilities caps = GLContext.getCapabilities();
  698. long function_pointer = caps.glVertexAttribI4usv;
  699. BufferChecks.checkFunctionAddress(function_pointer);
  700. BufferChecks.checkBuffer(v, 4);
  701. nglVertexAttribI4usv(index, MemoryUtil.getAddress(v), function_pointer);
  702. }
  703. static native void nglVertexAttribI4usv(int index, long v, long function_pointer);
  704. public static void glVertexAttribIPointer(int index, int size, int type, int stride, ByteBuffer buffer) {
  705. ContextCapabilities caps = GLContext.getCapabilities();
  706. long function_pointer = caps.glVertexAttribIPointer;
  707. BufferChecks.checkFunctionAddress(function_pointer);
  708. GLChecks.ensureArrayVBOdisabled(caps);
  709. BufferChecks.checkDirect(buffer);
  710. if ( LWJGLUtil.CHECKS ) StateTracker.getReferences(caps).glVertexAttribPointer_buffer[index] = buffer;
  711. nglVertexAttribIPointer(index, size, type, stride, MemoryUtil.getAddress(buffer), function_pointer);
  712. }
  713. public static void glVertexAttribIPointer(int index, int size, int type, int stride, IntBuffer buffer) {
  714. ContextCapabilities caps = GLContext.getCapabilities();
  715. long function_pointer = caps.glVertexAttribIPointer;
  716. BufferChecks.checkFunctionAddress(function_pointer);
  717. GLChecks.ensureArrayVBOdisabled(caps);
  718. BufferChecks.checkDirect(buffer);
  719. if ( LWJGLUtil.CHECKS ) StateTracker.getReferences(caps).glVertexAttribPointer_buffer[index] = buffer;
  720. nglVertexAttribIPointer(index, size, type, stride, MemoryUtil.getAddress(buffer), function_pointer);
  721. }
  722. public static void glVertexAttribIPointer(int index, int size, int type, int stride, ShortBuffer buffer) {
  723. ContextCapabilities caps = GLContext.getCapabilities();
  724. long function_pointer = caps.glVertexAttribIPointer;
  725. BufferChecks.checkFunctionAddress(function_pointer);
  726. GLChecks.ensureArrayVBOdisabled(caps);
  727. BufferChecks.checkDirect(buffer);
  728. if ( LWJGLUtil.CHECKS ) StateTracker.getReferences(caps).glVertexAttribPointer_buffer[index] = buffer;
  729. nglVertexAttribIPointer(index, size, type, stride, MemoryUtil.getAddress(buffer), function_pointer);
  730. }
  731. static native void nglVertexAttribIPointer(int index, int size, int type, int stride, long buffer, long function_pointer);
  732. public static void glVertexAttribIPointer(int index, int size, int type, int stride, long buffer_buffer_offset) {
  733. ContextCapabilities caps = GLContext.getCapabilities();
  734. long function_pointer = caps.glVertexAttribIPointer;
  735. BufferChecks.checkFunctionAddress(function_pointer);
  736. GLChecks.ensureArrayVBOenabled(caps);
  737. nglVertexAttribIPointerBO(index, size, type, stride, buffer_buffer_offset, function_pointer);
  738. }
  739. static native void nglVertexAttribIPointerBO(int index, int size, int type, int stride, long buffer_buffer_offset, long function_pointer);
  740. public static void glGetVertexAttribI(int index, int pname, IntBuffer params) {
  741. ContextCapabilities caps = GLContext.getCapabilities();
  742. long function_pointer = caps.glGetVertexAttribIiv;
  743. BufferChecks.checkFunctionAddress(function_pointer);
  744. BufferChecks.checkBuffer(params, 4);
  745. nglGetVertexAttribIiv(index, pname, MemoryUtil.getAddress(params), function_pointer);
  746. }
  747. static native void nglGetVertexAttribIiv(int index, int pname, long params, long function_pointer);
  748. public static void glGetVertexAttribIu(int index, int pname, IntBuffer params) {
  749. ContextCapabilities caps = GLContext.getCapabilities();
  750. long function_pointer = caps.glGetVertexAttribIuiv;
  751. BufferChecks.checkFunctionAddress(function_pointer);
  752. BufferChecks.checkBuffer(params, 4);
  753. nglGetVertexAttribIuiv(index, pname, MemoryUtil.getAddress(params), function_pointer);
  754. }
  755. static native void nglGetVertexAttribIuiv(int index, int pname, long params, long function_pointer);
  756. public static void glUniform1ui(int location, int v0) {
  757. ContextCapabilities caps = GLContext.getCapabilities();
  758. long function_pointer = caps.glUniform1ui;
  759. BufferChecks.checkFunctionAddress(function_pointer);
  760. nglUniform1ui(location, v0, function_pointer);
  761. }
  762. static native void nglUniform1ui(int location, int v0, long function_pointer);
  763. public static void glUniform2ui(int location, int v0, int v1) {
  764. ContextCapabilities caps = GLContext.getCapabilities();
  765. long function_pointer = caps.glUniform2ui;
  766. BufferChecks.checkFunctionAddress(function_pointer);
  767. nglUniform2ui(location, v0, v1, function_pointer);
  768. }
  769. static native void nglUniform2ui(int location, int v0, int v1, long function_pointer);
  770. public static void glUniform3ui(int location, int v0, int v1, int v2) {
  771. ContextCapabilities caps = GLContext.getCapabilities();
  772. long function_pointer = caps.glUniform3ui;
  773. BufferChecks.checkFunctionAddress(function_pointer);
  774. nglUniform3ui(location, v0, v1, v2, function_pointer);
  775. }
  776. static native void nglUniform3ui(int location, int v0, int v1, int v2, long function_pointer);
  777. public static void glUniform4ui(int location, int v0, int v1, int v2, int v3) {
  778. ContextCapabilities caps = GLContext.getCapabilities();
  779. long function_pointer = caps.glUniform4ui;
  780. BufferChecks.checkFunctionAddress(function_pointer);
  781. nglUniform4ui(location, v0, v1, v2, v3, function_pointer);
  782. }
  783. static native void nglUniform4ui(int location, int v0, int v1, int v2, int v3, long function_pointer);
  784. public static void glUniform1u(int location, IntBuffer value) {
  785. ContextCapabilities caps = GLContext.getCapabilities();
  786. long function_pointer = caps.glUniform1uiv;
  787. BufferChecks.checkFunctionAddress(function_pointer);
  788. BufferChecks.checkDirect(value);
  789. nglUniform1uiv(location, value.remaining(), MemoryUtil.getAddress(value), function_pointer);
  790. }
  791. static native void nglUniform1uiv(int location, int value_count, long value, long function_pointer);
  792. public static void glUniform2u(int location, IntBuffer value) {
  793. ContextCapabilities caps = GLContext.getCapabilities();
  794. long function_pointer = caps.glUniform2uiv;
  795. BufferChecks.checkFunctionAddress(function_pointer);
  796. BufferChecks.checkDirect(value);
  797. nglUniform2uiv(location, value.remaining() >> 1, MemoryUtil.getAddress(value), function_pointer);
  798. }
  799. static native void nglUniform2uiv(int location, int value_count, long value, long function_pointer);
  800. public static void glUniform3u(int location, IntBuffer value) {
  801. ContextCapabilities caps = GLContext.getCapabilities();
  802. long function_pointer = caps.glUniform3uiv;
  803. BufferChecks.checkFunctionAddress(function_pointer);
  804. BufferChecks.checkDirect(value);
  805. nglUniform3uiv(location, value.remaining() / 3, MemoryUtil.getAddress(value), function_pointer);
  806. }
  807. static native void nglUniform3uiv(int location, int value_count, long value, long function_pointer);
  808. public static void glUniform4u(int location, IntBuffer value) {
  809. ContextCapabilities caps = GLContext.getCapabilities();
  810. long function_pointer = caps.glUniform4uiv;
  811. BufferChecks.checkFunctionAddress(function_pointer);
  812. BufferChecks.checkDirect(value);
  813. nglUniform4uiv(location, value.remaining() >> 2, MemoryUtil.getAddress(value), function_pointer);
  814. }
  815. static native void nglUniform4uiv(int location, int value_count, long value, long function_pointer);
  816. public static void glGetUniformu(int program, int location, IntBuffer params) {
  817. ContextCapabilities caps = GLContext.getCapabilities();
  818. long function_pointer = caps.glGetUniformuiv;
  819. BufferChecks.checkFunctionAddress(function_pointer);
  820. BufferChecks.checkDirect(params);
  821. nglGetUniformuiv(program, location, MemoryUtil.getAddress(params), function_pointer);
  822. }
  823. static native void nglGetUniformuiv(int program, int location, long params, long function_pointer);
  824. public static void glBindFragDataLocation(int program, int colorNumber, ByteBuffer name) {
  825. ContextCapabilities caps = GLContext.getCapabilities();
  826. long function_pointer = caps.glBindFragDataLocation;
  827. BufferChecks.checkFunctionAddress(function_pointer);
  828. BufferChecks.checkDirect(name);
  829. BufferChecks.checkNullTerminated(name);
  830. nglBindFragDataLocation(program, colorNumber, MemoryUtil.getAddress(name), function_pointer);
  831. }
  832. static native void nglBindFragDataLocation(int program, int colorNumber, long name, long function_pointer);
  833. /** Overloads glBindFragDataLocation. */
  834. public static void glBindFragDataLocation(int program, int colorNumber, CharSequence name) {
  835. ContextCapabilities caps = GLContext.getCapabilities();
  836. long function_pointer = caps.glBindFragDataLocation;
  837. BufferChecks.checkFunctionAddress(function_pointer);
  838. nglBindFragDataLocation(program, colorNumber, APIUtil.getBufferNT(caps, name), function_pointer);
  839. }
  840. public static int glGetFragDataLocation(int program, ByteBuffer name) {
  841. ContextCapabilities caps = GLContext.getCapabilities();
  842. long function_pointer = caps.glGetFragDataLocation;
  843. BufferChecks.checkFunctionAddress(function_pointer);
  844. BufferChecks.checkDirect(name);
  845. BufferChecks.checkNullTerminated(name);
  846. int __result = nglGetFragDataLocation(program, MemoryUtil.getAddress(name), function_pointer);
  847. return __result;
  848. }
  849. static native int nglGetFragDataLocation(int program, long name, long function_pointer);
  850. /** Overloads glGetFragDataLocation. */
  851. public static int glGetFragDataLocation(int program, CharSequence name) {
  852. ContextCapabilities caps = GLContext.getCapabilities();
  853. long function_pointer = caps.glGetFragDataLocation;
  854. BufferChecks.checkFunctionAddress(function_pointer);
  855. int __result = nglGetFragDataLocation(program, APIUtil.getBufferNT(caps, name), function_pointer);
  856. return __result;
  857. }
  858. public static void glBeginConditionalRender(int id, int mode) {
  859. ContextCapabilities caps = GLContext.getCapabilities();
  860. long function_pointer = caps.glBeginConditionalRender;
  861. BufferChecks.checkFunctionAddress(function_pointer);
  862. nglBeginConditionalRender(id, mode, function_pointer);
  863. }
  864. static native void nglBeginConditionalRender(int id, int mode, long function_pointer);
  865. public static void glEndConditionalRender() {
  866. ContextCapabilities caps = GLContext.getCapabilities();
  867. long function_pointer = caps.glEndConditionalRender;
  868. BufferChecks.checkFunctionAddress(function_pointer);
  869. nglEndConditionalRender(function_pointer);
  870. }
  871. static native void nglEndConditionalRender(long function_pointer);
  872. /**
  873. * glMapBufferRange maps a GL buffer object range to a ByteBuffer. The old_buffer argument can be null,
  874. * in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
  875. * it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
  876. * otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferRange like this:
  877. * <p/>
  878. * ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
  879. * <p/>
  880. * Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
  881. * <p>
  882. * @param old_buffer A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
  883. * <p>
  884. * @return A ByteBuffer representing the mapped buffer memory.
  885. */
  886. public static ByteBuffer glMapBufferRange(int target, long offset, long length, int access, ByteBuffer old_buffer) {
  887. ContextCapabilities caps = GLContext.getCapabilities();
  888. long function_pointer = caps.glMapBufferRange;
  889. BufferChecks.checkFunctionAddress(function_pointer);
  890. if (old_buffer != null)
  891. BufferChecks.checkDirect(old_buffer);
  892. ByteBuffer __result = nglMapBufferRange(target, offset, length, access, old_buffer, function_pointer);
  893. return LWJGLUtil.CHECKS && __result == null ? null : __result.order(ByteOrder.nativeOrder());
  894. }
  895. static native ByteBuffer nglMapBufferRange(int target, long offset, long length, int access, ByteBuffer old_buffer, long function_pointer);
  896. public static void glFlushMappedBufferRange(int target, long offset, long length) {
  897. ContextCapabilities caps = GLContext.getCapabilities();
  898. long function_pointer = caps.glFlushMappedBufferRange;
  899. BufferChecks.checkFunctionAddress(function_pointer);
  900. nglFlushMappedBufferRange(target, offset, length, function_pointer);
  901. }
  902. static native void nglFlushMappedBufferRange(int target, long offset, long length, long function_pointer);
  903. public static void glClampColor(int target, int clamp) {
  904. ContextCapabilities caps = GLContext.getCapabilities();
  905. long function_pointer = caps.glClampColor;
  906. BufferChecks.checkFunctionAddress(function_pointer);
  907. nglClampColor(target, clamp, function_pointer);
  908. }
  909. static native void nglClampColor(int target, int clamp, long function_pointer);
  910. public static boolean glIsRenderbuffer(int renderbuffer) {
  911. ContextCapabilities caps = GLContext.getCapabilities();
  912. long function_pointer = caps.glIsRenderbuffer;
  913. BufferChecks.checkFunctionAddress(function_pointer);
  914. boolean __result = nglIsRenderbuffer(renderbuffer, function_pointer);
  915. return __result;
  916. }
  917. static native boolean nglIsRenderbuffer(int renderbuffer, long function_pointer);
  918. public static void glBindRenderbuffer(int target, int renderbuffer) {
  919. ContextCapabilities caps = GLContext.getCapabilities();
  920. long function_pointer = caps.glBindRenderbuffer;
  921. BufferChecks.checkFunctionAddress(function_pointer);
  922. nglBindRenderbuffer(target, renderbuffer, function_pointer);
  923. }
  924. static native void nglBindRenderbuffer(int target, int renderbuffer, long function_pointer);
  925. public static void glDeleteRenderbuffers(IntBuffer renderbuffers) {
  926. ContextCapabilities caps = GLContext.getCapabilities();
  927. long function_pointer = caps.glDeleteRenderbuffers;
  928. BufferChecks.checkFunctionAddress(function_pointer);
  929. BufferChecks.checkDirect(renderbuffers);
  930. nglDeleteRenderbuffers(renderbuffers.remaining(), MemoryUtil.getAddress(renderbuffers), function_pointer);
  931. }
  932. static native void nglDeleteRenderbuffers(int renderbuffers_n, long renderbuffers, long function_pointer);
  933. /** Overloads glDeleteRenderbuffers. */
  934. public static void glDeleteRenderbuffers(int renderbuffer) {
  935. ContextCapabilities caps = GLContext.getCapabilities();
  936. long function_pointer = caps.glDeleteRenderbuffers;
  937. BufferChecks.checkFunctionAddress(function_pointer);
  938. nglDeleteRenderbuffers(1, APIUtil.getInt(caps, renderbuffer), function_pointer);
  939. }
  940. public static void glGenRenderbuffers(IntBuffer renderbuffers) {
  941. ContextCapabilities caps = GLContext.getCapabilities();
  942. long function_pointer = caps.glGenRenderbuffers;
  943. BufferChecks.checkFunctionAddress(function_pointer);
  944. BufferChecks.checkDirect(renderbuffers);
  945. nglGenRenderbuffers(renderbuffers.remaining(), MemoryUtil.getAddress(renderbuffers), function_pointer);
  946. }
  947. static native void nglGenRenderbuffers(int renderbuffers_n, long renderbuffers, long function_pointer);
  948. /** Overloads glGenRenderbuffers. */
  949. public static int glGenRenderbuffers() {
  950. ContextCapabilities caps = GLContext.getCapabilities();
  951. long function_pointer = caps.glGenRenderbuffers;
  952. BufferChecks.checkFunctionAddress(function_pointer);
  953. IntBuffer renderbuffers = APIUtil.getBufferInt(caps);
  954. nglGenRenderbuffers(1, MemoryUtil.getAddress(renderbuffers), function_pointer);
  955. return renderbuffers.get(0);
  956. }
  957. public static void glRenderbufferStorage(int target, int internalformat, int width, int height) {
  958. ContextCapabilities caps = GLContext.getCapabilities();
  959. long function_pointer = caps.glRenderbufferStorage;
  960. BufferChecks.checkFunctionAddress(function_pointer);
  961. nglRenderbufferStorage(target, internalformat, width, height, function_pointer);
  962. }
  963. static native void nglRenderbufferStorage(int target, int internalformat, int width, int height, long function_pointer);
  964. public static void glGetRenderbufferParameter(int target, int pname, IntBuffer params) {
  965. ContextCapabilities caps = GLContext.getCapabilities();
  966. long function_pointer = caps.glGetRenderbufferParameteriv;
  967. BufferChecks.checkFunctionAddress(function_pointer);
  968. BufferChecks.checkBuffer(params, 4);
  969. nglGetRenderbufferParameteriv(target, pname, MemoryUtil.getAddress(params), function_pointer);
  970. }
  971. static native void nglGetRenderbufferParameteriv(int target, int pname, long params, long function_pointer);
  972. /**
  973. * Overloads glGetRenderbufferParameteriv.
  974. * <p>
  975. * @deprecated Will be removed in 3.0. Use {@link #glGetRenderbufferParameteri} instead.
  976. */
  977. public static int glGetRenderbufferParameter(int target, int pname) {
  978. return GL30.glGetRenderbufferParameteri(target, pname);
  979. }
  980. /** Overloads glGetRenderbufferParameteriv. */
  981. public static int glGetRenderbufferParameteri(int target, int pname) {
  982. ContextCapabilities caps = GLContext.getCapabilities();
  983. long function_pointer = caps.glGetRenderbufferParameteriv;
  984. BufferChecks.checkFunctionAddress(function_pointer);
  985. IntBuffer params = APIUtil.getBufferInt(caps);
  986. nglGetRenderbufferParameteriv(target, pname, MemoryUtil.getAddress(params), function_pointer);
  987. return params.get(0);
  988. }
  989. public static boolean glIsFramebuffer(int framebuffer) {
  990. ContextCapabilities caps = GLContext.getCapabilities();
  991. long function_pointer = caps.glIsFramebuffer;
  992. BufferChecks.checkFunctionAddress(function_pointer);
  993. boolean __result = nglIsFramebuffer(framebuffer, function_pointer);
  994. return __result;
  995. }
  996. static native boolean nglIsFramebuffer(int framebuffer, long function_pointer);
  997. public static void glBindFramebuffer(int target, int framebuffer) {
  998. ContextCapabilities caps = GLContext.getCapabilities();
  999. long function_pointer = caps.glBindFramebuffer;
  1000. BufferChecks.checkFunctionAddress(function_pointer);
  1001. nglBindFramebuffer(target, framebuffer, function_pointer);
  1002. }
  1003. static native void nglBindFramebuffer(int target, int framebuffer, long function_pointer);
  1004. public static void glDeleteFramebuffers(IntBuffer framebuffers) {
  1005. ContextCapabilities caps = GLContext.getCapabilities();
  1006. long function_pointer = caps.glDeleteFramebuffers;
  1007. BufferChecks.checkFunctionAddress(function_pointer);
  1008. BufferChecks.checkDirect(framebuffers);
  1009. nglDeleteFramebuffers(framebuffers.remaining(), MemoryUtil.getAddress(framebuffers), function_pointer);
  1010. }
  1011. static native void nglDeleteFramebuffers(int framebuffers_n, long framebuffers, long function_pointer);
  1012. /** Overloads glDeleteFramebuffers. */
  1013. public static void glDeleteFramebuffers(int framebuffer) {
  1014. ContextCapabilities caps = GLContext.getCapabilities();
  1015. long function_pointer = caps.glDeleteFramebuffers;
  1016. BufferChecks.checkFunctionAddress(function_pointer);
  1017. nglDeleteFramebuffers(1, APIUtil.getInt(caps, framebuffer), function_pointer);
  1018. }
  1019. public static void glGenFramebuffers(IntBuffer framebuffers) {
  1020. ContextCapabilities caps = GLContext.getCapabilities();
  1021. long function_pointer = caps.glGenFramebuffers;
  1022. BufferChecks.checkFunctionAddress(function_pointer);
  1023. BufferChecks.checkDirect(framebuffers);
  1024. nglGenFramebuffers(framebuffers.remaining(), MemoryUtil.getAddress(framebuffers), function_pointer);
  1025. }
  1026. static native void nglGenFramebuffers(int framebuffers_n, long framebuffers, long function_pointer);
  1027. /** Overloads glGenFramebuffers. */
  1028. public static int glGenFramebuffers() {
  1029. ContextCapabilities caps = GLContext.getCapabilities();
  1030. long function_pointer = caps.glGenFramebuffers;
  1031. BufferChecks.checkFunctionAddress(function_pointer);
  1032. IntBuffer framebuffers = APIUtil.getBufferInt(caps);
  1033. nglGenFramebuffers(1, MemoryUtil.getAddress(framebuffers), function_pointer);
  1034. return framebuffers.get(0);
  1035. }
  1036. public static int glCheckFramebufferStatus(int target) {
  1037. ContextCapabilities caps = GLContext.getCapabilities();
  1038. long function_pointer = caps.glCheckFramebufferStatus;
  1039. BufferChecks.checkFunctionAddress(function_pointer);
  1040. int __result = nglCheckFramebufferStatus(target, function_pointer);
  1041. return __result;
  1042. }
  1043. static native int nglCheckFramebufferStatus(int target, long function_pointer);
  1044. public static void glFramebufferTexture1D(int target, int attachment, int textarget, int texture, int level) {
  1045. ContextCapabilities caps = GLContext.getCapabilities();
  1046. long function_pointer = caps.glFramebufferTexture1D;
  1047. BufferChecks.checkFunctionAddress(function_pointer);
  1048. nglFramebufferTexture1D(target, attachment, textarget, texture, level, function_pointer);
  1049. }
  1050. static native void nglFramebufferTexture1D(int target, int attachment, int textarget, int texture, int level, long function_pointer);
  1051. public static void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level) {
  1052. ContextCapabilities caps = GLContext.getCapabilities();
  1053. long function_pointer = caps.glFramebufferTexture2D;
  1054. BufferChecks.checkFunctionAddress(function_pointer);
  1055. nglFramebufferTexture2D(target, attachment, textarget, texture, level, function_pointer);
  1056. }
  1057. static native void nglFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level, long function_pointer);
  1058. public static void glFramebufferTexture3D(int

Large files files are truncated, but you can click here to view the full file