PageRenderTime 37ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/LWJGL/src/generated/org/lwjgl/opengl/GL30.java

http://github.com/prog694/VIRSYSJ
Java | 1550 lines | 1057 code | 168 blank | 325 comment | 10 complexity | 231f61789dc772a87d12b8f3286dfe2b MD5 | raw file
Possible License(s): BSD-3-Clause

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;param&gt; parameter of the TexParameter{if}*
  449. * functions when &lt;pname&gt; is DEPTH_TEXTURE_MODE:
  450. */
  451. public static final int GL_RED = 0x1903;
  452. /**
  453. * Accepted by the &lt;target&gt; parameters of BindBuffer, BufferData,
  454. * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData,
  455. * GetBufferPointerv, BindBufferRange, BindBufferOffset and
  456. * BindBufferBase:
  457. */
  458. public static final int GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E;
  459. /**
  460. * Accepted by the &lt;param&gt; parameter of GetIntegerIndexedv and
  461. * GetBooleanIndexedv:
  462. */
  463. public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84,
  464. GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85;
  465. /**
  466. * Accepted by the &lt;param&gt; parameter of GetIntegerIndexedv and
  467. * GetBooleanIndexedv, and by the &lt;pname&gt; parameter of GetBooleanv,
  468. * GetDoublev, GetIntegerv, and GetFloatv:
  469. */
  470. public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F;
  471. /**
  472. * Accepted by the &lt;bufferMode&gt; parameter of TransformFeedbackVaryings:
  473. */
  474. public static final int GL_INTERLEAVED_ATTRIBS = 0x8C8C,
  475. GL_SEPARATE_ATTRIBS = 0x8C8D;
  476. /**
  477. * Accepted by the &lt;target&gt; parameter of BeginQuery, EndQuery, and
  478. * GetQueryiv:
  479. */
  480. public static final int GL_PRIMITIVES_GENERATED = 0x8C87,
  481. GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88;
  482. /**
  483. * Accepted by the &lt;cap&gt; parameter of Enable, Disable, and IsEnabled, and by
  484. * the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv, GetFloatv, and
  485. * GetDoublev:
  486. */
  487. public static final int GL_RASTERIZER_DISCARD = 0x8C89;
  488. /**
  489. * Accepted by the &lt;pname&gt; parameter of GetBooleanv, GetDoublev, GetIntegerv,
  490. * and GetFloatv:
  491. */
  492. public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A,
  493. GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B,
  494. GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80;
  495. /**
  496. * Accepted by the &lt;pname&gt; parameter of GetProgramiv:
  497. */
  498. public static final int GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83,
  499. GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F,
  500. GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76;
  501. /**
  502. * Accepted by the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv,
  503. * GetFloatv, and GetDoublev:
  504. */
  505. public static final int GL_VERTEX_ARRAY_BINDING = 0x85B5;
  506. /**
  507. * Accepted by the &lt;cap&gt; parameter of Enable, Disable, and IsEnabled,
  508. * and by the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv, GetFloatv,
  509. * and GetDoublev:
  510. */
  511. public static final int GL_FRAMEBUFFER_SRGB = 0x8DB9;
  512. /**
  513. * Accepted by the &lt;pname&gt; parameter of GetBooleanv, GetIntegerv,
  514. * GetFloatv, and GetDoublev:
  515. */
  516. public static final int GL_FRAMEBUFFER_SRGB_CAPABLE = 0x8DBA;
  517. private GL30() {}
  518. public static String glGetStringi(int name, int index) {
  519. ContextCapabilities caps = GLContext.getCapabilities();
  520. long function_pointer = caps.glGetStringi;
  521. BufferChecks.checkFunctionAddress(function_pointer);
  522. String __result = nglGetStringi(name, index, function_pointer);
  523. return __result;
  524. }
  525. static native String nglGetStringi(int name, int index, long function_pointer);
  526. public static void glClearBuffer(int buffer, int drawbuffer, FloatBuffer value) {
  527. ContextCapabilities caps = GLContext.getCapabilities();
  528. long function_pointer = caps.glClearBufferfv;
  529. BufferChecks.checkFunctionAddress(function_pointer);
  530. BufferChecks.checkBuffer(value, 4);
  531. nglClearBufferfv(buffer, drawbuffer, MemoryUtil.getAddress(value), function_pointer);
  532. }
  533. static native void nglClearBufferfv(int buffer, int drawbuffer, long value, long function_pointer);
  534. public static void glClearBuffer(int buffer, int drawbuffer, IntBuffer value) {
  535. ContextCapabilities caps = GLContext.getCapabilities();
  536. long function_pointer = caps.glClearBufferiv;
  537. BufferChecks.checkFunctionAddress(function_pointer);
  538. BufferChecks.checkBuffer(value, 4);
  539. nglClearBufferiv(buffer, drawbuffer, MemoryUtil.getAddress(value), function_pointer);
  540. }
  541. static native void nglClearBufferiv(int buffer, int drawbuffer, long value, long function_pointer);
  542. public static void glClearBufferu(int buffer, int drawbuffer, IntBuffer value) {
  543. ContextCapabilities caps = GLContext.getCapabilities();
  544. long function_pointer = caps.glClearBufferuiv;
  545. BufferChecks.checkFunctionAddress(function_pointer);
  546. BufferChecks.checkBuffer(value, 4);
  547. nglClearBufferuiv(buffer, drawbuffer, MemoryUtil.getAddress(value), function_pointer);
  548. }
  549. static native void nglClearBufferuiv(int buffer, int drawbuffer, long value, long function_pointer);
  550. public static void glClearBufferfi(int buffer, int drawbuffer, float depth, int stencil) {
  551. ContextCapabilities caps = GLContext.getCapabilities();
  552. long function_pointer = caps.glClearBufferfi;
  553. BufferChecks.checkFunctionAddress(function_pointer);
  554. nglClearBufferfi(buffer, drawbuffer, depth, stencil, function_pointer);
  555. }
  556. static native void nglClearBufferfi(int buffer, int drawbuffer, float depth, int stencil, long function_pointer);
  557. public static void glVertexAttribI1i(int index, int x) {
  558. ContextCapabilities caps = GLContext.getCapabilities();
  559. long function_pointer = caps.glVertexAttribI1i;
  560. BufferChecks.checkFunctionAddress(function_pointer);
  561. nglVertexAttribI1i(index, x, function_pointer);
  562. }
  563. static native void nglVertexAttribI1i(int index, int x, long function_pointer);
  564. public static void glVertexAttribI2i(int index, int x, int y) {
  565. ContextCapabilities caps = GLContext.getCapabilities();
  566. long function_pointer = caps.glVertexAttribI2i;
  567. BufferChecks.checkFunctionAddress(function_pointer);
  568. nglVertexAttribI2i(index, x, y, function_pointer);
  569. }
  570. static native void nglVertexAttribI2i(int index, int x, int y, long function_pointer);
  571. public static void glVertexAttribI3i(int index, int x, int y, int z) {
  572. ContextCapabilities caps = GLContext.getCapabilities();
  573. long function_pointer = caps.glVertexAttribI3i;
  574. BufferChecks.checkFunctionAddress(function_pointer);
  575. nglVertexAttribI3i(index, x, y, z, function_pointer);
  576. }
  577. static native void nglVertexAttribI3i(int index, int x, int y, int z, long function_pointer);
  578. public static void glVertexAttribI4i(int index, int x, int y, int z, int w) {
  579. ContextCapabilities caps = GLContext.getCapabilities();
  580. long function_pointer = caps.glVertexAttribI4i;
  581. BufferChecks.checkFunctionAddress(function_pointer);
  582. nglVertexAttribI4i(index, x, y, z, w, function_pointer);
  583. }
  584. static native void nglVertexAttribI4i(int index, int x, int y, int z, int w, long function_pointer);
  585. public static void glVertexAttribI1ui(int index, int x) {
  586. ContextCapabilities caps = GLContext.getCapabilities();
  587. long function_pointer = caps.glVertexAttribI1ui;
  588. BufferChecks.checkFunctionAddress(function_pointer);
  589. nglVertexAttribI1ui(index, x, function_pointer);
  590. }
  591. static native void nglVertexAttribI1ui(int index, int x, long function_pointer);
  592. public static void glVertexAttribI2ui(int index, int x, int y) {
  593. ContextCapabilities caps = GLContext.getCapabilities();
  594. long function_pointer = caps.glVertexAttribI2ui;
  595. BufferChecks.checkFunctionAddress(function_pointer);
  596. nglVertexAttribI2ui(index, x, y, function_pointer);
  597. }
  598. static native void nglVertexAttribI2ui(int index, int x, int y, long function_pointer);
  599. public static void glVertexAttribI3ui(int index, int x, int y, int z) {
  600. ContextCapabilities caps = GLContext.getCapabilities();
  601. long function_pointer = caps.glVertexAttribI3ui;
  602. BufferChecks.checkFunctionAddress(function_pointer);
  603. nglVertexAttribI3ui(index, x, y, z, function_pointer);
  604. }
  605. static native void nglVertexAttribI3ui(int index, int x, int y, int z, long function_pointer);
  606. public static void glVertexAttribI4ui(int index, int x, int y, int z, int w) {
  607. ContextCapabilities caps = GLContext.getCapabilities();
  608. long function_pointer = caps.glVertexAttribI4ui;
  609. BufferChecks.checkFunctionAddress(function_pointer);
  610. nglVertexAttribI4ui(index, x, y, z, w, function_pointer);
  611. }
  612. static native void nglVertexAttribI4ui(int index, int x, int y, int z, int w, long function_pointer);
  613. public static void glVertexAttribI1(int index, IntBuffer v) {
  614. ContextCapabilities caps = GLContext.getCapabilities();
  615. long function_pointer = caps.glVertexAttribI1iv;
  616. BufferChecks.checkFunctionAddress(function_pointer);
  617. BufferChecks.checkBuffer(v, 1);
  618. nglVertexAttribI1iv(index, MemoryUtil.getAddress(v), function_pointer);
  619. }
  620. static native void nglVertexAttribI1iv(int index, long v, long function_pointer);
  621. public static void glVertexAttribI2(int index, IntBuffer v) {
  622. ContextCapabilities caps = GLContext.getCapabilities();
  623. long function_pointer = caps.glVertexAttribI2iv;
  624. BufferChecks.checkFunctionAddress(function_pointer);
  625. BufferChecks.checkBuffer(v, 2);
  626. nglVertexAttribI2iv(index, MemoryUtil.getAddress(v), function_pointer);
  627. }
  628. static native void nglVertexAttribI2iv(int index, long v, long function_pointer);
  629. public static void glVertexAttribI3(int index, IntBuffer v) {
  630. ContextCapabilities caps = GLContext.getCapabilities();
  631. long function_pointer = caps.glVertexAttribI3iv;
  632. BufferChecks.checkFunctionAddress(function_pointer);
  633. BufferChecks.checkBuffer(v, 3);
  634. nglVertexAttribI3iv(index, MemoryUtil.getAddress(v), function_pointer);
  635. }
  636. static native void nglVertexAttribI3iv(int index, long v, long function_pointer);
  637. public static void glVertexAttribI4(int index, IntBuffer v) {
  638. ContextCapabilities caps = GLContext.getCapabilities();
  639. long function_pointer = caps.glVertexAttribI4iv;
  640. BufferChecks.checkFunctionAddress(function_pointer);
  641. BufferChecks.checkBuffer(v, 4);
  642. nglVertexAttribI4iv(index, MemoryUtil.getAddress(v), function_pointer);
  643. }
  644. static native void nglVertexAttribI4iv(int index, long v, long function_pointer);
  645. public static void glVertexAttribI1u(int index, IntBuffer v) {
  646. ContextCapabilities caps = GLContext.getCapabilities();
  647. long function_pointer = caps.glVertexAttribI1uiv;
  648. BufferChecks.checkFunctionAddress(function_pointer);
  649. BufferChecks.checkBuffer(v, 1);
  650. nglVertexAttribI1uiv(index, MemoryUtil.getAddress(v), function_pointer);
  651. }
  652. static native void nglVertexAttribI1uiv(int index, long v, long function_pointer);
  653. public static void glVertexAttribI2u(int index, IntBuffer v) {
  654. ContextCapabilities caps = GLContext.getCapabilities();
  655. long function_pointer = caps.glVertexAttribI2uiv;
  656. BufferChecks.checkFunctionAddress(function_pointer);
  657. BufferChecks.checkBuffer(v, 2);
  658. nglVertexAttribI2uiv(index, MemoryUtil.getAddress(v), function_pointer);
  659. }
  660. static native void nglVertexAttribI2uiv(int index, long v, long function_pointer);
  661. public static void glVertexAttribI3u(int index, IntBuffer v) {
  662. ContextCapabilities caps = GLContext.getCapabilities();
  663. long function_pointer = caps.glVertexAttribI3uiv;
  664. BufferChecks.checkFunctionAddress(function_pointer);
  665. BufferChecks.checkBuffer(v, 3);
  666. nglVertexAttribI3uiv(index, MemoryUtil.getAddress(v), function_pointer);
  667. }
  668. static native void nglVertexAttribI3uiv(int index, long v, long function_pointer);
  669. public static void glVertexAttribI4u(int index, IntBuffer v) {
  670. ContextCapabilities caps = GLContext.getCapabilities();
  671. long function_pointer = caps.glVertexAttribI4uiv;
  672. BufferChecks.checkFunctionAddress(function_pointer);
  673. BufferChecks.checkBuffer(v, 4);
  674. nglVertexAttribI4uiv(index, MemoryUtil.getAddress(v), function_pointer);
  675. }
  676. static native void nglVertexAttribI4uiv(int index, long v, long function_pointer);
  677. public static void glVertexAttribI4(int index, ByteBuffer v) {
  678. ContextCapabilities caps = GLContext.getCapabilities();
  679. long function_pointer = caps.glVertexAttribI4bv;
  680. BufferChecks.checkFunctionAddress(function_pointer);
  681. BufferChecks.checkBuffer(v, 4);
  682. nglVertexAttribI4bv(index, MemoryUtil.getAddress(v), function_pointer);
  683. }
  684. static native void nglVertexAttribI4bv(int index, long v, long function_pointer);
  685. public static void glVertexAttribI4(int index, ShortBuffer v) {
  686. ContextCapabilities caps = GLContext.getCapabilities();
  687. long function_pointer = caps.glVertexAttribI4sv;
  688. BufferChecks.checkFunctionAddress(function_pointer);
  689. BufferChecks.checkBuffer(v, 4);
  690. nglVertexAttribI4sv(index, MemoryUtil.getAddress(v), function_pointer);
  691. }
  692. static native void nglVertexAttribI4sv(int index, long v, long function_pointer);
  693. public static void glVertexAttribI4u(int index, ByteBuffer v) {
  694. ContextCapabilities caps = GLContext.getCapabilities();
  695. long function_pointer = caps.glVertexAttribI4ubv;
  696. BufferChecks.checkFunctionAddress(function_pointer);
  697. BufferChecks.checkBuffer(v, 4);
  698. nglVertexAttribI4ubv(index, MemoryUtil.getAddress(v), function_pointer);
  699. }
  700. static native void nglVertexAttribI4ubv(int index, long v, long function_pointer);
  701. public static void glVertexAttribI4u(int index, ShortBuffer v) {
  702. ContextCapabilities caps = GLContext.getCapabilities();
  703. long function_pointer = caps.glVertexAttribI4usv;
  704. BufferChecks.checkFunctionAddress(function_pointer);
  705. BufferChecks.checkBuffer(v, 4);
  706. nglVertexAttribI4usv(index, MemoryUtil.getAddress(v), function_pointer);
  707. }
  708. static native void nglVertexAttribI4usv(int index, long v, long function_pointer);
  709. public static void glVertexAttribIPointer(int index, int size, int type, int stride, ByteBuffer buffer) {
  710. ContextCapabilities caps = GLContext.getCapabilities();
  711. long function_pointer = caps.glVertexAttribIPointer;
  712. BufferChecks.checkFunctionAddress(function_pointer);
  713. GLChecks.ensureArrayVBOdisabled(caps);
  714. BufferChecks.checkDirect(buffer);
  715. if ( LWJGLUtil.CHECKS ) StateTracker.getReferences(caps).GL30_glVertexAttribIPointer_buffer = buffer;
  716. nglVertexAttribIPointer(index, size, type, stride, MemoryUtil.getAddress(buffer), function_pointer);
  717. }
  718. public static void glVertexAttribIPointer(int index, int size, int type, int stride, IntBuffer buffer) {
  719. ContextCapabilities caps = GLContext.getCapabilities();
  720. long function_pointer = caps.glVertexAttribIPointer;
  721. BufferChecks.checkFunctionAddress(function_pointer);
  722. GLChecks.ensureArrayVBOdisabled(caps);
  723. BufferChecks.checkDirect(buffer);
  724. if ( LWJGLUtil.CHECKS ) StateTracker.getReferences(caps).GL30_glVertexAttribIPointer_buffer = buffer;
  725. nglVertexAttribIPointer(index, size, type, stride, MemoryUtil.getAddress(buffer), function_pointer);
  726. }
  727. public static void glVertexAttribIPointer(int index, int size, int type, int stride, ShortBuffer buffer) {
  728. ContextCapabilities caps = GLContext.getCapabilities();
  729. long function_pointer = caps.glVertexAttribIPointer;
  730. BufferChecks.checkFunctionAddress(function_pointer);
  731. GLChecks.ensureArrayVBOdisabled(caps);
  732. BufferChecks.checkDirect(buffer);
  733. if ( LWJGLUtil.CHECKS ) StateTracker.getReferences(caps).GL30_glVertexAttribIPointer_buffer = buffer;
  734. nglVertexAttribIPointer(index, size, type, stride, MemoryUtil.getAddress(buffer), function_pointer);
  735. }
  736. static native void nglVertexAttribIPointer(int index, int size, int type, int stride, long buffer, long function_pointer);
  737. public static void glVertexAttribIPointer(int index, int size, int type, int stride, long buffer_buffer_offset) {
  738. ContextCapabilities caps = GLContext.getCapabilities();
  739. long function_pointer = caps.glVertexAttribIPointer;
  740. BufferChecks.checkFunctionAddress(function_pointer);
  741. GLChecks.ensureArrayVBOenabled(caps);
  742. nglVertexAttribIPointerBO(index, size, type, stride, buffer_buffer_offset, function_pointer);
  743. }
  744. static native void nglVertexAttribIPointerBO(int index, int size, int type, int stride, long buffer_buffer_offset, long function_pointer);
  745. public static void glGetVertexAttribI(int index, int pname, IntBuffer params) {
  746. ContextCapabilities caps = GLContext.getCapabilities();
  747. long function_pointer = caps.glGetVertexAttribIiv;
  748. BufferChecks.checkFunctionAddress(function_pointer);
  749. BufferChecks.checkBuffer(params, 4);
  750. nglGetVertexAttribIiv(index, pname, MemoryUtil.getAddress(params), function_pointer);
  751. }
  752. static native void nglGetVertexAttribIiv(int index, int pname, long params, long function_pointer);
  753. public static void glGetVertexAttribIu(int index, int pname, IntBuffer params) {
  754. ContextCapabilities caps = GLContext.getCapabilities();
  755. long function_pointer = caps.glGetVertexAttribIuiv;
  756. BufferChecks.checkFunctionAddress(function_pointer);
  757. BufferChecks.checkBuffer(params, 4);
  758. nglGetVertexAttribIuiv(index, pname, MemoryUtil.getAddress(params), function_pointer);
  759. }
  760. static native void nglGetVertexAttribIuiv(int index, int pname, long params, long function_pointer);
  761. public static void glUniform1ui(int location, int v0) {
  762. ContextCapabilities caps = GLContext.getCapabilities();
  763. long function_pointer = caps.glUniform1ui;
  764. BufferChecks.checkFunctionAddress(function_pointer);
  765. nglUniform1ui(location, v0, function_pointer);
  766. }
  767. static native void nglUniform1ui(int location, int v0, long function_pointer);
  768. public static void glUniform2ui(int location, int v0, int v1) {
  769. ContextCapabilities caps = GLContext.getCapabilities();
  770. long function_pointer = caps.glUniform2ui;
  771. BufferChecks.checkFunctionAddress(function_pointer);
  772. nglUniform2ui(location, v0, v1, function_pointer);
  773. }
  774. static native void nglUniform2ui(int location, int v0, int v1, long function_pointer);
  775. public static void glUniform3ui(int location, int v0, int v1, int v2) {
  776. ContextCapabilities caps = GLContext.getCapabilities();
  777. long function_pointer = caps.glUniform3ui;
  778. BufferChecks.checkFunctionAddress(function_pointer);
  779. nglUniform3ui(location, v0, v1, v2, function_pointer);
  780. }
  781. static native void nglUniform3ui(int location, int v0, int v1, int v2, long function_pointer);
  782. public static void glUniform4ui(int location, int v0, int v1, int v2, int v3) {
  783. ContextCapabilities caps = GLContext.getCapabilities();
  784. long function_pointer = caps.glUniform4ui;
  785. BufferChecks.checkFunctionAddress(function_pointer);
  786. nglUniform4ui(location, v0, v1, v2, v3, function_pointer);
  787. }
  788. static native void nglUniform4ui(int location, int v0, int v1, int v2, int v3, long function_pointer);
  789. public static void glUniform1u(int location, IntBuffer value) {
  790. ContextCapabilities caps = GLContext.getCapabilities();
  791. long function_pointer = caps.glUniform1uiv;
  792. BufferChecks.checkFunctionAddress(function_pointer);
  793. BufferChecks.checkDirect(value);
  794. nglUniform1uiv(location, value.remaining(), MemoryUtil.getAddress(value), function_pointer);
  795. }
  796. static native void nglUniform1uiv(int location, int value_count, long value, long function_pointer);
  797. public static void glUniform2u(int location, IntBuffer value) {
  798. ContextCapabilities caps = GLContext.getCapabilities();
  799. long function_pointer = caps.glUniform2uiv;
  800. BufferChecks.checkFunctionAddress(function_pointer);
  801. BufferChecks.checkDirect(value);
  802. nglUniform2uiv(location, value.remaining() >> 1, MemoryUtil.getAddress(value), function_pointer);
  803. }
  804. static native void nglUniform2uiv(int location, int value_count, long value, long function_pointer);
  805. public static void glUniform3u(int location, IntBuffer value) {
  806. ContextCapabilities caps = GLContext.getCapabilities();
  807. long function_pointer = caps.glUniform3uiv;
  808. BufferChecks.checkFunctionAddress(function_pointer);
  809. BufferChecks.checkDirect(value);
  810. nglUniform3uiv(location, value.remaining() / 3, MemoryUtil.getAddress(value), function_pointer);
  811. }
  812. static native void nglUniform3uiv(int location, int value_count, long value, long function_pointer);
  813. public static void glUniform4u(int location, IntBuffer value) {
  814. ContextCapabilities caps = GLContext.getCapabilities();
  815. long function_pointer = caps.glUniform4uiv;
  816. BufferChecks.checkFunctionAddress(function_pointer);
  817. BufferChecks.checkDirect(value);
  818. nglUniform4uiv(location, value.remaining() >> 2, MemoryUtil.getAddress(value), function_pointer);
  819. }
  820. static native void nglUniform4uiv(int location, int value_count, long value, long function_pointer);
  821. public static void glGetUniformu(int program, int location, IntBuffer params) {
  822. ContextCapabilities caps = GLContext.getCapabilities();
  823. long function_pointer = caps.glGetUniformuiv;
  824. BufferChecks.checkFunctionAddress(function_pointer);
  825. BufferChecks.checkDirect(params);
  826. nglGetUniformuiv(program, location, MemoryUtil.getAddress(params), function_pointer);
  827. }
  828. static native void nglGetUniformuiv(int program, int location, long params, long function_pointer);
  829. public static void glBindFragDataLocation(int program, int colorNumber, ByteBuffer name) {
  830. ContextCapabilities caps = GLContext.getCapabilities();
  831. long function_pointer = caps.glBindFragDataLocation;
  832. BufferChecks.checkFunctionAddress(function_pointer);
  833. BufferChecks.checkDirect(name);
  834. BufferChecks.checkNullTerminated(name);
  835. nglBindFragDataLocation(program, colorNumber, MemoryUtil.getAddress(name), function_pointer);
  836. }
  837. static native void nglBindFragDataLocation(int program, int colorNumber, long name, long function_pointer);
  838. /** Overloads glBindFragDataLocation. */
  839. public static void glBindFragDataLocation(int program, int colorNumber, CharSequence name) {
  840. ContextCapabilities caps = GLContext.getCapabilities();
  841. long function_pointer = caps.glBindFragDataLocation;
  842. BufferChecks.checkFunctionAddress(function_pointer);
  843. nglBindFragDataLocation(program, colorNumber, APIUtil.getBufferNT(caps, name), function_pointer);
  844. }
  845. public static int glGetFragDataLocation(int program, ByteBuffer name) {
  846. ContextCapabilities caps = GLContext.getCapabilities();
  847. long function_pointer = caps.glGetFragDataLocation;
  848. BufferChecks.checkFunctionAddress(function_pointer);
  849. BufferChecks.checkDirect(name);
  850. BufferChecks.checkNullTerminated(name);
  851. int __result = nglGetFragDataLocation(program, MemoryUtil.getAddress(name), function_pointer);
  852. return __result;
  853. }
  854. static native int nglGetFragDataLocation(int program, long name, long function_pointer);
  855. /** Overloads glGetFragDataLocation. */
  856. public static int glGetFragDataLocation(int program, CharSequence name) {
  857. ContextCapabilities caps = GLContext.getCapabilities();
  858. long function_pointer = caps.glGetFragDataLocation;
  859. BufferChecks.checkFunctionAddress(function_pointer);
  860. int __result = nglGetFragDataLocation(program, APIUtil.getBufferNT(caps, name), function_pointer);
  861. return __result;
  862. }
  863. public static void glBeginConditionalRender(int id, int mode) {
  864. ContextCapabilities caps = GLContext.getCapabilities();
  865. long function_pointer = caps.glBeginConditionalRender;
  866. BufferChecks.checkFunctionAddress(function_pointer);
  867. nglBeginConditionalRender(id, mode, function_pointer);
  868. }
  869. static native void nglBeginConditionalRender(int id, int mode, long function_pointer);
  870. public static void glEndConditionalRender() {
  871. ContextCapabilities caps = GLContext.getCapabilities();
  872. long function_pointer = caps.glEndConditionalRender;
  873. BufferChecks.checkFunctionAddress(function_pointer);
  874. nglEndConditionalRender(function_pointer);
  875. }
  876. static native void nglEndConditionalRender(long function_pointer);
  877. /**
  878. * glMapBufferRange maps a GL buffer object range to a ByteBuffer. The old_buffer argument can be null,
  879. * in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null,
  880. * it will be returned if it points to the same mapped memory and has the same capacity as the buffer object,
  881. * otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferRange like this:
  882. * <p/>
  883. * ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
  884. * <p/>
  885. * Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
  886. * <p>
  887. * @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.
  888. * <p>
  889. * @return A ByteBuffer representing the mapped buffer memory.
  890. */
  891. public static ByteBuffer glMapBufferRange(int target, long offset, long length, int access, ByteBuffer old_buffer) {
  892. ContextCapabilities caps = GLContext.getCapabilities();
  893. long function_pointer = caps.glMapBufferRange;
  894. BufferChecks.checkFunctionAddress(function_pointer);
  895. if (old_buffer != null)
  896. BufferChecks.checkDirect(old_buffer);
  897. ByteBuffer __result = nglMapBufferRange(target, offset, length, access, old_buffer, function_pointer);
  898. return LWJGLUtil.CHECKS && __result == null ? null : __result.order(ByteOrder.nativeOrder());
  899. }
  900. static native ByteBuffer nglMapBufferRange(int target, long offset, long length, int access, ByteBuffer old_buffer, long function_pointer);
  901. public static void glFlushMappedBufferRange(int target, long offset, long length) {
  902. ContextCapabilities caps = GLContext.getCapabilities();
  903. long function_pointer = caps.glFlushMappedBufferRange;
  904. BufferChecks.checkFunctionAddress(function_pointer);
  905. nglFlushMappedBufferRange(target, offset, length, function_pointer);
  906. }
  907. static native void nglFlushMappedBufferRange(int target, long offset, long length, long function_pointer);
  908. public static void glClampColor(int target, int clamp) {
  909. ContextCapabilities caps = GLContext.getCapabilities();
  910. long function_pointer = caps.glClampColor;
  911. BufferChecks.checkFunctionAddress(function_pointer);
  912. nglClampColor(target, clamp, function_pointer);
  913. }
  914. static native void nglClampColor(int target, int clamp, long function_pointer);
  915. public static boolean glIsRenderbuffer(int renderbuffer) {
  916. ContextCapabilities caps = GLContext.getCapabilities();
  917. long function_pointer = caps.glIsRenderbuffer;
  918. BufferChecks.checkFunctionAddress(function_pointer);
  919. boolean __result = nglIsRenderbuffer(renderbuffer, function_pointer);
  920. return __result;
  921. }
  922. static native boolean nglIsRenderbuffer(int renderbuffer, long function_pointer);
  923. public static void glBindRenderbuffer(int target, int renderbuffer) {
  924. ContextCapabilities caps = GLContext.getCapabilities();
  925. long function_pointer = caps.glBindRenderbuffer;
  926. BufferChecks.checkFunctionAddress(function_pointer);
  927. nglBindRenderbuffer(target, renderbuffer, function_pointer);
  928. }
  929. static native void nglBindRenderbuffer(int target, int renderbuffer, long function_pointer);
  930. public static void glDeleteRenderbuffers(IntBuffer renderbuffers) {
  931. ContextCapabilities caps = GLContext.getCapabilities();
  932. long function_pointer = caps.glDeleteRenderbuffers;
  933. BufferChecks.checkFunctionAddress(function_pointer);
  934. BufferChecks.checkDirect(renderbuffers);
  935. nglDeleteRenderbuffers(renderbuffers.remaining(), MemoryUtil.getAddress(renderbuffers), function_pointer);
  936. }
  937. static native void nglDeleteRenderbuffers(int renderbuffers_n, long renderbuffers, long function_pointer);
  938. /** Overloads glDeleteRenderbuffers. */
  939. public static void glDeleteRenderbuffers(int renderbuffer) {
  940. ContextCapabilities caps = GLContext.getCapabilities();
  941. long function_pointer = caps.glDeleteRenderbuffers;
  942. BufferChecks.checkFunctionAddress(function_pointer);
  943. nglDeleteRenderbuffers(1, APIUtil.getInt(caps, renderbuffer), function_pointer);
  944. }
  945. public static void glGenRenderbuffers(IntBuffer renderbuffers) {
  946. ContextCapabilities caps = GLContext.getCapabilities();
  947. long function_pointer = caps.glGenRenderbuffers;
  948. BufferChecks.checkFunctionAddress(function_pointer);
  949. BufferChecks.checkDirect(renderbuffers);
  950. nglGenRenderbuffers(renderbuffers.remaining(), MemoryUtil.getAddress(renderbuffers), function_pointer);
  951. }
  952. static native void nglGenRenderbuffers(int renderbuffers_n, long renderbuffers, long function_pointer);
  953. /** Overloads glGenRenderbuffers. */
  954. public static int glGenRenderbuffers() {
  955. ContextCapabilities caps = GLContext.getCapabilities();
  956. long function_pointer = caps.glGenRenderbuffers;
  957. BufferChecks.checkFunctionAddress(function_pointer);
  958. IntBuffer renderbuffers = APIUtil.getBufferInt(caps);
  959. nglGenRenderbuffers(1, MemoryUtil.getAddress(renderbuffers), function_pointer);
  960. return renderbuffers.get(0);
  961. }
  962. public static void glRenderbufferStorage(int target, int internalformat, int width, int height) {
  963. ContextCapabilities caps = GLContext.getCapabilities();
  964. long function_pointer = caps.glRenderbufferStorage;
  965. BufferChecks.checkFunctionAddress(function_pointer);
  966. nglRenderbufferStorage(target, internalformat, width, height, function_pointer);
  967. }
  968. static native void nglRenderbufferStorage(int target, int internalformat, int width, int height, long function_pointer);
  969. public static void glGetRenderbufferParameter(int target, int pname, IntBuffer params) {
  970. ContextCapabilities caps = GLContext.getCapabilities();
  971. long function_pointer = caps.glGetRenderbufferParameteriv;
  972. BufferChecks.checkFunctionAddress(function_pointer);
  973. BufferChecks.checkBuffer(params, 4);
  974. nglGetRenderbufferParameteriv(target, pname, MemoryUtil.getAddress(params), function_pointer);
  975. }
  976. static native void nglGetRenderbufferParameteriv(int target, int pname, long params, long function_pointer);
  977. /** Overloads glGetRenderbufferParameteriv. */
  978. public static int glGetRenderbufferParameter(int target, int pname) {
  979. ContextCapabilities caps = GLContext.getCapabilities();
  980. long function_pointer = caps.glGetRenderbufferParameteriv;
  981. BufferChecks.checkFunctionAddress(function_pointer);
  982. IntBuffer params = APIUtil.getBufferInt(caps);
  983. nglGetRenderbufferParameteriv(target, pname, MemoryUtil.getAddress(params), function_pointer);
  984. return params.get(0);
  985. }
  986. public static boolean glIsFramebuffer(int framebuffer) {
  987. ContextCapabilities caps = GLContext.getCapabilities();
  988. long function_pointer = caps.glIsFramebuffer;
  989. BufferChecks.checkFunctionAddress(function_pointer);
  990. boolean __result = nglIsFramebuffer(framebuffer, function_pointer);
  991. return __result;
  992. }
  993. static native boolean nglIsFramebuffer(int framebuffer, long function_pointer);
  994. public static void glBindFramebuffer(int target, int framebuffer) {
  995. ContextCapabilities caps = GLContext.getCapabilities();
  996. long function_pointer = caps.glBindFramebuffer;
  997. BufferChecks.checkFunctionAddress(function_pointer);
  998. nglBindFramebuffer(target, framebuffer, function_pointer);
  999. }
  1000. static native void nglBindFramebuffer(int target, int framebuffer, long function_pointer);
  1001. public static void glDeleteFramebuffers(IntBuffer framebuffers) {
  1002. ContextCapabilities caps = GLContext.getCapabilities();
  1003. long function_pointer = caps.glDeleteFramebuffers;
  1004. BufferChecks.checkFunctionAddress(function_pointer);
  1005. BufferChecks.checkDirect(framebuffers);
  1006. nglDeleteFramebuffers(framebuffers.remaining(), MemoryUtil.getAddress(framebuffers), function_pointer);
  1007. }
  1008. static native void nglDeleteFramebuffers(int framebuffers_n, long framebuffers, long function_pointer);
  1009. /** Overloads glDeleteFramebuffers. */
  1010. public static void glDeleteFramebuffers(int framebuffer) {
  1011. ContextCapabilities caps = GLContext.getCapabilities();
  1012. long function_pointer = caps.glDeleteFramebuffers;
  1013. BufferChecks.checkFunctionAddress(function_pointer);
  1014. nglDeleteFramebuffers(1, APIUtil.getInt(caps, framebuffer), function_pointer);
  1015. }
  1016. public static void glGenFramebuffers(IntBuffer framebuffers) {
  1017. ContextCapabilities caps = GLContext.getCapabilities();
  1018. long function_pointer = caps.glGenFramebuffers;
  1019. BufferChecks.checkFunctionAddress(function_pointer);
  1020. BufferChecks.checkDirect(framebuffers);
  1021. nglGenFramebuffers(framebuffers.remaining(), MemoryUtil.getAddress(framebuffers), function_pointer);
  1022. }
  1023. static native void nglGenFramebuffers(int framebuffers_n, long framebuffers, long function_pointer);
  1024. /** Overloads glGenFramebuffers. */
  1025. public static int glGenFramebuffers() {
  1026. ContextCapabilities caps = GLContext.getCapabilities();
  1027. long function_pointer = caps.glGenFramebuffers;
  1028. BufferChecks.checkFunctionAddress(function_pointer);
  1029. IntBuffer framebuffers = APIUtil.getBufferInt(caps);
  1030. nglGenFramebuffers(1, MemoryUtil.getAddress(framebuffers), function_pointer);
  1031. return framebuffers.get(0);
  1032. }
  1033. public static int glCheckFramebufferStatus(int target) {
  1034. ContextCapabilities caps = GLContext.getCapabilities();
  1035. long function_pointer = caps.glCheckFramebufferStatus;
  1036. BufferChecks.checkFunctionAddress(function_pointer);
  1037. int __result = nglCheckFramebufferStatus(target, function_pointer);
  1038. return __result;
  1039. }
  1040. static native int nglCheckFramebufferStatus(int target, long function_pointer);
  1041. public static void glFramebufferTexture1D(int target, int attachment, int textarget, int texture, int level) {
  1042. ContextCapabilities caps = GLContext.getCapabilities();
  1043. long function_pointer = caps.glFramebufferTexture1D;
  1044. BufferChecks.checkFunctionAddress(function_pointer);
  1045. nglFramebufferTexture1D(target, attachment, textarget, texture, level, function_pointer);
  1046. }
  1047. static native void nglFramebufferTexture1D(int target, int attachment, int textarget, int texture, int level, long function_pointer);
  1048. public static void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level) {
  1049. ContextCapabilities caps = GLContext.getCapabilities();
  1050. long function_pointer = caps.glFramebufferTexture2D;
  1051. BufferChecks.checkFunctionAddress(function_pointer);
  1052. nglFramebufferTexture2D(target, attachment, textarget, texture, level, function_pointer);
  1053. }
  1054. static native void nglFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level, long function_pointer);
  1055. public static void glFramebufferTexture3D(int target, int attachment, int textarget, int texture, int level, int zoffset) {
  1056. ContextCapabilities caps = GLC

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