PageRenderTime 69ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/LWJGL/src/native/generated/opengl/org_lwjgl_opengl_GL30.c

https://github.com/prog694/VIRSYSJ
C | 578 lines | 489 code | 88 blank | 1 comment | 1 complexity | 94ebbcffeba08dfbe4fccd98dafbfc40 MD5 | raw file
  1. /* MACHINE GENERATED FILE, DO NOT EDIT */
  2. #include <jni.h>
  3. #include "extgl.h"
  4. typedef GLubyte * (APIENTRY *glGetStringiPROC) (GLenum name, GLuint index);
  5. typedef void (APIENTRY *glClearBufferfvPROC) (GLenum buffer, GLint drawbuffer, const GLfloat * value);
  6. typedef void (APIENTRY *glClearBufferivPROC) (GLenum buffer, GLint drawbuffer, const GLint * value);
  7. typedef void (APIENTRY *glClearBufferuivPROC) (GLenum buffer, GLint drawbuffer, const GLint * value);
  8. typedef void (APIENTRY *glClearBufferfiPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  9. typedef void (APIENTRY *glVertexAttribI1iPROC) (GLuint index, GLint x);
  10. typedef void (APIENTRY *glVertexAttribI2iPROC) (GLuint index, GLint x, GLint y);
  11. typedef void (APIENTRY *glVertexAttribI3iPROC) (GLuint index, GLint x, GLint y, GLint z);
  12. typedef void (APIENTRY *glVertexAttribI4iPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
  13. typedef void (APIENTRY *glVertexAttribI1uiPROC) (GLuint index, GLuint x);
  14. typedef void (APIENTRY *glVertexAttribI2uiPROC) (GLuint index, GLuint x, GLuint y);
  15. typedef void (APIENTRY *glVertexAttribI3uiPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
  16. typedef void (APIENTRY *glVertexAttribI4uiPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  17. typedef void (APIENTRY *glVertexAttribI1ivPROC) (GLuint index, const GLint * v);
  18. typedef void (APIENTRY *glVertexAttribI2ivPROC) (GLuint index, const GLint * v);
  19. typedef void (APIENTRY *glVertexAttribI3ivPROC) (GLuint index, const GLint * v);
  20. typedef void (APIENTRY *glVertexAttribI4ivPROC) (GLuint index, const GLint * v);
  21. typedef void (APIENTRY *glVertexAttribI1uivPROC) (GLuint index, const GLuint * v);
  22. typedef void (APIENTRY *glVertexAttribI2uivPROC) (GLuint index, const GLuint * v);
  23. typedef void (APIENTRY *glVertexAttribI3uivPROC) (GLuint index, const GLuint * v);
  24. typedef void (APIENTRY *glVertexAttribI4uivPROC) (GLuint index, const GLuint * v);
  25. typedef void (APIENTRY *glVertexAttribI4bvPROC) (GLuint index, const GLbyte * v);
  26. typedef void (APIENTRY *glVertexAttribI4svPROC) (GLuint index, const GLshort * v);
  27. typedef void (APIENTRY *glVertexAttribI4ubvPROC) (GLuint index, const GLubyte * v);
  28. typedef void (APIENTRY *glVertexAttribI4usvPROC) (GLuint index, const GLushort * v);
  29. typedef void (APIENTRY *glVertexAttribIPointerPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * buffer);
  30. typedef void (APIENTRY *glGetVertexAttribIivPROC) (GLuint index, GLenum pname, GLint * params);
  31. typedef void (APIENTRY *glGetVertexAttribIuivPROC) (GLuint index, GLenum pname, GLuint * params);
  32. typedef void (APIENTRY *glUniform1uiPROC) (GLint location, GLuint v0);
  33. typedef void (APIENTRY *glUniform2uiPROC) (GLint location, GLuint v0, GLuint v1);
  34. typedef void (APIENTRY *glUniform3uiPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
  35. typedef void (APIENTRY *glUniform4uiPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  36. typedef void (APIENTRY *glUniform1uivPROC) (GLint location, GLsizei count, const GLuint * value);
  37. typedef void (APIENTRY *glUniform2uivPROC) (GLint location, GLsizei count, const GLuint * value);
  38. typedef void (APIENTRY *glUniform3uivPROC) (GLint location, GLsizei count, const GLuint * value);
  39. typedef void (APIENTRY *glUniform4uivPROC) (GLint location, GLsizei count, const GLuint * value);
  40. typedef void (APIENTRY *glGetUniformuivPROC) (GLuint program, GLint location, GLuint * params);
  41. typedef void (APIENTRY *glBindFragDataLocationPROC) (GLuint program, GLuint colorNumber, const GLchar * name);
  42. typedef GLint (APIENTRY *glGetFragDataLocationPROC) (GLuint program, const GLchar * name);
  43. typedef void (APIENTRY *glBeginConditionalRenderPROC) (GLuint id, GLenum mode);
  44. typedef void (APIENTRY *glEndConditionalRenderPROC) ();
  45. typedef GLvoid * (APIENTRY *glMapBufferRangePROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  46. typedef void (APIENTRY *glFlushMappedBufferRangePROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  47. typedef void (APIENTRY *glClampColorPROC) (GLenum target, GLenum clamp);
  48. typedef GLboolean (APIENTRY *glIsRenderbufferPROC) (GLuint renderbuffer);
  49. typedef void (APIENTRY *glBindRenderbufferPROC) (GLenum target, GLuint renderbuffer);
  50. typedef void (APIENTRY *glDeleteRenderbuffersPROC) (GLint n, const GLuint * renderbuffers);
  51. typedef void (APIENTRY *glGenRenderbuffersPROC) (GLint n, GLuint * renderbuffers);
  52. typedef void (APIENTRY *glRenderbufferStoragePROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  53. typedef void (APIENTRY *glGetRenderbufferParameterivPROC) (GLenum target, GLenum pname, GLint * params);
  54. typedef GLboolean (APIENTRY *glIsFramebufferPROC) (GLuint framebuffer);
  55. typedef void (APIENTRY *glBindFramebufferPROC) (GLenum target, GLuint framebuffer);
  56. typedef void (APIENTRY *glDeleteFramebuffersPROC) (GLint n, const GLuint * framebuffers);
  57. typedef void (APIENTRY *glGenFramebuffersPROC) (GLint n, GLuint * framebuffers);
  58. typedef GLenum (APIENTRY *glCheckFramebufferStatusPROC) (GLenum target);
  59. typedef void (APIENTRY *glFramebufferTexture1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  60. typedef void (APIENTRY *glFramebufferTexture2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  61. typedef void (APIENTRY *glFramebufferTexture3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  62. typedef void (APIENTRY *glFramebufferRenderbufferPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  63. typedef void (APIENTRY *glGetFramebufferAttachmentParameterivPROC) (GLenum target, GLenum attachment, GLenum pname, GLint * params);
  64. typedef void (APIENTRY *glGenerateMipmapPROC) (GLenum target);
  65. typedef void (APIENTRY *glRenderbufferStorageMultisamplePROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  66. typedef void (APIENTRY *glBlitFramebufferPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  67. typedef void (APIENTRY *glTexParameterIivPROC) (GLenum target, GLenum pname, GLint * params);
  68. typedef void (APIENTRY *glTexParameterIuivPROC) (GLenum target, GLenum pname, GLuint * params);
  69. typedef void (APIENTRY *glGetTexParameterIivPROC) (GLenum target, GLenum pname, GLint * params);
  70. typedef void (APIENTRY *glGetTexParameterIuivPROC) (GLenum target, GLenum pname, GLuint * params);
  71. typedef void (APIENTRY *glFramebufferTextureLayerPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  72. typedef void (APIENTRY *glColorMaskiPROC) (GLuint buf, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  73. typedef void (APIENTRY *glGetBooleani_vPROC) (GLenum value, GLuint index, GLboolean * data);
  74. typedef void (APIENTRY *glGetIntegeri_vPROC) (GLenum value, GLuint index, GLint * data);
  75. typedef void (APIENTRY *glEnableiPROC) (GLenum target, GLuint index);
  76. typedef void (APIENTRY *glDisableiPROC) (GLenum target, GLuint index);
  77. typedef GLboolean (APIENTRY *glIsEnablediPROC) (GLenum target, GLuint index);
  78. typedef void (APIENTRY *glBindBufferRangePROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  79. typedef void (APIENTRY *glBindBufferBasePROC) (GLenum target, GLuint index, GLuint buffer);
  80. typedef void (APIENTRY *glBeginTransformFeedbackPROC) (GLenum primitiveMode);
  81. typedef void (APIENTRY *glEndTransformFeedbackPROC) ();
  82. typedef void (APIENTRY *glTransformFeedbackVaryingsPROC) (GLuint program, GLsizei count, const GLchar ** varyings, GLenum bufferMode);
  83. typedef void (APIENTRY *glGetTransformFeedbackVaryingPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name);
  84. typedef void (APIENTRY *glBindVertexArrayPROC) (GLuint array);
  85. typedef void (APIENTRY *glDeleteVertexArraysPROC) (GLsizei n, const GLuint * arrays);
  86. typedef void (APIENTRY *glGenVertexArraysPROC) (GLsizei n, GLuint * arrays);
  87. typedef GLboolean (APIENTRY *glIsVertexArrayPROC) (GLuint array);
  88. JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL30_nglGetStringi(JNIEnv *env, jclass clazz, jint name, jint index, jlong function_pointer) {
  89. glGetStringiPROC glGetStringi = (glGetStringiPROC)((intptr_t)function_pointer);
  90. GLubyte * __result = glGetStringi(name, index);
  91. return NewStringNativeUnsigned(env, __result);
  92. }
  93. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglClearBufferfv(JNIEnv *env, jclass clazz, jint buffer, jint drawbuffer, jlong value, jlong function_pointer) {
  94. const GLfloat *value_address = (const GLfloat *)(intptr_t)value;
  95. glClearBufferfvPROC glClearBufferfv = (glClearBufferfvPROC)((intptr_t)function_pointer);
  96. glClearBufferfv(buffer, drawbuffer, value_address);
  97. }
  98. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglClearBufferiv(JNIEnv *env, jclass clazz, jint buffer, jint drawbuffer, jlong value, jlong function_pointer) {
  99. const GLint *value_address = (const GLint *)(intptr_t)value;
  100. glClearBufferivPROC glClearBufferiv = (glClearBufferivPROC)((intptr_t)function_pointer);
  101. glClearBufferiv(buffer, drawbuffer, value_address);
  102. }
  103. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglClearBufferuiv(JNIEnv *env, jclass clazz, jint buffer, jint drawbuffer, jlong value, jlong function_pointer) {
  104. const GLint *value_address = (const GLint *)(intptr_t)value;
  105. glClearBufferuivPROC glClearBufferuiv = (glClearBufferuivPROC)((intptr_t)function_pointer);
  106. glClearBufferuiv(buffer, drawbuffer, value_address);
  107. }
  108. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglClearBufferfi(JNIEnv *env, jclass clazz, jint buffer, jint drawbuffer, jfloat depth, jint stencil, jlong function_pointer) {
  109. glClearBufferfiPROC glClearBufferfi = (glClearBufferfiPROC)((intptr_t)function_pointer);
  110. glClearBufferfi(buffer, drawbuffer, depth, stencil);
  111. }
  112. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI1i(JNIEnv *env, jclass clazz, jint index, jint x, jlong function_pointer) {
  113. glVertexAttribI1iPROC glVertexAttribI1i = (glVertexAttribI1iPROC)((intptr_t)function_pointer);
  114. glVertexAttribI1i(index, x);
  115. }
  116. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI2i(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jlong function_pointer) {
  117. glVertexAttribI2iPROC glVertexAttribI2i = (glVertexAttribI2iPROC)((intptr_t)function_pointer);
  118. glVertexAttribI2i(index, x, y);
  119. }
  120. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI3i(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jlong function_pointer) {
  121. glVertexAttribI3iPROC glVertexAttribI3i = (glVertexAttribI3iPROC)((intptr_t)function_pointer);
  122. glVertexAttribI3i(index, x, y, z);
  123. }
  124. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI4i(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) {
  125. glVertexAttribI4iPROC glVertexAttribI4i = (glVertexAttribI4iPROC)((intptr_t)function_pointer);
  126. glVertexAttribI4i(index, x, y, z, w);
  127. }
  128. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI1ui(JNIEnv *env, jclass clazz, jint index, jint x, jlong function_pointer) {
  129. glVertexAttribI1uiPROC glVertexAttribI1ui = (glVertexAttribI1uiPROC)((intptr_t)function_pointer);
  130. glVertexAttribI1ui(index, x);
  131. }
  132. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI2ui(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jlong function_pointer) {
  133. glVertexAttribI2uiPROC glVertexAttribI2ui = (glVertexAttribI2uiPROC)((intptr_t)function_pointer);
  134. glVertexAttribI2ui(index, x, y);
  135. }
  136. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI3ui(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jlong function_pointer) {
  137. glVertexAttribI3uiPROC glVertexAttribI3ui = (glVertexAttribI3uiPROC)((intptr_t)function_pointer);
  138. glVertexAttribI3ui(index, x, y, z);
  139. }
  140. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI4ui(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) {
  141. glVertexAttribI4uiPROC glVertexAttribI4ui = (glVertexAttribI4uiPROC)((intptr_t)function_pointer);
  142. glVertexAttribI4ui(index, x, y, z, w);
  143. }
  144. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI1iv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  145. const GLint *v_address = (const GLint *)(intptr_t)v;
  146. glVertexAttribI1ivPROC glVertexAttribI1iv = (glVertexAttribI1ivPROC)((intptr_t)function_pointer);
  147. glVertexAttribI1iv(index, v_address);
  148. }
  149. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI2iv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  150. const GLint *v_address = (const GLint *)(intptr_t)v;
  151. glVertexAttribI2ivPROC glVertexAttribI2iv = (glVertexAttribI2ivPROC)((intptr_t)function_pointer);
  152. glVertexAttribI2iv(index, v_address);
  153. }
  154. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI3iv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  155. const GLint *v_address = (const GLint *)(intptr_t)v;
  156. glVertexAttribI3ivPROC glVertexAttribI3iv = (glVertexAttribI3ivPROC)((intptr_t)function_pointer);
  157. glVertexAttribI3iv(index, v_address);
  158. }
  159. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI4iv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  160. const GLint *v_address = (const GLint *)(intptr_t)v;
  161. glVertexAttribI4ivPROC glVertexAttribI4iv = (glVertexAttribI4ivPROC)((intptr_t)function_pointer);
  162. glVertexAttribI4iv(index, v_address);
  163. }
  164. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI1uiv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  165. const GLuint *v_address = (const GLuint *)(intptr_t)v;
  166. glVertexAttribI1uivPROC glVertexAttribI1uiv = (glVertexAttribI1uivPROC)((intptr_t)function_pointer);
  167. glVertexAttribI1uiv(index, v_address);
  168. }
  169. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI2uiv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  170. const GLuint *v_address = (const GLuint *)(intptr_t)v;
  171. glVertexAttribI2uivPROC glVertexAttribI2uiv = (glVertexAttribI2uivPROC)((intptr_t)function_pointer);
  172. glVertexAttribI2uiv(index, v_address);
  173. }
  174. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI3uiv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  175. const GLuint *v_address = (const GLuint *)(intptr_t)v;
  176. glVertexAttribI3uivPROC glVertexAttribI3uiv = (glVertexAttribI3uivPROC)((intptr_t)function_pointer);
  177. glVertexAttribI3uiv(index, v_address);
  178. }
  179. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI4uiv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  180. const GLuint *v_address = (const GLuint *)(intptr_t)v;
  181. glVertexAttribI4uivPROC glVertexAttribI4uiv = (glVertexAttribI4uivPROC)((intptr_t)function_pointer);
  182. glVertexAttribI4uiv(index, v_address);
  183. }
  184. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI4bv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  185. const GLbyte *v_address = (const GLbyte *)(intptr_t)v;
  186. glVertexAttribI4bvPROC glVertexAttribI4bv = (glVertexAttribI4bvPROC)((intptr_t)function_pointer);
  187. glVertexAttribI4bv(index, v_address);
  188. }
  189. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI4sv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  190. const GLshort *v_address = (const GLshort *)(intptr_t)v;
  191. glVertexAttribI4svPROC glVertexAttribI4sv = (glVertexAttribI4svPROC)((intptr_t)function_pointer);
  192. glVertexAttribI4sv(index, v_address);
  193. }
  194. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI4ubv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  195. const GLubyte *v_address = (const GLubyte *)(intptr_t)v;
  196. glVertexAttribI4ubvPROC glVertexAttribI4ubv = (glVertexAttribI4ubvPROC)((intptr_t)function_pointer);
  197. glVertexAttribI4ubv(index, v_address);
  198. }
  199. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribI4usv(JNIEnv *env, jclass clazz, jint index, jlong v, jlong function_pointer) {
  200. const GLushort *v_address = (const GLushort *)(intptr_t)v;
  201. glVertexAttribI4usvPROC glVertexAttribI4usv = (glVertexAttribI4usvPROC)((intptr_t)function_pointer);
  202. glVertexAttribI4usv(index, v_address);
  203. }
  204. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribIPointer(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jlong buffer, jlong function_pointer) {
  205. const GLvoid *buffer_address = (const GLvoid *)(intptr_t)buffer;
  206. glVertexAttribIPointerPROC glVertexAttribIPointer = (glVertexAttribIPointerPROC)((intptr_t)function_pointer);
  207. glVertexAttribIPointer(index, size, type, stride, buffer_address);
  208. }
  209. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglVertexAttribIPointerBO(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jlong buffer_buffer_offset, jlong function_pointer) {
  210. const GLvoid *buffer_address = (const GLvoid *)(intptr_t)offsetToPointer(buffer_buffer_offset);
  211. glVertexAttribIPointerPROC glVertexAttribIPointer = (glVertexAttribIPointerPROC)((intptr_t)function_pointer);
  212. glVertexAttribIPointer(index, size, type, stride, buffer_address);
  213. }
  214. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetVertexAttribIiv(JNIEnv *env, jclass clazz, jint index, jint pname, jlong params, jlong function_pointer) {
  215. GLint *params_address = (GLint *)(intptr_t)params;
  216. glGetVertexAttribIivPROC glGetVertexAttribIiv = (glGetVertexAttribIivPROC)((intptr_t)function_pointer);
  217. glGetVertexAttribIiv(index, pname, params_address);
  218. }
  219. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetVertexAttribIuiv(JNIEnv *env, jclass clazz, jint index, jint pname, jlong params, jlong function_pointer) {
  220. GLuint *params_address = (GLuint *)(intptr_t)params;
  221. glGetVertexAttribIuivPROC glGetVertexAttribIuiv = (glGetVertexAttribIuivPROC)((intptr_t)function_pointer);
  222. glGetVertexAttribIuiv(index, pname, params_address);
  223. }
  224. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglUniform1ui(JNIEnv *env, jclass clazz, jint location, jint v0, jlong function_pointer) {
  225. glUniform1uiPROC glUniform1ui = (glUniform1uiPROC)((intptr_t)function_pointer);
  226. glUniform1ui(location, v0);
  227. }
  228. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglUniform2ui(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jlong function_pointer) {
  229. glUniform2uiPROC glUniform2ui = (glUniform2uiPROC)((intptr_t)function_pointer);
  230. glUniform2ui(location, v0, v1);
  231. }
  232. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglUniform3ui(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jlong function_pointer) {
  233. glUniform3uiPROC glUniform3ui = (glUniform3uiPROC)((intptr_t)function_pointer);
  234. glUniform3ui(location, v0, v1, v2);
  235. }
  236. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglUniform4ui(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3, jlong function_pointer) {
  237. glUniform4uiPROC glUniform4ui = (glUniform4uiPROC)((intptr_t)function_pointer);
  238. glUniform4ui(location, v0, v1, v2, v3);
  239. }
  240. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglUniform1uiv(JNIEnv *env, jclass clazz, jint location, jint count, jlong value, jlong function_pointer) {
  241. const GLuint *value_address = (const GLuint *)(intptr_t)value;
  242. glUniform1uivPROC glUniform1uiv = (glUniform1uivPROC)((intptr_t)function_pointer);
  243. glUniform1uiv(location, count, value_address);
  244. }
  245. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglUniform2uiv(JNIEnv *env, jclass clazz, jint location, jint count, jlong value, jlong function_pointer) {
  246. const GLuint *value_address = (const GLuint *)(intptr_t)value;
  247. glUniform2uivPROC glUniform2uiv = (glUniform2uivPROC)((intptr_t)function_pointer);
  248. glUniform2uiv(location, count, value_address);
  249. }
  250. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglUniform3uiv(JNIEnv *env, jclass clazz, jint location, jint count, jlong value, jlong function_pointer) {
  251. const GLuint *value_address = (const GLuint *)(intptr_t)value;
  252. glUniform3uivPROC glUniform3uiv = (glUniform3uivPROC)((intptr_t)function_pointer);
  253. glUniform3uiv(location, count, value_address);
  254. }
  255. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglUniform4uiv(JNIEnv *env, jclass clazz, jint location, jint count, jlong value, jlong function_pointer) {
  256. const GLuint *value_address = (const GLuint *)(intptr_t)value;
  257. glUniform4uivPROC glUniform4uiv = (glUniform4uivPROC)((intptr_t)function_pointer);
  258. glUniform4uiv(location, count, value_address);
  259. }
  260. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetUniformuiv(JNIEnv *env, jclass clazz, jint program, jint location, jlong params, jlong function_pointer) {
  261. GLuint *params_address = (GLuint *)(intptr_t)params;
  262. glGetUniformuivPROC glGetUniformuiv = (glGetUniformuivPROC)((intptr_t)function_pointer);
  263. glGetUniformuiv(program, location, params_address);
  264. }
  265. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBindFragDataLocation(JNIEnv *env, jclass clazz, jint program, jint colorNumber, jlong name, jlong function_pointer) {
  266. const GLchar *name_address = (const GLchar *)(intptr_t)name;
  267. glBindFragDataLocationPROC glBindFragDataLocation = (glBindFragDataLocationPROC)((intptr_t)function_pointer);
  268. glBindFragDataLocation(program, colorNumber, name_address);
  269. }
  270. JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL30_nglGetFragDataLocation(JNIEnv *env, jclass clazz, jint program, jlong name, jlong function_pointer) {
  271. const GLchar *name_address = (const GLchar *)(intptr_t)name;
  272. glGetFragDataLocationPROC glGetFragDataLocation = (glGetFragDataLocationPROC)((intptr_t)function_pointer);
  273. GLint __result = glGetFragDataLocation(program, name_address);
  274. return __result;
  275. }
  276. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBeginConditionalRender(JNIEnv *env, jclass clazz, jint id, jint mode, jlong function_pointer) {
  277. glBeginConditionalRenderPROC glBeginConditionalRender = (glBeginConditionalRenderPROC)((intptr_t)function_pointer);
  278. glBeginConditionalRender(id, mode);
  279. }
  280. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglEndConditionalRender(JNIEnv *env, jclass clazz, jlong function_pointer) {
  281. glEndConditionalRenderPROC glEndConditionalRender = (glEndConditionalRenderPROC)((intptr_t)function_pointer);
  282. glEndConditionalRender();
  283. }
  284. JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL30_nglMapBufferRange(JNIEnv *env, jclass clazz, jint target, jlong offset, jlong length, jint access, jobject old_buffer, jlong function_pointer) {
  285. glMapBufferRangePROC glMapBufferRange = (glMapBufferRangePROC)((intptr_t)function_pointer);
  286. GLvoid * __result = glMapBufferRange(target, offset, length, access);
  287. return safeNewBufferCached(env, __result, length, old_buffer);
  288. }
  289. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglFlushMappedBufferRange(JNIEnv *env, jclass clazz, jint target, jlong offset, jlong length, jlong function_pointer) {
  290. glFlushMappedBufferRangePROC glFlushMappedBufferRange = (glFlushMappedBufferRangePROC)((intptr_t)function_pointer);
  291. glFlushMappedBufferRange(target, offset, length);
  292. }
  293. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglClampColor(JNIEnv *env, jclass clazz, jint target, jint clamp, jlong function_pointer) {
  294. glClampColorPROC glClampColor = (glClampColorPROC)((intptr_t)function_pointer);
  295. glClampColor(target, clamp);
  296. }
  297. JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL30_nglIsRenderbuffer(JNIEnv *env, jclass clazz, jint renderbuffer, jlong function_pointer) {
  298. glIsRenderbufferPROC glIsRenderbuffer = (glIsRenderbufferPROC)((intptr_t)function_pointer);
  299. GLboolean __result = glIsRenderbuffer(renderbuffer);
  300. return __result;
  301. }
  302. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBindRenderbuffer(JNIEnv *env, jclass clazz, jint target, jint renderbuffer, jlong function_pointer) {
  303. glBindRenderbufferPROC glBindRenderbuffer = (glBindRenderbufferPROC)((intptr_t)function_pointer);
  304. glBindRenderbuffer(target, renderbuffer);
  305. }
  306. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglDeleteRenderbuffers(JNIEnv *env, jclass clazz, jint n, jlong renderbuffers, jlong function_pointer) {
  307. const GLuint *renderbuffers_address = (const GLuint *)(intptr_t)renderbuffers;
  308. glDeleteRenderbuffersPROC glDeleteRenderbuffers = (glDeleteRenderbuffersPROC)((intptr_t)function_pointer);
  309. glDeleteRenderbuffers(n, renderbuffers_address);
  310. }
  311. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGenRenderbuffers(JNIEnv *env, jclass clazz, jint n, jlong renderbuffers, jlong function_pointer) {
  312. GLuint *renderbuffers_address = (GLuint *)(intptr_t)renderbuffers;
  313. glGenRenderbuffersPROC glGenRenderbuffers = (glGenRenderbuffersPROC)((intptr_t)function_pointer);
  314. glGenRenderbuffers(n, renderbuffers_address);
  315. }
  316. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglRenderbufferStorage(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jlong function_pointer) {
  317. glRenderbufferStoragePROC glRenderbufferStorage = (glRenderbufferStoragePROC)((intptr_t)function_pointer);
  318. glRenderbufferStorage(target, internalformat, width, height);
  319. }
  320. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetRenderbufferParameteriv(JNIEnv *env, jclass clazz, jint target, jint pname, jlong params, jlong function_pointer) {
  321. GLint *params_address = (GLint *)(intptr_t)params;
  322. glGetRenderbufferParameterivPROC glGetRenderbufferParameteriv = (glGetRenderbufferParameterivPROC)((intptr_t)function_pointer);
  323. glGetRenderbufferParameteriv(target, pname, params_address);
  324. }
  325. JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL30_nglIsFramebuffer(JNIEnv *env, jclass clazz, jint framebuffer, jlong function_pointer) {
  326. glIsFramebufferPROC glIsFramebuffer = (glIsFramebufferPROC)((intptr_t)function_pointer);
  327. GLboolean __result = glIsFramebuffer(framebuffer);
  328. return __result;
  329. }
  330. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBindFramebuffer(JNIEnv *env, jclass clazz, jint target, jint framebuffer, jlong function_pointer) {
  331. glBindFramebufferPROC glBindFramebuffer = (glBindFramebufferPROC)((intptr_t)function_pointer);
  332. glBindFramebuffer(target, framebuffer);
  333. }
  334. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglDeleteFramebuffers(JNIEnv *env, jclass clazz, jint n, jlong framebuffers, jlong function_pointer) {
  335. const GLuint *framebuffers_address = (const GLuint *)(intptr_t)framebuffers;
  336. glDeleteFramebuffersPROC glDeleteFramebuffers = (glDeleteFramebuffersPROC)((intptr_t)function_pointer);
  337. glDeleteFramebuffers(n, framebuffers_address);
  338. }
  339. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGenFramebuffers(JNIEnv *env, jclass clazz, jint n, jlong framebuffers, jlong function_pointer) {
  340. GLuint *framebuffers_address = (GLuint *)(intptr_t)framebuffers;
  341. glGenFramebuffersPROC glGenFramebuffers = (glGenFramebuffersPROC)((intptr_t)function_pointer);
  342. glGenFramebuffers(n, framebuffers_address);
  343. }
  344. JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL30_nglCheckFramebufferStatus(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
  345. glCheckFramebufferStatusPROC glCheckFramebufferStatus = (glCheckFramebufferStatusPROC)((intptr_t)function_pointer);
  346. GLenum __result = glCheckFramebufferStatus(target);
  347. return __result;
  348. }
  349. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglFramebufferTexture1D(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jlong function_pointer) {
  350. glFramebufferTexture1DPROC glFramebufferTexture1D = (glFramebufferTexture1DPROC)((intptr_t)function_pointer);
  351. glFramebufferTexture1D(target, attachment, textarget, texture, level);
  352. }
  353. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglFramebufferTexture2D(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jlong function_pointer) {
  354. glFramebufferTexture2DPROC glFramebufferTexture2D = (glFramebufferTexture2DPROC)((intptr_t)function_pointer);
  355. glFramebufferTexture2D(target, attachment, textarget, texture, level);
  356. }
  357. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglFramebufferTexture3D(JNIEnv *env, jclass clazz, jint target, jint attachment, jint textarget, jint texture, jint level, jint zoffset, jlong function_pointer) {
  358. glFramebufferTexture3DPROC glFramebufferTexture3D = (glFramebufferTexture3DPROC)((intptr_t)function_pointer);
  359. glFramebufferTexture3D(target, attachment, textarget, texture, level, zoffset);
  360. }
  361. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglFramebufferRenderbuffer(JNIEnv *env, jclass clazz, jint target, jint attachment, jint renderbuffertarget, jint renderbuffer, jlong function_pointer) {
  362. glFramebufferRenderbufferPROC glFramebufferRenderbuffer = (glFramebufferRenderbufferPROC)((intptr_t)function_pointer);
  363. glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
  364. }
  365. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetFramebufferAttachmentParameteriv(JNIEnv *env, jclass clazz, jint target, jint attachment, jint pname, jlong params, jlong function_pointer) {
  366. GLint *params_address = (GLint *)(intptr_t)params;
  367. glGetFramebufferAttachmentParameterivPROC glGetFramebufferAttachmentParameteriv = (glGetFramebufferAttachmentParameterivPROC)((intptr_t)function_pointer);
  368. glGetFramebufferAttachmentParameteriv(target, attachment, pname, params_address);
  369. }
  370. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGenerateMipmap(JNIEnv *env, jclass clazz, jint target, jlong function_pointer) {
  371. glGenerateMipmapPROC glGenerateMipmap = (glGenerateMipmapPROC)((intptr_t)function_pointer);
  372. glGenerateMipmap(target);
  373. }
  374. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglRenderbufferStorageMultisample(JNIEnv *env, jclass clazz, jint target, jint samples, jint internalformat, jint width, jint height, jlong function_pointer) {
  375. glRenderbufferStorageMultisamplePROC glRenderbufferStorageMultisample = (glRenderbufferStorageMultisamplePROC)((intptr_t)function_pointer);
  376. glRenderbufferStorageMultisample(target, samples, internalformat, width, height);
  377. }
  378. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBlitFramebuffer(JNIEnv *env, jclass clazz, jint srcX0, jint srcY0, jint srcX1, jint srcY1, jint dstX0, jint dstY0, jint dstX1, jint dstY1, jint mask, jint filter, jlong function_pointer) {
  379. glBlitFramebufferPROC glBlitFramebuffer = (glBlitFramebufferPROC)((intptr_t)function_pointer);
  380. glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
  381. }
  382. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglTexParameterIiv(JNIEnv *env, jclass clazz, jint target, jint pname, jlong params, jlong function_pointer) {
  383. GLint *params_address = (GLint *)(intptr_t)params;
  384. glTexParameterIivPROC glTexParameterIiv = (glTexParameterIivPROC)((intptr_t)function_pointer);
  385. glTexParameterIiv(target, pname, params_address);
  386. }
  387. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglTexParameterIuiv(JNIEnv *env, jclass clazz, jint target, jint pname, jlong params, jlong function_pointer) {
  388. GLuint *params_address = (GLuint *)(intptr_t)params;
  389. glTexParameterIuivPROC glTexParameterIuiv = (glTexParameterIuivPROC)((intptr_t)function_pointer);
  390. glTexParameterIuiv(target, pname, params_address);
  391. }
  392. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetTexParameterIiv(JNIEnv *env, jclass clazz, jint target, jint pname, jlong params, jlong function_pointer) {
  393. GLint *params_address = (GLint *)(intptr_t)params;
  394. glGetTexParameterIivPROC glGetTexParameterIiv = (glGetTexParameterIivPROC)((intptr_t)function_pointer);
  395. glGetTexParameterIiv(target, pname, params_address);
  396. }
  397. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetTexParameterIuiv(JNIEnv *env, jclass clazz, jint target, jint pname, jlong params, jlong function_pointer) {
  398. GLuint *params_address = (GLuint *)(intptr_t)params;
  399. glGetTexParameterIuivPROC glGetTexParameterIuiv = (glGetTexParameterIuivPROC)((intptr_t)function_pointer);
  400. glGetTexParameterIuiv(target, pname, params_address);
  401. }
  402. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglFramebufferTextureLayer(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint layer, jlong function_pointer) {
  403. glFramebufferTextureLayerPROC glFramebufferTextureLayer = (glFramebufferTextureLayerPROC)((intptr_t)function_pointer);
  404. glFramebufferTextureLayer(target, attachment, texture, level, layer);
  405. }
  406. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglColorMaski(JNIEnv *env, jclass clazz, jint buf, jboolean r, jboolean g, jboolean b, jboolean a, jlong function_pointer) {
  407. glColorMaskiPROC glColorMaski = (glColorMaskiPROC)((intptr_t)function_pointer);
  408. glColorMaski(buf, r, g, b, a);
  409. }
  410. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetBooleani_v(JNIEnv *env, jclass clazz, jint value, jint index, jlong data, jlong function_pointer) {
  411. GLboolean *data_address = (GLboolean *)(intptr_t)data;
  412. glGetBooleani_vPROC glGetBooleani_v = (glGetBooleani_vPROC)((intptr_t)function_pointer);
  413. glGetBooleani_v(value, index, data_address);
  414. }
  415. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetIntegeri_v(JNIEnv *env, jclass clazz, jint value, jint index, jlong data, jlong function_pointer) {
  416. GLint *data_address = (GLint *)(intptr_t)data;
  417. glGetIntegeri_vPROC glGetIntegeri_v = (glGetIntegeri_vPROC)((intptr_t)function_pointer);
  418. glGetIntegeri_v(value, index, data_address);
  419. }
  420. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglEnablei(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) {
  421. glEnableiPROC glEnablei = (glEnableiPROC)((intptr_t)function_pointer);
  422. glEnablei(target, index);
  423. }
  424. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglDisablei(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) {
  425. glDisableiPROC glDisablei = (glDisableiPROC)((intptr_t)function_pointer);
  426. glDisablei(target, index);
  427. }
  428. JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL30_nglIsEnabledi(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) {
  429. glIsEnablediPROC glIsEnabledi = (glIsEnablediPROC)((intptr_t)function_pointer);
  430. GLboolean __result = glIsEnabledi(target, index);
  431. return __result;
  432. }
  433. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBindBufferRange(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong size, jlong function_pointer) {
  434. glBindBufferRangePROC glBindBufferRange = (glBindBufferRangePROC)((intptr_t)function_pointer);
  435. glBindBufferRange(target, index, buffer, offset, size);
  436. }
  437. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBindBufferBase(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong function_pointer) {
  438. glBindBufferBasePROC glBindBufferBase = (glBindBufferBasePROC)((intptr_t)function_pointer);
  439. glBindBufferBase(target, index, buffer);
  440. }
  441. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBeginTransformFeedback(JNIEnv *env, jclass clazz, jint primitiveMode, jlong function_pointer) {
  442. glBeginTransformFeedbackPROC glBeginTransformFeedback = (glBeginTransformFeedbackPROC)((intptr_t)function_pointer);
  443. glBeginTransformFeedback(primitiveMode);
  444. }
  445. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglEndTransformFeedback(JNIEnv *env, jclass clazz, jlong function_pointer) {
  446. glEndTransformFeedbackPROC glEndTransformFeedback = (glEndTransformFeedbackPROC)((intptr_t)function_pointer);
  447. glEndTransformFeedback();
  448. }
  449. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglTransformFeedbackVaryings(JNIEnv *env, jclass clazz, jint program, jint count, jlong varyings, jint bufferMode, jlong function_pointer) {
  450. const GLchar *varyings_address = (const GLchar *)(intptr_t)varyings;
  451. unsigned int _str_i;
  452. GLchar *_str_address;
  453. GLchar **varyings_str = (GLchar **) malloc(count * sizeof(GLchar *));
  454. glTransformFeedbackVaryingsPROC glTransformFeedbackVaryings = (glTransformFeedbackVaryingsPROC)((intptr_t)function_pointer);
  455. _str_i = 0;
  456. _str_address = (GLchar *)varyings_address;
  457. while ( _str_i < count ) {
  458. varyings_str[_str_i++] = _str_address;
  459. _str_address += strlen(_str_address) + 1;
  460. }
  461. glTransformFeedbackVaryings(program, count, (const GLchar **)varyings_str, bufferMode);
  462. free(varyings_str);
  463. }
  464. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGetTransformFeedbackVarying(JNIEnv *env, jclass clazz, jint program, jint index, jint bufSize, jlong length, jlong size, jlong type, jlong name, jlong function_pointer) {
  465. GLsizei *length_address = (GLsizei *)(intptr_t)length;
  466. GLsizei *size_address = (GLsizei *)(intptr_t)size;
  467. GLenum *type_address = (GLenum *)(intptr_t)type;
  468. GLchar *name_address = (GLchar *)(intptr_t)name;
  469. glGetTransformFeedbackVaryingPROC glGetTransformFeedbackVarying = (glGetTransformFeedbackVaryingPROC)((intptr_t)function_pointer);
  470. glGetTransformFeedbackVarying(program, index, bufSize, length_address, size_address, type_address, name_address);
  471. }
  472. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglBindVertexArray(JNIEnv *env, jclass clazz, jint array, jlong function_pointer) {
  473. glBindVertexArrayPROC glBindVertexArray = (glBindVertexArrayPROC)((intptr_t)function_pointer);
  474. glBindVertexArray(array);
  475. }
  476. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglDeleteVertexArrays(JNIEnv *env, jclass clazz, jint n, jlong arrays, jlong function_pointer) {
  477. const GLuint *arrays_address = (const GLuint *)(intptr_t)arrays;
  478. glDeleteVertexArraysPROC glDeleteVertexArrays = (glDeleteVertexArraysPROC)((intptr_t)function_pointer);
  479. glDeleteVertexArrays(n, arrays_address);
  480. }
  481. JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL30_nglGenVertexArrays(JNIEnv *env, jclass clazz, jint n, jlong arrays, jlong function_pointer) {
  482. GLuint *arrays_address = (GLuint *)(intptr_t)arrays;
  483. glGenVertexArraysPROC glGenVertexArrays = (glGenVertexArraysPROC)((intptr_t)function_pointer);
  484. glGenVertexArrays(n, arrays_address);
  485. }
  486. JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL30_nglIsVertexArray(JNIEnv *env, jclass clazz, jint array, jlong function_pointer) {
  487. glIsVertexArrayPROC glIsVertexArray = (glIsVertexArrayPROC)((intptr_t)function_pointer);
  488. GLboolean __result = glIsVertexArray(array);
  489. return __result;
  490. }