PageRenderTime 31ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/game_platform/lib/lwjgl-2.8.5/src/native/generated/opengles/org_lwjgl_opengles_GLES30.c

https://bitbucket.org/dagronlund/opengl-game-platform
C | 885 lines | 768 code | 116 blank | 1 comment | 2 complexity | 7f8132e2fc6abe6c55cd26aed996b5c3 MD5 | raw file

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

  1. /* MACHINE GENERATED FILE, DO NOT EDIT */
  2. #include <jni.h>
  3. #include "extgl.h"
  4. typedef GL_APICALL void (GL_APIENTRY *glReadBufferPROC) (GLenum mode);
  5. typedef GL_APICALL void (GL_APIENTRY *glDrawRangeElementsPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices);
  6. typedef GL_APICALL void (GL_APIENTRY *glTexImage3DPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
  7. typedef GL_APICALL void (GL_APIENTRY *glTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
  8. typedef GL_APICALL void (GL_APIENTRY *glCopyTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  9. typedef GL_APICALL void (GL_APIENTRY *glCompressedTexImage3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * data);
  10. typedef GL_APICALL void (GL_APIENTRY *glCompressedTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * data);
  11. typedef GL_APICALL void (GL_APIENTRY *glGenQueriesPROC) (GLsizei n, GLuint * ids);
  12. typedef GL_APICALL void (GL_APIENTRY *glDeleteQueriesPROC) (GLsizei n, GLuint * ids);
  13. typedef GL_APICALL GLboolean (GL_APIENTRY *glIsQueryPROC) (GLuint id);
  14. typedef GL_APICALL void (GL_APIENTRY *glBeginQueryPROC) (GLenum target, GLuint id);
  15. typedef GL_APICALL void (GL_APIENTRY *glEndQueryPROC) (GLenum target);
  16. typedef GL_APICALL void (GL_APIENTRY *glGetQueryivPROC) (GLenum target, GLenum pname, GLint * params);
  17. typedef GL_APICALL void (GL_APIENTRY *glGetQueryObjectuivPROC) (GLenum id, GLenum pname, GLuint * params);
  18. typedef GL_APICALL GLboolean (GL_APIENTRY *glUnmapBufferPROC) (GLenum target);
  19. typedef GL_APICALL void (GL_APIENTRY *glGetBufferPointervPROC) (GLenum target, GLenum pname, GLvoid ** pointer);
  20. typedef GL_APICALL void (GL_APIENTRY *glDrawBuffersPROC) (GLsizei size, const GLenum * buffers);
  21. typedef GL_APICALL void (GL_APIENTRY *glUniformMatrix2x3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
  22. typedef GL_APICALL void (GL_APIENTRY *glUniformMatrix3x2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
  23. typedef GL_APICALL void (GL_APIENTRY *glUniformMatrix2x4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
  24. typedef GL_APICALL void (GL_APIENTRY *glUniformMatrix4x2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
  25. typedef GL_APICALL void (GL_APIENTRY *glUniformMatrix3x4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
  26. typedef GL_APICALL void (GL_APIENTRY *glUniformMatrix4x3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices);
  27. typedef GL_APICALL void (GL_APIENTRY *glBlitFramebufferPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  28. typedef GL_APICALL void (GL_APIENTRY *glRenderbufferStorageMultisamplePROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  29. typedef GL_APICALL void (GL_APIENTRY *glFramebufferTextureLayerPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  30. typedef GL_APICALL GLvoid * (GL_APIENTRY *glMapBufferRangePROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  31. typedef GL_APICALL void (GL_APIENTRY *glFlushMappedBufferRangePROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  32. typedef GL_APICALL void (GL_APIENTRY *glBindVertexArrayPROC) (GLuint array);
  33. typedef GL_APICALL void (GL_APIENTRY *glDeleteVertexArraysPROC) (GLsizei n, const GLuint * arrays);
  34. typedef GL_APICALL void (GL_APIENTRY *glGenVertexArraysPROC) (GLsizei n, GLuint * arrays);
  35. typedef GL_APICALL GLboolean (GL_APIENTRY *glIsVertexArrayPROC) (GLuint array);
  36. typedef GL_APICALL void (GL_APIENTRY *glGetIntegeri_vPROC) (GLenum value, GLuint index, GLint * data);
  37. typedef GL_APICALL void (GL_APIENTRY *glBeginTransformFeedbackPROC) (GLenum primitiveMode);
  38. typedef GL_APICALL void (GL_APIENTRY *glEndTransformFeedbackPROC) ();
  39. typedef GL_APICALL void (GL_APIENTRY *glBindBufferRangePROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  40. typedef GL_APICALL void (GL_APIENTRY *glBindBufferBasePROC) (GLenum target, GLuint index, GLuint buffer);
  41. typedef GL_APICALL void (GL_APIENTRY *glTransformFeedbackVaryingsPROC) (GLuint program, GLsizei count, const GLchar ** varyings, GLenum bufferMode);
  42. typedef GL_APICALL void (GL_APIENTRY *glGetTransformFeedbackVaryingPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name);
  43. typedef GL_APICALL void (GL_APIENTRY *glVertexAttribIPointerPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * buffer);
  44. typedef GL_APICALL void (GL_APIENTRY *glGetVertexAttribIivPROC) (GLuint index, GLenum pname, GLint * params);
  45. typedef GL_APICALL void (GL_APIENTRY *glGetVertexAttribIuivPROC) (GLuint index, GLenum pname, GLuint * params);
  46. typedef GL_APICALL void (GL_APIENTRY *glVertexAttribI4iPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
  47. typedef GL_APICALL void (GL_APIENTRY *glVertexAttribI4uiPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  48. typedef GL_APICALL void (GL_APIENTRY *glVertexAttribI4ivPROC) (GLuint index, const GLint * v);
  49. typedef GL_APICALL void (GL_APIENTRY *glVertexAttribI4uivPROC) (GLuint index, const GLuint * v);
  50. typedef GL_APICALL void (GL_APIENTRY *glGetUniformuivPROC) (GLuint program, GLint location, GLuint * params);
  51. typedef GL_APICALL GLint (GL_APIENTRY *glGetFragDataLocationPROC) (GLuint program, const GLchar * name);
  52. typedef GL_APICALL void (GL_APIENTRY *glUniform1uiPROC) (GLint location, GLuint v0);
  53. typedef GL_APICALL void (GL_APIENTRY *glUniform2uiPROC) (GLint location, GLuint v0, GLuint v1);
  54. typedef GL_APICALL void (GL_APIENTRY *glUniform3uiPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
  55. typedef GL_APICALL void (GL_APIENTRY *glUniform4uiPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  56. typedef GL_APICALL void (GL_APIENTRY *glUniform1uivPROC) (GLint location, GLsizei count, const GLuint * value);
  57. typedef GL_APICALL void (GL_APIENTRY *glUniform2uivPROC) (GLint location, GLsizei count, const GLuint * value);
  58. typedef GL_APICALL void (GL_APIENTRY *glUniform3uivPROC) (GLint location, GLsizei count, const GLuint * value);
  59. typedef GL_APICALL void (GL_APIENTRY *glUniform4uivPROC) (GLint location, GLsizei count, const GLuint * value);
  60. typedef GL_APICALL void (GL_APIENTRY *glClearBufferfvPROC) (GLenum buffer, GLint drawbuffer, const GLfloat * value);
  61. typedef GL_APICALL void (GL_APIENTRY *glClearBufferivPROC) (GLenum buffer, GLint drawbuffer, const GLint * value);
  62. typedef GL_APICALL void (GL_APIENTRY *glClearBufferuivPROC) (GLenum buffer, GLint drawbuffer, const GLint * value);
  63. typedef GL_APICALL void (GL_APIENTRY *glClearBufferfiPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  64. typedef GL_APICALL GLubyte * (GL_APIENTRY *glGetStringiPROC) (GLenum name, GLuint index);
  65. typedef GL_APICALL void (GL_APIENTRY *glCopyBufferSubDataPROC) (GLenum readtarget, GLenum writetarget, GLintptr readoffset, GLintptr writeoffset, GLsizeiptr size);
  66. typedef GL_APICALL void (GL_APIENTRY *glGetUniformIndicesPROC) (GLuint program, GLsizei uniformCount, const GLchar ** uniformNames, GLuint * uniformIndices);
  67. typedef GL_APICALL void (GL_APIENTRY *glGetActiveUniformsivPROC) (GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params);
  68. typedef GL_APICALL GLuint (GL_APIENTRY *glGetUniformBlockIndexPROC) (GLuint program, const GLchar * uniformBlockName);
  69. typedef GL_APICALL void (GL_APIENTRY *glGetActiveUniformBlockivPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params);
  70. typedef GL_APICALL void (GL_APIENTRY *glGetActiveUniformBlockNamePROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName);
  71. typedef GL_APICALL void (GL_APIENTRY *glUniformBlockBindingPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
  72. typedef GL_APICALL void (GL_APIENTRY *glDrawArraysInstancedPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  73. typedef GL_APICALL void (GL_APIENTRY *glDrawElementsInstancedPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid * indices, GLsizei primcount);
  74. typedef GL_APICALL GLsync (GL_APIENTRY *glFenceSyncPROC) (GLenum condition, GLbitfield flags);
  75. typedef GL_APICALL GLboolean (GL_APIENTRY *glIsSyncPROC) (GLsync sync);
  76. typedef GL_APICALL void (GL_APIENTRY *glDeleteSyncPROC) (GLsync sync);
  77. typedef GL_APICALL GLenum (GL_APIENTRY *glClientWaitSyncPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  78. typedef GL_APICALL void (GL_APIENTRY *glWaitSyncPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  79. typedef GL_APICALL void (GL_APIENTRY *glGetInteger64vPROC) (GLenum pname, GLint64 * data);
  80. typedef GL_APICALL void (GL_APIENTRY *glGetInteger64i_vPROC) (GLenum value, GLuint index, GLint64 * data);
  81. typedef GL_APICALL void (GL_APIENTRY *glGetSyncivPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values);
  82. typedef GL_APICALL void (GL_APIENTRY *glGetBufferParameteri64vPROC) (GLenum target, GLenum pname, GLint64 * params);
  83. typedef GL_APICALL void (GL_APIENTRY *glGenSamplersPROC) (GLsizei count, GLuint * samplers);
  84. typedef GL_APICALL void (GL_APIENTRY *glDeleteSamplersPROC) (GLsizei count, const GLuint * samplers);
  85. typedef GL_APICALL GLboolean (GL_APIENTRY *glIsSamplerPROC) (GLuint sampler);
  86. typedef GL_APICALL void (GL_APIENTRY *glBindSamplerPROC) (GLenum unit, GLuint sampler);
  87. typedef GL_APICALL void (GL_APIENTRY *glSamplerParameteriPROC) (GLuint sampler, GLenum pname, GLint param);
  88. typedef GL_APICALL void (GL_APIENTRY *glSamplerParameterfPROC) (GLuint sampler, GLenum pname, GLfloat param);
  89. typedef GL_APICALL void (GL_APIENTRY *glSamplerParameterivPROC) (GLuint sampler, GLenum pname, const GLint * params);
  90. typedef GL_APICALL void (GL_APIENTRY *glSamplerParameterfvPROC) (GLuint sampler, GLenum pname, const GLfloat * params);
  91. typedef GL_APICALL void (GL_APIENTRY *glGetSamplerParameterivPROC) (GLuint sampler, GLenum pname, GLint * params);
  92. typedef GL_APICALL void (GL_APIENTRY *glGetSamplerParameterfvPROC) (GLuint sampler, GLenum pname, GLfloat * params);
  93. typedef GL_APICALL void (GL_APIENTRY *glVertexAttribDivisorPROC) (GLuint index, GLuint divisor);
  94. typedef GL_APICALL void (GL_APIENTRY *glBindTransformFeedbackPROC) (GLenum target, GLuint id);
  95. typedef GL_APICALL void (GL_APIENTRY *glDeleteTransformFeedbacksPROC) (GLsizei n, const GLuint * ids);
  96. typedef GL_APICALL void (GL_APIENTRY *glGenTransformFeedbacksPROC) (GLsizei n, GLuint * ids);
  97. typedef GL_APICALL GLboolean (GL_APIENTRY *glIsTransformFeedbackPROC) (GLuint id);
  98. typedef GL_APICALL void (GL_APIENTRY *glPauseTransformFeedbackPROC) ();
  99. typedef GL_APICALL void (GL_APIENTRY *glResumeTransformFeedbackPROC) ();
  100. typedef GL_APICALL void (GL_APIENTRY *glGetProgramBinaryPROC) (GLuint program, GLsizei bufSize, GLsizei * length, GLenum * binaryFormat, GLvoid * binary);
  101. typedef GL_APICALL void (GL_APIENTRY *glProgramBinaryPROC) (GLuint program, GLenum binaryFormat, const GLvoid * binary, GLsizei length);
  102. typedef GL_APICALL void (GL_APIENTRY *glProgramParameteriPROC) (GLuint program, GLenum pname, GLint value);
  103. typedef GL_APICALL void (GL_APIENTRY *glInvalidateFramebufferPROC) (GLenum target, GLsizei numAttachments, const GLenum * attachments);
  104. typedef GL_APICALL void (GL_APIENTRY *glInvalidateSubFramebufferPROC) (GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height);
  105. typedef GL_APICALL void (GL_APIENTRY *glTexStorage2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  106. typedef GL_APICALL void (GL_APIENTRY *glTexStorage3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  107. typedef GL_APICALL void (GL_APIENTRY *glGetInternalformativPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint * params);
  108. static glReadBufferPROC glReadBuffer;
  109. static glDrawRangeElementsPROC glDrawRangeElements;
  110. static glTexImage3DPROC glTexImage3D;
  111. static glTexSubImage3DPROC glTexSubImage3D;
  112. static glCopyTexSubImage3DPROC glCopyTexSubImage3D;
  113. static glCompressedTexImage3DPROC glCompressedTexImage3D;
  114. static glCompressedTexSubImage3DPROC glCompressedTexSubImage3D;
  115. static glGenQueriesPROC glGenQueries;
  116. static glDeleteQueriesPROC glDeleteQueries;
  117. static glIsQueryPROC glIsQuery;
  118. static glBeginQueryPROC glBeginQuery;
  119. static glEndQueryPROC glEndQuery;
  120. static glGetQueryivPROC glGetQueryiv;
  121. static glGetQueryObjectuivPROC glGetQueryObjectuiv;
  122. static glUnmapBufferPROC glUnmapBuffer;
  123. static glGetBufferPointervPROC glGetBufferPointerv;
  124. static glDrawBuffersPROC glDrawBuffers;
  125. static glUniformMatrix2x3fvPROC glUniformMatrix2x3fv;
  126. static glUniformMatrix3x2fvPROC glUniformMatrix3x2fv;
  127. static glUniformMatrix2x4fvPROC glUniformMatrix2x4fv;
  128. static glUniformMatrix4x2fvPROC glUniformMatrix4x2fv;
  129. static glUniformMatrix3x4fvPROC glUniformMatrix3x4fv;
  130. static glUniformMatrix4x3fvPROC glUniformMatrix4x3fv;
  131. static glBlitFramebufferPROC glBlitFramebuffer;
  132. static glRenderbufferStorageMultisamplePROC glRenderbufferStorageMultisample;
  133. static glFramebufferTextureLayerPROC glFramebufferTextureLayer;
  134. static glMapBufferRangePROC glMapBufferRange;
  135. static glFlushMappedBufferRangePROC glFlushMappedBufferRange;
  136. static glBindVertexArrayPROC glBindVertexArray;
  137. static glDeleteVertexArraysPROC glDeleteVertexArrays;
  138. static glGenVertexArraysPROC glGenVertexArrays;
  139. static glIsVertexArrayPROC glIsVertexArray;
  140. static glGetIntegeri_vPROC glGetIntegeri_v;
  141. static glBeginTransformFeedbackPROC glBeginTransformFeedback;
  142. static glEndTransformFeedbackPROC glEndTransformFeedback;
  143. static glBindBufferRangePROC glBindBufferRange;
  144. static glBindBufferBasePROC glBindBufferBase;
  145. static glTransformFeedbackVaryingsPROC glTransformFeedbackVaryings;
  146. static glGetTransformFeedbackVaryingPROC glGetTransformFeedbackVarying;
  147. static glVertexAttribIPointerPROC glVertexAttribIPointer;
  148. static glGetVertexAttribIivPROC glGetVertexAttribIiv;
  149. static glGetVertexAttribIuivPROC glGetVertexAttribIuiv;
  150. static glVertexAttribI4iPROC glVertexAttribI4i;
  151. static glVertexAttribI4uiPROC glVertexAttribI4ui;
  152. static glVertexAttribI4ivPROC glVertexAttribI4iv;
  153. static glVertexAttribI4uivPROC glVertexAttribI4uiv;
  154. static glGetUniformuivPROC glGetUniformuiv;
  155. static glGetFragDataLocationPROC glGetFragDataLocation;
  156. static glUniform1uiPROC glUniform1ui;
  157. static glUniform2uiPROC glUniform2ui;
  158. static glUniform3uiPROC glUniform3ui;
  159. static glUniform4uiPROC glUniform4ui;
  160. static glUniform1uivPROC glUniform1uiv;
  161. static glUniform2uivPROC glUniform2uiv;
  162. static glUniform3uivPROC glUniform3uiv;
  163. static glUniform4uivPROC glUniform4uiv;
  164. static glClearBufferfvPROC glClearBufferfv;
  165. static glClearBufferivPROC glClearBufferiv;
  166. static glClearBufferuivPROC glClearBufferuiv;
  167. static glClearBufferfiPROC glClearBufferfi;
  168. static glGetStringiPROC glGetStringi;
  169. static glCopyBufferSubDataPROC glCopyBufferSubData;
  170. static glGetUniformIndicesPROC glGetUniformIndices;
  171. static glGetActiveUniformsivPROC glGetActiveUniformsiv;
  172. static glGetUniformBlockIndexPROC glGetUniformBlockIndex;
  173. static glGetActiveUniformBlockivPROC glGetActiveUniformBlockiv;
  174. static glGetActiveUniformBlockNamePROC glGetActiveUniformBlockName;
  175. static glUniformBlockBindingPROC glUniformBlockBinding;
  176. static glDrawArraysInstancedPROC glDrawArraysInstanced;
  177. static glDrawElementsInstancedPROC glDrawElementsInstanced;
  178. static glFenceSyncPROC glFenceSync;
  179. static glIsSyncPROC glIsSync;
  180. static glDeleteSyncPROC glDeleteSync;
  181. static glClientWaitSyncPROC glClientWaitSync;
  182. static glWaitSyncPROC glWaitSync;
  183. static glGetInteger64vPROC glGetInteger64v;
  184. static glGetInteger64i_vPROC glGetInteger64i_v;
  185. static glGetSyncivPROC glGetSynciv;
  186. static glGetBufferParameteri64vPROC glGetBufferParameteri64v;
  187. static glGenSamplersPROC glGenSamplers;
  188. static glDeleteSamplersPROC glDeleteSamplers;
  189. static glIsSamplerPROC glIsSampler;
  190. static glBindSamplerPROC glBindSampler;
  191. static glSamplerParameteriPROC glSamplerParameteri;
  192. static glSamplerParameterfPROC glSamplerParameterf;
  193. static glSamplerParameterivPROC glSamplerParameteriv;
  194. static glSamplerParameterfvPROC glSamplerParameterfv;
  195. static glGetSamplerParameterivPROC glGetSamplerParameteriv;
  196. static glGetSamplerParameterfvPROC glGetSamplerParameterfv;
  197. static glVertexAttribDivisorPROC glVertexAttribDivisor;
  198. static glBindTransformFeedbackPROC glBindTransformFeedback;
  199. static glDeleteTransformFeedbacksPROC glDeleteTransformFeedbacks;
  200. static glGenTransformFeedbacksPROC glGenTransformFeedbacks;
  201. static glIsTransformFeedbackPROC glIsTransformFeedback;
  202. static glPauseTransformFeedbackPROC glPauseTransformFeedback;
  203. static glResumeTransformFeedbackPROC glResumeTransformFeedback;
  204. static glGetProgramBinaryPROC glGetProgramBinary;
  205. static glProgramBinaryPROC glProgramBinary;
  206. static glProgramParameteriPROC glProgramParameteri;
  207. static glInvalidateFramebufferPROC glInvalidateFramebuffer;
  208. static glInvalidateSubFramebufferPROC glInvalidateSubFramebuffer;
  209. static glTexStorage2DPROC glTexStorage2D;
  210. static glTexStorage3DPROC glTexStorage3D;
  211. static glGetInternalformativPROC glGetInternalformativ;
  212. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglReadBuffer(JNIEnv *env, jclass clazz, jint mode) {
  213. glReadBuffer(mode);
  214. }
  215. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDrawRangeElements(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jlong indices) {
  216. const GLvoid *indices_address = (const GLvoid *)(intptr_t)indices;
  217. glDrawRangeElements(mode, start, end, count, type, indices_address);
  218. }
  219. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDrawRangeElementsBO(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jlong indices_buffer_offset) {
  220. const GLvoid *indices_address = (const GLvoid *)(intptr_t)offsetToPointer(indices_buffer_offset);
  221. glDrawRangeElements(mode, start, end, count, type, indices_address);
  222. }
  223. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglTexImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint internalFormat, jint width, jint height, jint depth, jint border, jint format, jint type, jlong pixels) {
  224. const GLvoid *pixels_address = (const GLvoid *)(intptr_t)pixels;
  225. glTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels_address);
  226. }
  227. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglTexImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalFormat, jint width, jint height, jint depth, jint border, jint format, jint type, jlong pixels_buffer_offset) {
  228. const GLvoid *pixels_address = (const GLvoid *)(intptr_t)offsetToPointer(pixels_buffer_offset);
  229. glTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels_address);
  230. }
  231. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jlong pixels) {
  232. const GLvoid *pixels_address = (const GLvoid *)(intptr_t)pixels;
  233. glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_address);
  234. }
  235. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglTexSubImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jlong pixels_buffer_offset) {
  236. const GLvoid *pixels_address = (const GLvoid *)(intptr_t)offsetToPointer(pixels_buffer_offset);
  237. glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_address);
  238. }
  239. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglCopyTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint x, jint y, jint width, jint height) {
  240. glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
  241. }
  242. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglCompressedTexImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jlong data) {
  243. const GLvoid *data_address = (const GLvoid *)(intptr_t)data;
  244. glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data_address);
  245. }
  246. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglCompressedTexImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jlong data_buffer_offset) {
  247. const GLvoid *data_address = (const GLvoid *)(intptr_t)offsetToPointer(data_buffer_offset);
  248. glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data_address);
  249. }
  250. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglCompressedTexSubImage3D(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jlong data) {
  251. const GLvoid *data_address = (const GLvoid *)(intptr_t)data;
  252. glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_address);
  253. }
  254. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglCompressedTexSubImage3DBO(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jlong data_buffer_offset) {
  255. const GLvoid *data_address = (const GLvoid *)(intptr_t)offsetToPointer(data_buffer_offset);
  256. glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_address);
  257. }
  258. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGenQueries(JNIEnv *env, jclass clazz, jint n, jlong ids) {
  259. GLuint *ids_address = (GLuint *)(intptr_t)ids;
  260. glGenQueries(n, ids_address);
  261. }
  262. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDeleteQueries(JNIEnv *env, jclass clazz, jint n, jlong ids) {
  263. GLuint *ids_address = (GLuint *)(intptr_t)ids;
  264. glDeleteQueries(n, ids_address);
  265. }
  266. static jboolean JNICALL Java_org_lwjgl_opengles_GLES30_nglIsQuery(JNIEnv *env, jclass clazz, jint id) {
  267. GLboolean __result = glIsQuery(id);
  268. return __result;
  269. }
  270. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglBeginQuery(JNIEnv *env, jclass clazz, jint target, jint id) {
  271. glBeginQuery(target, id);
  272. }
  273. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglEndQuery(JNIEnv *env, jclass clazz, jint target) {
  274. glEndQuery(target);
  275. }
  276. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetQueryiv(JNIEnv *env, jclass clazz, jint target, jint pname, jlong params) {
  277. GLint *params_address = (GLint *)(intptr_t)params;
  278. glGetQueryiv(target, pname, params_address);
  279. }
  280. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetQueryObjectuiv(JNIEnv *env, jclass clazz, jint id, jint pname, jlong params) {
  281. GLuint *params_address = (GLuint *)(intptr_t)params;
  282. glGetQueryObjectuiv(id, pname, params_address);
  283. }
  284. static jboolean JNICALL Java_org_lwjgl_opengles_GLES30_nglUnmapBuffer(JNIEnv *env, jclass clazz, jint target) {
  285. GLboolean __result = glUnmapBuffer(target);
  286. return __result;
  287. }
  288. static jobject JNICALL Java_org_lwjgl_opengles_GLES30_nglGetBufferPointerv(JNIEnv *env, jclass clazz, jint target, jint pname, jlong result_size) {
  289. GLvoid * __result;
  290. glGetBufferPointerv(target, pname, &__result);
  291. return safeNewBuffer(env, __result, result_size);
  292. }
  293. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDrawBuffers(JNIEnv *env, jclass clazz, jint size, jlong buffers) {
  294. const GLenum *buffers_address = (const GLenum *)(intptr_t)buffers;
  295. glDrawBuffers(size, buffers_address);
  296. }
  297. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniformMatrix2x3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jlong matrices) {
  298. GLfloat *matrices_address = (GLfloat *)(intptr_t)matrices;
  299. glUniformMatrix2x3fv(location, count, transpose, matrices_address);
  300. }
  301. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniformMatrix3x2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jlong matrices) {
  302. GLfloat *matrices_address = (GLfloat *)(intptr_t)matrices;
  303. glUniformMatrix3x2fv(location, count, transpose, matrices_address);
  304. }
  305. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniformMatrix2x4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jlong matrices) {
  306. GLfloat *matrices_address = (GLfloat *)(intptr_t)matrices;
  307. glUniformMatrix2x4fv(location, count, transpose, matrices_address);
  308. }
  309. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniformMatrix4x2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jlong matrices) {
  310. GLfloat *matrices_address = (GLfloat *)(intptr_t)matrices;
  311. glUniformMatrix4x2fv(location, count, transpose, matrices_address);
  312. }
  313. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniformMatrix3x4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jlong matrices) {
  314. GLfloat *matrices_address = (GLfloat *)(intptr_t)matrices;
  315. glUniformMatrix3x4fv(location, count, transpose, matrices_address);
  316. }
  317. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniformMatrix4x3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jlong matrices) {
  318. GLfloat *matrices_address = (GLfloat *)(intptr_t)matrices;
  319. glUniformMatrix4x3fv(location, count, transpose, matrices_address);
  320. }
  321. static void JNICALL Java_org_lwjgl_opengles_GLES30_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) {
  322. glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
  323. }
  324. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglRenderbufferStorageMultisample(JNIEnv *env, jclass clazz, jint target, jint samples, jint internalformat, jint width, jint height) {
  325. glRenderbufferStorageMultisample(target, samples, internalformat, width, height);
  326. }
  327. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglFramebufferTextureLayer(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint layer) {
  328. glFramebufferTextureLayer(target, attachment, texture, level, layer);
  329. }
  330. static jobject JNICALL Java_org_lwjgl_opengles_GLES30_nglMapBufferRange(JNIEnv *env, jclass clazz, jint target, jlong offset, jlong length, jint access, jobject old_buffer) {
  331. GLvoid * __result = glMapBufferRange(target, offset, length, access);
  332. return safeNewBufferCached(env, __result, length, old_buffer);
  333. }
  334. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglFlushMappedBufferRange(JNIEnv *env, jclass clazz, jint target, jlong offset, jlong length) {
  335. glFlushMappedBufferRange(target, offset, length);
  336. }
  337. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglBindVertexArray(JNIEnv *env, jclass clazz, jint array) {
  338. glBindVertexArray(array);
  339. }
  340. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDeleteVertexArrays(JNIEnv *env, jclass clazz, jint n, jlong arrays) {
  341. const GLuint *arrays_address = (const GLuint *)(intptr_t)arrays;
  342. glDeleteVertexArrays(n, arrays_address);
  343. }
  344. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGenVertexArrays(JNIEnv *env, jclass clazz, jint n, jlong arrays) {
  345. GLuint *arrays_address = (GLuint *)(intptr_t)arrays;
  346. glGenVertexArrays(n, arrays_address);
  347. }
  348. static jboolean JNICALL Java_org_lwjgl_opengles_GLES30_nglIsVertexArray(JNIEnv *env, jclass clazz, jint array) {
  349. GLboolean __result = glIsVertexArray(array);
  350. return __result;
  351. }
  352. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetIntegeri_v(JNIEnv *env, jclass clazz, jint value, jint index, jlong data) {
  353. GLint *data_address = (GLint *)(intptr_t)data;
  354. glGetIntegeri_v(value, index, data_address);
  355. }
  356. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglBeginTransformFeedback(JNIEnv *env, jclass clazz, jint primitiveMode) {
  357. glBeginTransformFeedback(primitiveMode);
  358. }
  359. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglEndTransformFeedback(JNIEnv *env, jclass clazz) {
  360. glEndTransformFeedback();
  361. }
  362. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglBindBufferRange(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong size) {
  363. glBindBufferRange(target, index, buffer, offset, size);
  364. }
  365. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglBindBufferBase(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer) {
  366. glBindBufferBase(target, index, buffer);
  367. }
  368. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglTransformFeedbackVaryings(JNIEnv *env, jclass clazz, jint program, jint count, jlong varyings, jint bufferMode) {
  369. const GLchar *varyings_address = (const GLchar *)(intptr_t)varyings;
  370. unsigned int _str_i;
  371. GLchar *_str_address;
  372. GLchar **varyings_str = (GLchar **) malloc(count * sizeof(GLchar *));
  373. _str_i = 0;
  374. _str_address = (GLchar *)varyings_address;
  375. while ( _str_i < count ) {
  376. varyings_str[_str_i++] = _str_address;
  377. _str_address += strlen(_str_address) + 1;
  378. }
  379. glTransformFeedbackVaryings(program, count, (const GLchar **)varyings_str, bufferMode);
  380. free(varyings_str);
  381. }
  382. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetTransformFeedbackVarying(JNIEnv *env, jclass clazz, jint program, jint index, jint bufSize, jlong length, jlong size, jlong type, jlong name) {
  383. GLsizei *length_address = (GLsizei *)(intptr_t)length;
  384. GLsizei *size_address = (GLsizei *)(intptr_t)size;
  385. GLenum *type_address = (GLenum *)(intptr_t)type;
  386. GLchar *name_address = (GLchar *)(intptr_t)name;
  387. glGetTransformFeedbackVarying(program, index, bufSize, length_address, size_address, type_address, name_address);
  388. }
  389. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglVertexAttribIPointer(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jlong buffer) {
  390. const GLvoid *buffer_address = (const GLvoid *)(intptr_t)buffer;
  391. glVertexAttribIPointer(index, size, type, stride, buffer_address);
  392. }
  393. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglVertexAttribIPointerBO(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jlong buffer_buffer_offset) {
  394. const GLvoid *buffer_address = (const GLvoid *)(intptr_t)offsetToPointer(buffer_buffer_offset);
  395. glVertexAttribIPointer(index, size, type, stride, buffer_address);
  396. }
  397. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetVertexAttribIiv(JNIEnv *env, jclass clazz, jint index, jint pname, jlong params) {
  398. GLint *params_address = (GLint *)(intptr_t)params;
  399. glGetVertexAttribIiv(index, pname, params_address);
  400. }
  401. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetVertexAttribIuiv(JNIEnv *env, jclass clazz, jint index, jint pname, jlong params) {
  402. GLuint *params_address = (GLuint *)(intptr_t)params;
  403. glGetVertexAttribIuiv(index, pname, params_address);
  404. }
  405. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglVertexAttribI4i(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jint w) {
  406. glVertexAttribI4i(index, x, y, z, w);
  407. }
  408. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglVertexAttribI4ui(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jint w) {
  409. glVertexAttribI4ui(index, x, y, z, w);
  410. }
  411. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglVertexAttribI4iv(JNIEnv *env, jclass clazz, jint index, jlong v) {
  412. const GLint *v_address = (const GLint *)(intptr_t)v;
  413. glVertexAttribI4iv(index, v_address);
  414. }
  415. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglVertexAttribI4uiv(JNIEnv *env, jclass clazz, jint index, jlong v) {
  416. const GLuint *v_address = (const GLuint *)(intptr_t)v;
  417. glVertexAttribI4uiv(index, v_address);
  418. }
  419. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetUniformuiv(JNIEnv *env, jclass clazz, jint program, jint location, jlong params) {
  420. GLuint *params_address = (GLuint *)(intptr_t)params;
  421. glGetUniformuiv(program, location, params_address);
  422. }
  423. static jint JNICALL Java_org_lwjgl_opengles_GLES30_nglGetFragDataLocation(JNIEnv *env, jclass clazz, jint program, jlong name) {
  424. const GLchar *name_address = (const GLchar *)(intptr_t)name;
  425. GLint __result = glGetFragDataLocation(program, name_address);
  426. return __result;
  427. }
  428. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniform1ui(JNIEnv *env, jclass clazz, jint location, jint v0) {
  429. glUniform1ui(location, v0);
  430. }
  431. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniform2ui(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1) {
  432. glUniform2ui(location, v0, v1);
  433. }
  434. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniform3ui(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2) {
  435. glUniform3ui(location, v0, v1, v2);
  436. }
  437. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniform4ui(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3) {
  438. glUniform4ui(location, v0, v1, v2, v3);
  439. }
  440. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniform1uiv(JNIEnv *env, jclass clazz, jint location, jint count, jlong value) {
  441. const GLuint *value_address = (const GLuint *)(intptr_t)value;
  442. glUniform1uiv(location, count, value_address);
  443. }
  444. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniform2uiv(JNIEnv *env, jclass clazz, jint location, jint count, jlong value) {
  445. const GLuint *value_address = (const GLuint *)(intptr_t)value;
  446. glUniform2uiv(location, count, value_address);
  447. }
  448. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniform3uiv(JNIEnv *env, jclass clazz, jint location, jint count, jlong value) {
  449. const GLuint *value_address = (const GLuint *)(intptr_t)value;
  450. glUniform3uiv(location, count, value_address);
  451. }
  452. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniform4uiv(JNIEnv *env, jclass clazz, jint location, jint count, jlong value) {
  453. const GLuint *value_address = (const GLuint *)(intptr_t)value;
  454. glUniform4uiv(location, count, value_address);
  455. }
  456. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglClearBufferfv(JNIEnv *env, jclass clazz, jint buffer, jint drawbuffer, jlong value) {
  457. const GLfloat *value_address = (const GLfloat *)(intptr_t)value;
  458. glClearBufferfv(buffer, drawbuffer, value_address);
  459. }
  460. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglClearBufferiv(JNIEnv *env, jclass clazz, jint buffer, jint drawbuffer, jlong value) {
  461. const GLint *value_address = (const GLint *)(intptr_t)value;
  462. glClearBufferiv(buffer, drawbuffer, value_address);
  463. }
  464. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglClearBufferuiv(JNIEnv *env, jclass clazz, jint buffer, jint drawbuffer, jlong value) {
  465. const GLint *value_address = (const GLint *)(intptr_t)value;
  466. glClearBufferuiv(buffer, drawbuffer, value_address);
  467. }
  468. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglClearBufferfi(JNIEnv *env, jclass clazz, jint buffer, jint drawbuffer, jfloat depth, jint stencil) {
  469. glClearBufferfi(buffer, drawbuffer, depth, stencil);
  470. }
  471. static jobject JNICALL Java_org_lwjgl_opengles_GLES30_nglGetStringi(JNIEnv *env, jclass clazz, jint name, jint index) {
  472. GLubyte * __result = glGetStringi(name, index);
  473. return NewStringNativeUnsigned(env, __result);
  474. }
  475. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglCopyBufferSubData(JNIEnv *env, jclass clazz, jint readtarget, jint writetarget, jlong readoffset, jlong writeoffset, jlong size) {
  476. glCopyBufferSubData(readtarget, writetarget, readoffset, writeoffset, size);
  477. }
  478. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetUniformIndices(JNIEnv *env, jclass clazz, jint program, jint uniformCount, jlong uniformNames, jlong uniformIndices) {
  479. const GLchar *uniformNames_address = (const GLchar *)(intptr_t)uniformNames;
  480. unsigned int _str_i;
  481. GLchar *_str_address;
  482. GLchar **uniformNames_str = (GLchar **) malloc(uniformCount * sizeof(GLchar *));
  483. GLuint *uniformIndices_address = (GLuint *)(intptr_t)uniformIndices;
  484. _str_i = 0;
  485. _str_address = (GLchar *)uniformNames_address;
  486. while ( _str_i < uniformCount ) {
  487. uniformNames_str[_str_i++] = _str_address;
  488. _str_address += strlen(_str_address) + 1;
  489. }
  490. glGetUniformIndices(program, uniformCount, (const GLchar **)uniformNames_str, uniformIndices_address);
  491. free(uniformNames_str);
  492. }
  493. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetActiveUniformsiv(JNIEnv *env, jclass clazz, jint program, jint uniformCount, jlong uniformIndices, jint pname, jlong params) {
  494. const GLuint *uniformIndices_address = (const GLuint *)(intptr_t)uniformIndices;
  495. GLint *params_address = (GLint *)(intptr_t)params;
  496. glGetActiveUniformsiv(program, uniformCount, uniformIndices_address, pname, params_address);
  497. }
  498. static jint JNICALL Java_org_lwjgl_opengles_GLES30_nglGetUniformBlockIndex(JNIEnv *env, jclass clazz, jint program, jlong uniformBlockName) {
  499. const GLchar *uniformBlockName_address = (const GLchar *)(intptr_t)uniformBlockName;
  500. GLuint __result = glGetUniformBlockIndex(program, uniformBlockName_address);
  501. return __result;
  502. }
  503. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetActiveUniformBlockiv(JNIEnv *env, jclass clazz, jint program, jint uniformBlockIndex, jint pname, jlong params) {
  504. GLint *params_address = (GLint *)(intptr_t)params;
  505. glGetActiveUniformBlockiv(program, uniformBlockIndex, pname, params_address);
  506. }
  507. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetActiveUniformBlockName(JNIEnv *env, jclass clazz, jint program, jint uniformBlockIndex, jint bufSize, jlong length, jlong uniformBlockName) {
  508. GLsizei *length_address = (GLsizei *)(intptr_t)length;
  509. GLchar *uniformBlockName_address = (GLchar *)(intptr_t)uniformBlockName;
  510. glGetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length_address, uniformBlockName_address);
  511. }
  512. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglUniformBlockBinding(JNIEnv *env, jclass clazz, jint program, jint uniformBlockIndex, jint uniformBlockBinding) {
  513. glUniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding);
  514. }
  515. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDrawArraysInstanced(JNIEnv *env, jclass clazz, jint mode, jint first, jint count, jint primcount) {
  516. glDrawArraysInstanced(mode, first, count, primcount);
  517. }
  518. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDrawElementsInstanced(JNIEnv *env, jclass clazz, jint mode, jint count, jint type, jlong indices, jint primcount) {
  519. const GLvoid *indices_address = (const GLvoid *)(intptr_t)indices;
  520. glDrawElementsInstanced(mode, count, type, indices_address, primcount);
  521. }
  522. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDrawElementsInstancedBO(JNIEnv *env, jclass clazz, jint mode, jint count, jint type, jlong indices_buffer_offset, jint primcount) {
  523. const GLvoid *indices_address = (const GLvoid *)(intptr_t)offsetToPointer(indices_buffer_offset);
  524. glDrawElementsInstanced(mode, count, type, indices_address, primcount);
  525. }
  526. static jlong JNICALL Java_org_lwjgl_opengles_GLES30_nglFenceSync(JNIEnv *env, jclass clazz, jint condition, jint flags) {
  527. GLsync __result = glFenceSync(condition, flags);
  528. return (intptr_t)__result;
  529. }
  530. static jboolean JNICALL Java_org_lwjgl_opengles_GLES30_nglIsSync(JNIEnv *env, jclass clazz, jlong sync) {
  531. GLboolean __result = glIsSync((GLsync)(intptr_t)sync);
  532. return __result;
  533. }
  534. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDeleteSync(JNIEnv *env, jclass clazz, jlong sync) {
  535. glDeleteSync((GLsync)(intptr_t)sync);
  536. }
  537. static jint JNICALL Java_org_lwjgl_opengles_GLES30_nglClientWaitSync(JNIEnv *env, jclass clazz, jlong sync, jint flags, jlong timeout) {
  538. GLenum __result = glClientWaitSync((GLsync)(intptr_t)sync, flags, timeout);
  539. return __result;
  540. }
  541. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglWaitSync(JNIEnv *env, jclass clazz, jlong sync, jint flags, jlong timeout) {
  542. glWaitSync((GLsync)(intptr_t)sync, flags, timeout);
  543. }
  544. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetInteger64v(JNIEnv *env, jclass clazz, jint pname, jlong data) {
  545. GLint64 *data_address = (GLint64 *)(intptr_t)data;
  546. glGetInteger64v(pname, data_address);
  547. }
  548. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetInteger64i_v(JNIEnv *env, jclass clazz, jint value, jint index, jlong data) {
  549. GLint64 *data_address = (GLint64 *)(intptr_t)data;
  550. glGetInteger64i_v(value, index, data_address);
  551. }
  552. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetSynciv(JNIEnv *env, jclass clazz, jlong sync, jint pname, jint bufSize, jlong length, jlong values) {
  553. GLsizei *length_address = (GLsizei *)(intptr_t)length;
  554. GLint *values_address = (GLint *)(intptr_t)values;
  555. glGetSynciv((GLsync)(intptr_t)sync, pname, bufSize, length_address, values_address);
  556. }
  557. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetBufferParameteri64v(JNIEnv *env, jclass clazz, jint target, jint pname, jlong params) {
  558. GLint64 *params_address = (GLint64 *)(intptr_t)params;
  559. glGetBufferParameteri64v(target, pname, params_address);
  560. }
  561. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGenSamplers(JNIEnv *env, jclass clazz, jint count, jlong samplers) {
  562. GLuint *samplers_address = (GLuint *)(intptr_t)samplers;
  563. glGenSamplers(count, samplers_address);
  564. }
  565. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDeleteSamplers(JNIEnv *env, jclass clazz, jint count, jlong samplers) {
  566. const GLuint *samplers_address = (const GLuint *)(intptr_t)samplers;
  567. glDeleteSamplers(count, samplers_address);
  568. }
  569. static jboolean JNICALL Java_org_lwjgl_opengles_GLES30_nglIsSampler(JNIEnv *env, jclass clazz, jint sampler) {
  570. GLboolean __result = glIsSampler(sampler);
  571. return __result;
  572. }
  573. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglBindSampler(JNIEnv *env, jclass clazz, jint unit, jint sampler) {
  574. glBindSampler(unit, sampler);
  575. }
  576. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglSamplerParameteri(JNIEnv *env, jclass clazz, jint sampler, jint pname, jint param) {
  577. glSamplerParameteri(sampler, pname, param);
  578. }
  579. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglSamplerParameterf(JNIEnv *env, jclass clazz, jint sampler, jint pname, jfloat param) {
  580. glSamplerParameterf(sampler, pname, param);
  581. }
  582. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglSamplerParameteriv(JNIEnv *env, jclass clazz, jint sampler, jint pname, jlong params) {
  583. const GLint *params_address = (const GLint *)(intptr_t)params;
  584. glSamplerParameteriv(sampler, pname, params_address);
  585. }
  586. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglSamplerParameterfv(JNIEnv *env, jclass clazz, jint sampler, jint pname, jlong params) {
  587. const GLfloat *params_address = (const GLfloat *)(intptr_t)params;
  588. glSamplerParameterfv(sampler, pname, params_address);
  589. }
  590. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetSamplerParameteriv(JNIEnv *env, jclass clazz, jint sampler, jint pname, jlong params) {
  591. GLint *params_address = (GLint *)(intptr_t)params;
  592. glGetSamplerParameteriv(sampler, pname, params_address);
  593. }
  594. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetSamplerParameterfv(JNIEnv *env, jclass clazz, jint sampler, jint pname, jlong params) {
  595. GLfloat *params_address = (GLfloat *)(intptr_t)params;
  596. glGetSamplerParameterfv(sampler, pname, params_address);
  597. }
  598. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglVertexAttribDivisor(JNIEnv *env, jclass clazz, jint index, jint divisor) {
  599. glVertexAttribDivisor(index, divisor);
  600. }
  601. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglBindTransformFeedback(JNIEnv *env, jclass clazz, jint target, jint id) {
  602. glBindTransformFeedback(target, id);
  603. }
  604. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglDeleteTransformFeedbacks(JNIEnv *env, jclass clazz, jint n, jlong ids) {
  605. const GLuint *ids_address = (const GLuint *)(intptr_t)ids;
  606. glDeleteTransformFeedbacks(n, ids_address);
  607. }
  608. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGenTransformFeedbacks(JNIEnv *env, jclass clazz, jint n, jlong ids) {
  609. GLuint *ids_address = (GLuint *)(intptr_t)ids;
  610. glGenTransformFeedbacks(n, ids_address);
  611. }
  612. static jboolean JNICALL Java_org_lwjgl_opengles_GLES30_nglIsTransformFeedback(JNIEnv *env, jclass clazz, jint id) {
  613. GLboolean __result = glIsTransformFeedback(id);
  614. return __result;
  615. }
  616. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglPauseTransformFeedback(JNIEnv *env, jclass clazz) {
  617. glPauseTransformFeedback();
  618. }
  619. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglResumeTransformFeedback(JNIEnv *env, jclass clazz) {
  620. glResumeTransformFeedback();
  621. }
  622. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetProgramBinary(JNIEnv *env, jclass clazz, jint program, jint bufSize, jlong length, jlong binaryFormat, jlong binary) {
  623. GLsizei *length_address = (GLsizei *)(intptr_t)length;
  624. GLenum *binaryFormat_address = (GLenum *)(intptr_t)binaryFormat;
  625. GLvoid *binary_address = (GLvoid *)(intptr_t)binary;
  626. glGetProgramBinary(program, bufSize, length_address, binaryFormat_address, binary_address);
  627. }
  628. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglProgramBinary(JNIEnv *env, jclass clazz, jint program, jint binaryFormat, jlong binary, jint length) {
  629. const GLvoid *binary_address = (const GLvoid *)(intptr_t)binary;
  630. glProgramBinary(program, binaryFormat, binary_address, length);
  631. }
  632. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglProgramParameteri(JNIEnv *env, jclass clazz, jint program, jint pname, jint value) {
  633. glProgramParameteri(program, pname, value);
  634. }
  635. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglInvalidateFramebuffer(JNIEnv *env, jclass clazz, jint target, jint numAttachments, jlong attachments) {
  636. const GLenum *attachments_address = (const GLenum *)(intptr_t)attachments;
  637. glInvalidateFramebuffer(target, numAttachments, attachments_address);
  638. }
  639. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglInvalidateSubFramebuffer(JNIEnv *env, jclass clazz, jint target, jint numAttachments, jlong attachments, jint x, jint y, jint width, jint height) {
  640. const GLenum *attachments_address = (const GLenum *)(intptr_t)attachments;
  641. glInvalidateSubFramebuffer(target, numAttachments, attachments_address, x, y, width, height);
  642. }
  643. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglTexStorage2D(JNIEnv *env, jclass clazz, jint target, jint levels, jint internalformat, jint width, jint height) {
  644. glTexStorage2D(target, levels, internalformat, width, height);
  645. }
  646. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglTexStorage3D(JNIEnv *env, jclass clazz, jint target, jint levels, jint internalformat, jint width, jint height, jint depth) {
  647. glTexStorage3D(target, levels, internalformat, width, height, depth);
  648. }
  649. static void JNICALL Java_org_lwjgl_opengles_GLES30_nglGetInternalformativ(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint pname, jint bufSize, jlong params) {
  650. GLint *params_address = (GLint *)(intptr_t)params;
  651. glGetInternalformativ(target, internalformat, pname, bufSize, params_address);
  652. }
  653. JNIEXPORT void JNICALL Java_org_lwjgl_opengles_GLES30_initNativeStubs(JNIEnv *env, jclass clazz) {
  654. JavaMethodAndExtFunction functions[] = {
  655. {"nglReadBuffer", "(I)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglReadBuffer, "glReadBuffer", (void *)&glReadBuffer, false},
  656. {"nglDrawRangeElements", "(IIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglDrawRangeElements, "glDrawRangeElements", (void *)&glDrawRangeElements, false},
  657. {"nglDrawRangeElementsBO", "(IIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglDrawRangeElementsBO, "glDrawRangeElements", (void *)&glDrawRangeElements, false},
  658. {"nglTexImage3D", "(IIIIIIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglTexImage3D, "glTexImage3D", (void *)&glTexImage3D, false},
  659. {"nglTexImage3DBO", "(IIIIIIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglTexImage3DBO, "glTexImage3D", (void *)&glTexImage3D, false},
  660. {"nglTexSubImage3D", "(IIIIIIIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglTexSubImage3D, "glTexSubImage3D", (void *)&glTexSubImage3D, false},
  661. {"nglTexSubImage3DBO", "(IIIIIIIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglTexSubImage3DBO, "glTexSubImage3D", (void *)&glTexSubImage3D, false},
  662. {"nglCopyTexSubImage3D", "(IIIIIIIII)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglCopyTexSubImage3D, "glCopyTexSubImage3D", (void *)&glCopyTexSubImage3D, false},
  663. {"nglCompressedTexImage3D", "(IIIIIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglCompressedTexImage3D, "glCompressedTexImage3D", (void *)&glCompressedTexImage3D, false},
  664. {"nglCompressedTexImage3DBO", "(IIIIIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglCompressedTexImage3DBO, "glCompressedTexImage3D", (void *)&glCompressedTexImage3D, false},
  665. {"nglCompressedTexSubImage3D", "(IIIIIIIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglCompressedTexSubImage3D, "glCompressedTexSubImage3D", (void *)&glCompressedTexSubImage3D, false},
  666. {"nglCompressedTexSubImage3DBO", "(IIIIIIIIIIJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglCompressedTexSubImage3DBO, "glCompressedTexSubImage3D", (void *)&glCompressedTexSubImage3D, false},
  667. {"nglGenQueries", "(IJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglGenQueries, "glGenQueries", (void *)&glGenQueries, false},
  668. {"nglDeleteQueries", "(IJ)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglDeleteQueries, "glDeleteQueries", (void *)&glDeleteQueries, false},
  669. {"nglIsQuery", "(I)Z", (void *)&Java_org_lwjgl_opengles_GLES30_nglIsQuery, "glIsQuery", (void *)&glIsQuery, false},
  670. {"nglBeginQuery", "(II)V", (void *)&Java_org_lwjgl_opengles_GLES30_nglBeginQuery, "glBeginQuery", (void *)&glBeginQuery, fal

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