From 2502496b2d05c8d4a34007f30ada68a950027f67 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 19 Nov 2006 13:33:45 +0000 Subject: [PATCH] Made all GL functions only query ContextCapabilities.getCapabilities() once. Now all GLCheck checks will take the ContextCapabilities instance as an argument instead of querying for it. Inspired by MatthiasM, who just don't seem to be content with LWJGL performance, ever ;) --- .../org/lwjgl/opengl/ARBBufferObject.java | 72 +- .../org/lwjgl/opengl/ARBColorBufferFloat.java | 3 +- .../org/lwjgl/opengl/ARBDrawBuffers.java | 3 +- .../org/lwjgl/opengl/ARBImaging.java | 796 +++++++----- .../org/lwjgl/opengl/ARBMatrixPalette.java | 38 +- .../org/lwjgl/opengl/ARBMultisample.java | 3 +- .../org/lwjgl/opengl/ARBMultitexture.java | 54 +- .../org/lwjgl/opengl/ARBOcclusionQuery.java | 24 +- .../org/lwjgl/opengl/ARBPointParameters.java | 6 +- .../org/lwjgl/opengl/ARBProgram.java | 57 +- .../org/lwjgl/opengl/ARBShaderObjects.java | 117 +- .../lwjgl/opengl/ARBTextureCompression.java | 210 ++-- .../org/lwjgl/opengl/ARBTransposeMatrix.java | 6 +- .../org/lwjgl/opengl/ARBVertexBlend.java | 67 +- .../org/lwjgl/opengl/ARBVertexProgram.java | 97 +- .../org/lwjgl/opengl/ARBVertexShader.java | 106 +- .../org/lwjgl/opengl/ARBWindowPos.java | 24 +- .../org/lwjgl/opengl/ATIDrawBuffers.java | 3 +- .../org/lwjgl/opengl/ATIElementArray.java | 32 +- .../org/lwjgl/opengl/ATIEnvmapBumpmap.java | 12 +- .../org/lwjgl/opengl/ATIFragmentShader.java | 42 +- .../org/lwjgl/opengl/ATIMapObjectBuffer.java | 6 +- .../org/lwjgl/opengl/ATIPnTriangles.java | 6 +- .../org/lwjgl/opengl/ATISeparateStencil.java | 6 +- .../lwjgl/opengl/ATITextFragmentShader.java | 48 +- .../lwjgl/opengl/ATIVertexArrayObject.java | 63 +- .../opengl/ATIVertexAttribArrayObject.java | 9 +- .../org/lwjgl/opengl/ATIVertexStreams.java | 60 +- .../org/lwjgl/opengl/EXTBindableUniform.java | 107 +- .../org/lwjgl/opengl/EXTBlendColor.java | 67 +- .../opengl/EXTBlendEquationSeparate.java | 3 +- .../lwjgl/opengl/EXTBlendFuncSeparate.java | 3 +- .../org/lwjgl/opengl/EXTBlendMinmax.java | 65 +- .../lwjgl/opengl/EXTCompiledVertexArray.java | 6 +- .../org/lwjgl/opengl/EXTDepthBoundsTest.java | 3 +- .../org/lwjgl/opengl/EXTDrawBuffers2.java | 124 +- .../org/lwjgl/opengl/EXTDrawInstanced.java | 107 +- .../lwjgl/opengl/EXTDrawRangeElements.java | 20 +- .../org/lwjgl/opengl/EXTFogCoord.java | 25 +- .../org/lwjgl/opengl/EXTFramebufferBlit.java | 3 +- .../opengl/EXTFramebufferMultisample.java | 3 +- .../lwjgl/opengl/EXTFramebufferObject.java | 51 +- .../org/lwjgl/opengl/EXTFramebufferSRGB.java | 72 +- .../org/lwjgl/opengl/EXTGeometryShader4.java | 186 +-- .../lwjgl/opengl/EXTGpuProgramParameters.java | 62 +- .../org/lwjgl/opengl/EXTGpuShader4.java | 723 +++++------ .../org/lwjgl/opengl/EXTMultiDrawArrays.java | 5 +- .../org/lwjgl/opengl/EXTPackedFloat.java | 104 +- .../org/lwjgl/opengl/EXTPalettedTexture.java | 51 +- .../org/lwjgl/opengl/EXTPointParameters.java | 6 +- .../org/lwjgl/opengl/EXTSecondaryColor.java | 38 +- .../org/lwjgl/opengl/EXTStencilClearTag.java | 3 +- .../org/lwjgl/opengl/EXTStencilTwoSide.java | 3 +- .../org/lwjgl/opengl/EXTTextureArray.java | 127 +- .../lwjgl/opengl/EXTTextureBufferObject.java | 75 +- .../opengl/EXTTextureCompressionLATC.java | 46 +- .../opengl/EXTTextureCompressionRGTC.java | 46 +- .../org/lwjgl/opengl/EXTTextureInteger.java | 246 ++-- .../opengl/EXTTextureSharedExponent.java | 68 +- .../org/lwjgl/opengl/EXTTimerQuery.java | 72 +- .../org/lwjgl/opengl/EXTVertexShader.java | 187 ++- .../org/lwjgl/opengl/EXTVertexWeighting.java | 15 +- src/generated/org/lwjgl/opengl/GL11.java | 1083 +++++++++++------ src/generated/org/lwjgl/opengl/GL12.java | 83 +- src/generated/org/lwjgl/opengl/GL13.java | 245 ++-- src/generated/org/lwjgl/opengl/GL14.java | 101 +- src/generated/org/lwjgl/opengl/GL15.java | 96 +- src/generated/org/lwjgl/opengl/GL20.java | 247 ++-- src/generated/org/lwjgl/opengl/GL21.java | 196 +-- .../org/lwjgl/opengl/NVDepthBufferFloat.java | 111 +- .../org/lwjgl/opengl/NVEvaluators.java | 27 +- src/generated/org/lwjgl/opengl/NVFence.java | 21 +- .../org/lwjgl/opengl/NVFragmentProgram.java | 12 +- .../NVFramebufferMultisampleCoverage.java | 53 +- .../org/lwjgl/opengl/NVGeometryProgram4.java | 95 +- .../org/lwjgl/opengl/NVGpuProgram4.java | 310 ++--- .../org/lwjgl/opengl/NVHalfFloat.java | 72 +- .../org/lwjgl/opengl/NVOcclusionQuery.java | 21 +- .../lwjgl/opengl/NVParameterBufferObject.java | 107 +- .../org/lwjgl/opengl/NVPixelDataRange.java | 18 +- .../org/lwjgl/opengl/NVPointSprite.java | 6 +- .../org/lwjgl/opengl/NVPrimitiveRestart.java | 6 +- src/generated/org/lwjgl/opengl/NVProgram.java | 29 +- .../org/lwjgl/opengl/NVRegisterCombiners.java | 39 +- .../lwjgl/opengl/NVRegisterCombiners2.java | 6 +- .../org/lwjgl/opengl/NVTransformFeeback.java | 351 +++--- .../org/lwjgl/opengl/NVVertexArrayRange.java | 24 +- .../org/lwjgl/opengl/NVVertexProgram.java | 154 ++- .../org/lwjgl/opengl/SGISGenerateMipmap.java | 48 +- .../org/lwjgl/opengl/SGISTextureLOD.java | 44 +- src/java/org/lwjgl/opengl/GLChecks.java | 55 +- src/java/org/lwjgl/opengl/StateTracker.java | 16 +- .../util/generator/JavaMethodsGenerator.java | 13 +- .../org_lwjgl_opengl_EXTBindableUniform.c | 52 +- .../org_lwjgl_opengl_EXTBlendColor.c | 24 +- .../org_lwjgl_opengl_EXTBlendMinmax.c | 24 +- .../org_lwjgl_opengl_EXTDrawBuffers2.c | 90 +- .../org_lwjgl_opengl_EXTDrawInstanced.c | 50 +- .../org_lwjgl_opengl_EXTGeometryShader4.c | 60 +- ...org_lwjgl_opengl_EXTGpuProgramParameters.c | 40 +- .../org_lwjgl_opengl_EXTGpuShader4.c | 478 ++++---- .../org_lwjgl_opengl_EXTTextureArray.c | 24 +- .../org_lwjgl_opengl_EXTTextureBufferObject.c | 24 +- .../org_lwjgl_opengl_EXTTextureInteger.c | 92 +- .../org_lwjgl_opengl_EXTTimerQuery.c | 40 +- src/native/generated/org_lwjgl_opengl_GL21.c | 96 +- .../org_lwjgl_opengl_NVDepthBufferFloat.c | 48 +- ..._opengl_NVFramebufferMultisampleCoverage.c | 24 +- .../org_lwjgl_opengl_NVGeometryProgram4.c | 48 +- .../org_lwjgl_opengl_NVGpuProgram4.c | 228 ++-- ...org_lwjgl_opengl_NVParameterBufferObject.c | 54 +- .../org_lwjgl_opengl_NVTransformFeeback.c | 164 +-- src/templates/org/lwjgl/opengl/GL11.java | 4 +- 113 files changed, 5698 insertions(+), 4347 deletions(-) diff --git a/src/generated/org/lwjgl/opengl/ARBBufferObject.java b/src/generated/org/lwjgl/opengl/ARBBufferObject.java index 749e32aa..6eb0b591 100644 --- a/src/generated/org/lwjgl/opengl/ARBBufferObject.java +++ b/src/generated/org/lwjgl/opengl/ARBBufferObject.java @@ -36,14 +36,16 @@ public class ARBBufferObject { public static void glBindBufferARB(int target, int buffer) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBindBufferARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBindBufferARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindBufferARB(target, buffer, function_pointer); } private static native void nglBindBufferARB(int target, int buffer, long function_pointer); public static void glDeleteBuffersARB(IntBuffer buffers) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glDeleteBuffersARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glDeleteBuffersARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffers); nglDeleteBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer); @@ -51,7 +53,8 @@ public class ARBBufferObject { private static native void nglDeleteBuffersARB(int n, IntBuffer buffers, int buffers_position, long function_pointer); public static void glGenBuffersARB(IntBuffer buffers) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGenBuffersARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glGenBuffersARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffers); nglGenBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer); @@ -59,7 +62,8 @@ public class ARBBufferObject { private static native void nglGenBuffersARB(int n, IntBuffer buffers, int buffers_position, long function_pointer); public static boolean glIsBufferARB(int buffer) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glIsBufferARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glIsBufferARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsBufferARB(buffer, function_pointer); return __result; @@ -67,36 +71,42 @@ public class ARBBufferObject { private static native boolean nglIsBufferARB(int buffer, long function_pointer); public static void glBufferDataARB(int target, long size, int usage) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBufferDataARB(target, size, null, 0, usage, function_pointer); } public static void glBufferDataARB(int target, ByteBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferDataARB(target, (data.remaining()), data, data.position(), usage, function_pointer); } public static void glBufferDataARB(int target, DoubleBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferDataARB(target, (data.remaining() << 3), data, data.position() << 3, usage, function_pointer); } public static void glBufferDataARB(int target, FloatBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferDataARB(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer); } public static void glBufferDataARB(int target, IntBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferDataARB(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer); } public static void glBufferDataARB(int target, ShortBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferDataARB(target, (data.remaining() << 1), data, data.position() << 1, usage, function_pointer); @@ -104,31 +114,36 @@ public class ARBBufferObject { private static native void nglBufferDataARB(int target, long size, Buffer data, int data_position, int usage, long function_pointer); public static void glBufferSubDataARB(int target, long offset, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer); } public static void glBufferSubDataARB(int target, long offset, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubDataARB(target, offset, (data.remaining() << 3), data, data.position() << 3, function_pointer); } public static void glBufferSubDataARB(int target, long offset, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glBufferSubDataARB(int target, long offset, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glBufferSubDataARB(int target, long offset, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer); @@ -136,31 +151,36 @@ public class ARBBufferObject { private static native void nglBufferSubDataARB(int target, long offset, long size, Buffer data, int data_position, long function_pointer); public static void glGetBufferSubDataARB(int target, long offset, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubDataARB(target, offset, (data.remaining()), data, data.position(), function_pointer); } public static void glGetBufferSubDataARB(int target, long offset, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubDataARB(target, offset, (data.remaining() << 3), data, data.position() << 3, function_pointer); } public static void glGetBufferSubDataARB(int target, long offset, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glGetBufferSubDataARB(int target, long offset, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubDataARB(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glGetBufferSubDataARB(int target, long offset, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferSubDataARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glGetBufferSubDataARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubDataARB(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer); @@ -179,7 +199,8 @@ public class ARBBufferObject { * @return A ByteBuffer representing the mapped buffer memory. */ public static java.nio.ByteBuffer glMapBufferARB(int target, int access, int result_size, java.nio.ByteBuffer old_buffer) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glMapBufferARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glMapBufferARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (old_buffer != null) BufferChecks.checkDirect(old_buffer); @@ -189,7 +210,8 @@ public class ARBBufferObject { private static native java.nio.ByteBuffer nglMapBufferARB(int target, int access, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer); public static boolean glUnmapBufferARB(int target) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glUnmapBufferARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glUnmapBufferARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglUnmapBufferARB(target, function_pointer); return __result; @@ -197,7 +219,8 @@ public class ARBBufferObject { private static native boolean nglUnmapBufferARB(int target, long function_pointer); public static void glGetBufferParameterARB(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferParameterivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glGetBufferParameterivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetBufferParameterivARB(target, pname, params, params.position(), function_pointer); @@ -205,7 +228,8 @@ public class ARBBufferObject { private static native void nglGetBufferParameterivARB(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static java.nio.ByteBuffer glGetBufferPointerARB(int target, int pname, int result_size) { - long function_pointer = GLContext.getCapabilities().ARB_buffer_object_glGetBufferPointervARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_buffer_object_glGetBufferPointervARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglGetBufferPointervARB(target, pname, result_size, function_pointer); return __result; diff --git a/src/generated/org/lwjgl/opengl/ARBColorBufferFloat.java b/src/generated/org/lwjgl/opengl/ARBColorBufferFloat.java index edc540cd..010931aa 100644 --- a/src/generated/org/lwjgl/opengl/ARBColorBufferFloat.java +++ b/src/generated/org/lwjgl/opengl/ARBColorBufferFloat.java @@ -32,7 +32,8 @@ public final class ARBColorBufferFloat { * Accepted as a bit set in the GLX_RENDER_TYPE variable */ public static void glClampColorARB(int target, int clamp) { - long function_pointer = GLContext.getCapabilities().ARB_color_buffer_float_glClampColorARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_color_buffer_float_glClampColorARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClampColorARB(target, clamp, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ARBDrawBuffers.java b/src/generated/org/lwjgl/opengl/ARBDrawBuffers.java index af505185..2138dff6 100644 --- a/src/generated/org/lwjgl/opengl/ARBDrawBuffers.java +++ b/src/generated/org/lwjgl/opengl/ARBDrawBuffers.java @@ -34,7 +34,8 @@ public final class ARBDrawBuffers { public static void glDrawBuffersARB(IntBuffer buffers) { - long function_pointer = GLContext.getCapabilities().ARB_draw_buffers_glDrawBuffersARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_draw_buffers_glDrawBuffersARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffers); nglDrawBuffersARB((buffers.remaining()), buffers, buffers.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ARBImaging.java b/src/generated/org/lwjgl/opengl/ARBImaging.java index 621bc409..3495c415 100644 --- a/src/generated/org/lwjgl/opengl/ARBImaging.java +++ b/src/generated/org/lwjgl/opengl/ARBImaging.java @@ -88,67 +88,76 @@ public final class ARBImaging { public static void glColorTable(int target, int internalFormat, int width, int format, int type, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(data, 256); nglColorTable(target, internalFormat, width, format, type, data, data.position(), function_pointer); } public static void glColorTable(int target, int internalFormat, int width, int format, int type, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(data, 256); nglColorTable(target, internalFormat, width, format, type, data, data.position() << 3, function_pointer); } public static void glColorTable(int target, int internalFormat, int width, int format, int type, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(data, 256); nglColorTable(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer); } private static native void nglColorTable(int target, int internalFormat, int width, int format, int type, Buffer data, int data_position, long function_pointer); public static void glColorTable(int target, int internalFormat, int width, int format, int type, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglColorTableBO(target, internalFormat, width, format, type, data_buffer_offset, function_pointer); } private static native void nglColorTableBO(int target, int internalFormat, int width, int format, int type, long data_buffer_offset, long function_pointer); public static void glColorSubTable(int target, int start, int count, int format, int type, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorSubTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorSubTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(data, 256); nglColorSubTable(target, start, count, format, type, data, data.position(), function_pointer); } public static void glColorSubTable(int target, int start, int count, int format, int type, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorSubTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorSubTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(data, 256); nglColorSubTable(target, start, count, format, type, data, data.position() << 3, function_pointer); } public static void glColorSubTable(int target, int start, int count, int format, int type, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorSubTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorSubTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(data, 256); nglColorSubTable(target, start, count, format, type, data, data.position() << 2, function_pointer); } private static native void nglColorSubTable(int target, int start, int count, int format, int type, Buffer data, int data_position, long function_pointer); public static void glColorSubTable(int target, int start, int count, int format, int type, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorSubTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorSubTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglColorSubTableBO(target, start, count, format, type, data_buffer_offset, function_pointer); } private static native void nglColorSubTableBO(int target, int start, int count, int format, int type, long data_buffer_offset, long function_pointer); public static void glColorTableParameter(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTableParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorTableParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglColorTableParameteriv(target, pname, params, params.position(), function_pointer); @@ -156,7 +165,8 @@ public final class ARBImaging { private static native void nglColorTableParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glColorTableParameter(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glColorTableParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glColorTableParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglColorTableParameterfv(target, pname, params, params.position(), function_pointer); @@ -164,33 +174,38 @@ public final class ARBImaging { private static native void nglColorTableParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glCopyColorSubTable(int target, int start, int x, int y, int width) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glCopyColorSubTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glCopyColorSubTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyColorSubTable(target, start, x, y, width, function_pointer); } private static native void nglCopyColorSubTable(int target, int start, int x, int y, int width, long function_pointer); public static void glCopyColorTable(int target, int internalformat, int x, int y, int width) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glCopyColorTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glCopyColorTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyColorTable(target, internalformat, x, y, width, function_pointer); } private static native void nglCopyColorTable(int target, int internalformat, int x, int y, int width, long function_pointer); public static void glGetColorTable(int target, int format, int type, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetColorTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, 256); nglGetColorTable(target, format, type, data, data.position(), function_pointer); } public static void glGetColorTable(int target, int format, int type, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetColorTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, 256); nglGetColorTable(target, format, type, data, data.position() << 3, function_pointer); } public static void glGetColorTable(int target, int format, int type, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetColorTable_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, 256); nglGetColorTable(target, format, type, data, data.position() << 2, function_pointer); @@ -198,7 +213,8 @@ public final class ARBImaging { private static native void nglGetColorTable(int target, int format, int type, Buffer data, int data_position, long function_pointer); public static void glGetColorTableParameter(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTableParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetColorTableParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetColorTableParameteriv(target, pname, params, params.position(), function_pointer); @@ -206,7 +222,8 @@ public final class ARBImaging { private static native void nglGetColorTableParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetColorTableParameter(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetColorTableParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetColorTableParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetColorTableParameterfv(target, pname, params, params.position(), function_pointer); @@ -214,79 +231,90 @@ public final class ARBImaging { private static native void nglGetColorTableParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glBlendEquation(int mode) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glBlendEquation_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glBlendEquation_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendEquation(mode, function_pointer); } private static native void nglBlendEquation(int mode, long function_pointer); public static void glBlendColor(float red, float green, float blue, float alpha) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glBlendColor_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glBlendColor_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendColor(red, green, blue, alpha, function_pointer); } private static native void nglBlendColor(float red, float green, float blue, float alpha, long function_pointer); public static void glHistogram(int target, int width, int internalformat, boolean sink) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glHistogram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glHistogram_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglHistogram(target, width, internalformat, sink, function_pointer); } private static native void nglHistogram(int target, int width, int internalformat, boolean sink, long function_pointer); public static void glResetHistogram(int target) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glResetHistogram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glResetHistogram_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglResetHistogram(target, function_pointer); } private static native void nglResetHistogram(int target, long function_pointer); public static void glGetHistogram(int target, boolean reset, int format, int type, ByteBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetHistogram_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 256); nglGetHistogram(target, reset, format, type, values, values.position(), function_pointer); } public static void glGetHistogram(int target, boolean reset, int format, int type, DoubleBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetHistogram_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 256); nglGetHistogram(target, reset, format, type, values, values.position() << 3, function_pointer); } public static void glGetHistogram(int target, boolean reset, int format, int type, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetHistogram_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 256); nglGetHistogram(target, reset, format, type, values, values.position() << 2, function_pointer); } public static void glGetHistogram(int target, boolean reset, int format, int type, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetHistogram_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 256); nglGetHistogram(target, reset, format, type, values, values.position() << 2, function_pointer); } public static void glGetHistogram(int target, boolean reset, int format, int type, ShortBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetHistogram_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 256); nglGetHistogram(target, reset, format, type, values, values.position() << 1, function_pointer); } private static native void nglGetHistogram(int target, boolean reset, int format, int type, Buffer values, int values_position, long function_pointer); public static void glGetHistogram(int target, boolean reset, int format, int type, long values_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetHistogram_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetHistogramBO(target, reset, format, type, values_buffer_offset, function_pointer); } private static native void nglGetHistogramBO(int target, boolean reset, int format, int type, long values_buffer_offset, long function_pointer); public static void glGetHistogramParameter(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogramParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetHistogramParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 256); nglGetHistogramParameterfv(target, pname, params, params.position(), function_pointer); @@ -294,7 +322,8 @@ public final class ARBImaging { private static native void nglGetHistogramParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetHistogramParameter(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetHistogramParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetHistogramParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 256); nglGetHistogramParameteriv(target, pname, params, params.position(), function_pointer); @@ -302,65 +331,74 @@ public final class ARBImaging { private static native void nglGetHistogramParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glMinmax(int target, int internalformat, boolean sink) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glMinmax_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glMinmax_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMinmax(target, internalformat, sink, function_pointer); } private static native void nglMinmax(int target, int internalformat, boolean sink, long function_pointer); public static void glResetMinmax(int target) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glResetMinmax_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glResetMinmax_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglResetMinmax(target, function_pointer); } private static native void nglResetMinmax(int target, long function_pointer); public static void glGetMinmax(int target, boolean reset, int format, int types, ByteBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetMinmax_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 4); nglGetMinmax(target, reset, format, types, values, values.position(), function_pointer); } public static void glGetMinmax(int target, boolean reset, int format, int types, DoubleBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetMinmax_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 4); nglGetMinmax(target, reset, format, types, values, values.position() << 3, function_pointer); } public static void glGetMinmax(int target, boolean reset, int format, int types, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetMinmax_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 4); nglGetMinmax(target, reset, format, types, values, values.position() << 2, function_pointer); } public static void glGetMinmax(int target, boolean reset, int format, int types, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetMinmax_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 4); nglGetMinmax(target, reset, format, types, values, values.position() << 2, function_pointer); } public static void glGetMinmax(int target, boolean reset, int format, int types, ShortBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetMinmax_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 4); nglGetMinmax(target, reset, format, types, values, values.position() << 1, function_pointer); } private static native void nglGetMinmax(int target, boolean reset, int format, int types, Buffer values, int values_position, long function_pointer); public static void glGetMinmax(int target, boolean reset, int format, int types, long values_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmax_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetMinmax_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetMinmaxBO(target, reset, format, types, values_buffer_offset, function_pointer); } private static native void nglGetMinmaxBO(int target, boolean reset, int format, int types, long values_buffer_offset, long function_pointer); public static void glGetMinmaxParameter(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmaxParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetMinmaxParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetMinmaxParameterfv(target, pname, params, params.position(), function_pointer); @@ -368,7 +406,8 @@ public final class ARBImaging { private static native void nglGetMinmaxParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetMinmaxParameter(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetMinmaxParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetMinmaxParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetMinmaxParameteriv(target, pname, params, params.position(), function_pointer); @@ -376,88 +415,100 @@ public final class ARBImaging { private static native void nglGetMinmaxParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, ByteBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1)); nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position(), function_pointer); } public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, DoubleBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1)); nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position() << 3, function_pointer); } public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, FloatBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1)); nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position() << 2, function_pointer); } public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, IntBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1)); nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position() << 2, function_pointer); } public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, ShortBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, 1, 1)); nglConvolutionFilter1D(target, internalformat, width, format, type, image, image.position() << 1, function_pointer); } private static native void nglConvolutionFilter1D(int target, int internalformat, int width, int format, int type, Buffer image, int image_position, long function_pointer); public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, long image_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglConvolutionFilter1DBO(target, internalformat, width, format, type, image_buffer_offset, function_pointer); } private static native void nglConvolutionFilter1DBO(int target, int internalformat, int width, int format, int type, long image_buffer_offset, long function_pointer); public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, height, 1)); nglConvolutionFilter2D(target, internalformat, width, height, format, type, image, image.position(), function_pointer); } public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, IntBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, height, 1)); nglConvolutionFilter2D(target, internalformat, width, height, format, type, image, image.position() << 2, function_pointer); } public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, ShortBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(image, GLChecks.calculateImageStorage(image, format, type, width, height, 1)); nglConvolutionFilter2D(target, internalformat, width, height, format, type, image, image.position() << 1, function_pointer); } private static native void nglConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer image, int image_position, long function_pointer); public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, long image_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglConvolutionFilter2DBO(target, internalformat, width, height, format, type, image_buffer_offset, function_pointer); } private static native void nglConvolutionFilter2DBO(int target, int internalformat, int width, int height, int format, int type, long image_buffer_offset, long function_pointer); public static void glConvolutionParameterf(int target, int pname, float params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionParameterf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionParameterf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglConvolutionParameterf(target, pname, params, function_pointer); } private static native void nglConvolutionParameterf(int target, int pname, float params, long function_pointer); public static void glConvolutionParameter(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglConvolutionParameterfv(target, pname, params, params.position(), function_pointer); @@ -465,14 +516,16 @@ public final class ARBImaging { private static native void nglConvolutionParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glConvolutionParameteri(int target, int pname, int params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionParameteri_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionParameteri_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglConvolutionParameteri(target, pname, params, function_pointer); } private static native void nglConvolutionParameteri(int target, int pname, int params, long function_pointer); public static void glConvolutionParameter(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glConvolutionParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glConvolutionParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglConvolutionParameteriv(target, pname, params, params.position(), function_pointer); @@ -480,65 +533,74 @@ public final class ARBImaging { private static native void nglConvolutionParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glCopyConvolutionFilter1D(int target, int internalformat, int x, int y, int width) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glCopyConvolutionFilter1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glCopyConvolutionFilter1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyConvolutionFilter1D(target, internalformat, x, y, width, function_pointer); } private static native void nglCopyConvolutionFilter1D(int target, int internalformat, int x, int y, int width, long function_pointer); public static void glCopyConvolutionFilter2D(int target, int internalformat, int x, int y, int width, int height) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glCopyConvolutionFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glCopyConvolutionFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyConvolutionFilter2D(target, internalformat, x, y, width, height, function_pointer); } private static native void nglCopyConvolutionFilter2D(int target, int internalformat, int x, int y, int width, int height, long function_pointer); public static void glGetConvolutionFilter(int target, int format, int type, ByteBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetConvolutionFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(image); nglGetConvolutionFilter(target, format, type, image, image.position(), function_pointer); } public static void glGetConvolutionFilter(int target, int format, int type, DoubleBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetConvolutionFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(image); nglGetConvolutionFilter(target, format, type, image, image.position() << 3, function_pointer); } public static void glGetConvolutionFilter(int target, int format, int type, FloatBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetConvolutionFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(image); nglGetConvolutionFilter(target, format, type, image, image.position() << 2, function_pointer); } public static void glGetConvolutionFilter(int target, int format, int type, IntBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetConvolutionFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(image); nglGetConvolutionFilter(target, format, type, image, image.position() << 2, function_pointer); } public static void glGetConvolutionFilter(int target, int format, int type, ShortBuffer image) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetConvolutionFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(image); nglGetConvolutionFilter(target, format, type, image, image.position() << 1, function_pointer); } private static native void nglGetConvolutionFilter(int target, int format, int type, Buffer image, int image_position, long function_pointer); public static void glGetConvolutionFilter(int target, int format, int type, long image_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetConvolutionFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetConvolutionFilterBO(target, format, type, image_buffer_offset, function_pointer); } private static native void nglGetConvolutionFilterBO(int target, int format, int type, long image_buffer_offset, long function_pointer); public static void glGetConvolutionParameter(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetConvolutionParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetConvolutionParameterfv(target, pname, params, params.position(), function_pointer); @@ -546,7 +608,8 @@ public final class ARBImaging { private static native void nglGetConvolutionParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetConvolutionParameter(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetConvolutionParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetConvolutionParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetConvolutionParameteriv(target, pname, params, params.position(), function_pointer); @@ -554,929 +617,1035 @@ public final class ARBImaging { private static native void nglGetConvolutionParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer row, ByteBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position(), column, column.position(), function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer row, DoubleBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position(), column, column.position() << 3, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer row, FloatBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position(), column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer row, IntBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position(), column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer row, ShortBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position(), column, column.position() << 1, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, DoubleBuffer row, ByteBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 3, column, column.position(), function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, DoubleBuffer row, DoubleBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 3, column, column.position() << 3, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, DoubleBuffer row, FloatBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 3, column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, DoubleBuffer row, IntBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 3, column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, DoubleBuffer row, ShortBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 3, column, column.position() << 1, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, FloatBuffer row, ByteBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position(), function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, FloatBuffer row, DoubleBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position() << 3, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, FloatBuffer row, FloatBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, FloatBuffer row, IntBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, FloatBuffer row, ShortBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position() << 1, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, IntBuffer row, ByteBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position(), function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, IntBuffer row, DoubleBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position() << 3, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, IntBuffer row, FloatBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, IntBuffer row, IntBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, IntBuffer row, ShortBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 2, column, column.position() << 1, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ShortBuffer row, ByteBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 1, column, column.position(), function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ShortBuffer row, DoubleBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 1, column, column.position() << 3, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ShortBuffer row, FloatBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 1, column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ShortBuffer row, IntBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 1, column, column.position() << 2, function_pointer); } public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ShortBuffer row, ShortBuffer column) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); nglSeparableFilter2D(target, internalformat, width, height, format, type, row, row.position() << 1, column, column.position() << 1, function_pointer); } private static native void nglSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, Buffer row, int row_position, Buffer column, int column_position, long function_pointer); public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, long row_buffer_offset, long column_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glSeparableFilter2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glSeparableFilter2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglSeparableFilter2DBO(target, internalformat, width, height, format, type, row_buffer_offset, column_buffer_offset, function_pointer); } private static native void nglSeparableFilter2DBO(int target, int internalformat, int width, int height, int format, int type, long row_buffer_offset, long column_buffer_offset, long function_pointer); public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ByteBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position(), span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ByteBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position(), span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ByteBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position(), span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ByteBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position(), span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, DoubleBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 3, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, DoubleBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 3, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, DoubleBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 3, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, DoubleBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 3, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, IntBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 2, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, IntBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 2, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, IntBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 2, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, IntBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 2, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ShortBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 1, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ShortBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 1, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ShortBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 1, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ShortBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position(), column, column.position() << 1, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, ByteBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position(), span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, ByteBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position(), span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, ByteBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position(), span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, ByteBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position(), span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, DoubleBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 3, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, DoubleBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 3, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, DoubleBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 3, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, DoubleBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 3, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, IntBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 2, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, IntBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 2, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, IntBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 2, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, IntBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 2, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, ShortBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 1, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, ShortBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 1, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, ShortBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 1, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, DoubleBuffer row, ShortBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 3, column, column.position() << 1, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, ByteBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position(), span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, ByteBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position(), span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, ByteBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position(), span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, ByteBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position(), span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, DoubleBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 3, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, DoubleBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 3, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, DoubleBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 3, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, DoubleBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 3, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, IntBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 2, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, IntBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 2, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, IntBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 2, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, IntBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 2, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, ShortBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 1, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, ShortBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 1, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, ShortBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 1, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, FloatBuffer row, ShortBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 1, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, ByteBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position(), span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, ByteBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position(), span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, ByteBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position(), span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, ByteBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position(), span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, DoubleBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 3, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, DoubleBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 3, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, DoubleBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 3, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, DoubleBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 3, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, IntBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 2, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, IntBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 2, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, IntBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 2, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, IntBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 2, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, ShortBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 1, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, ShortBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 1, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, ShortBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 1, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, IntBuffer row, ShortBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 2, column, column.position() << 1, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, ByteBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position(), span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, ByteBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position(), span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, ByteBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position(), span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, ByteBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position(), span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, DoubleBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 3, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, DoubleBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 3, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, DoubleBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 3, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, DoubleBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 3, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, IntBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 2, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, IntBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 2, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, IntBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 2, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, IntBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 2, span, span.position() << 1, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, ShortBuffer column, ByteBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 1, span, span.position(), function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, ShortBuffer column, DoubleBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 1, span, span.position() << 3, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, ShortBuffer column, IntBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); nglGetSeparableFilter(target, format, type, row, row.position() << 1, column, column.position() << 1, span, span.position() << 2, function_pointer); } public static void glGetSeparableFilter(int target, int format, int type, ShortBuffer row, ShortBuffer column, ShortBuffer span) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(row); BufferChecks.checkDirect(column); BufferChecks.checkDirect(span); @@ -1484,9 +1653,10 @@ public final class ARBImaging { } private static native void nglGetSeparableFilter(int target, int format, int type, Buffer row, int row_position, Buffer column, int column_position, Buffer span, int span_position, long function_pointer); public static void glGetSeparableFilter(int target, int format, int type, long row_buffer_offset, long column_buffer_offset, long span_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_imaging_glGetSeparableFilter_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_imaging_glGetSeparableFilter_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetSeparableFilterBO(target, format, type, row_buffer_offset, column_buffer_offset, span_buffer_offset, function_pointer); } private static native void nglGetSeparableFilterBO(int target, int format, int type, long row_buffer_offset, long column_buffer_offset, long span_buffer_offset, long function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ARBMatrixPalette.java b/src/generated/org/lwjgl/opengl/ARBMatrixPalette.java index 7dd0f3da..98634315 100644 --- a/src/generated/org/lwjgl/opengl/ARBMatrixPalette.java +++ b/src/generated/org/lwjgl/opengl/ARBMatrixPalette.java @@ -23,47 +23,53 @@ public final class ARBMatrixPalette { public static void glCurrentPaletteMatrixARB(int index) { - long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glCurrentPaletteMatrixARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_matrix_palette_glCurrentPaletteMatrixARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCurrentPaletteMatrixARB(index, function_pointer); } private static native void nglCurrentPaletteMatrixARB(int index, long function_pointer); public static void glMatrixIndexPointerARB(int size, int stride, ByteBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_matrix_palette_glMatrixIndexPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ARB_matrix_palette_glMatrixIndexPointerARB_pPointer = pPointer; + GLChecks.getReferences(caps).ARB_matrix_palette_glMatrixIndexPointerARB_pPointer = pPointer; nglMatrixIndexPointerARB(size, GL11.GL_UNSIGNED_BYTE, stride, pPointer, pPointer.position(), function_pointer); } public static void glMatrixIndexPointerARB(int size, int stride, IntBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_matrix_palette_glMatrixIndexPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ARB_matrix_palette_glMatrixIndexPointerARB_pPointer = pPointer; + GLChecks.getReferences(caps).ARB_matrix_palette_glMatrixIndexPointerARB_pPointer = pPointer; nglMatrixIndexPointerARB(size, GL11.GL_UNSIGNED_INT, stride, pPointer, pPointer.position() << 2, function_pointer); } public static void glMatrixIndexPointerARB(int size, int stride, ShortBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_matrix_palette_glMatrixIndexPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ARB_matrix_palette_glMatrixIndexPointerARB_pPointer = pPointer; + GLChecks.getReferences(caps).ARB_matrix_palette_glMatrixIndexPointerARB_pPointer = pPointer; nglMatrixIndexPointerARB(size, GL11.GL_UNSIGNED_SHORT, stride, pPointer, pPointer.position() << 1, function_pointer); } private static native void nglMatrixIndexPointerARB(int size, int type, int stride, Buffer pPointer, int pPointer_position, long function_pointer); public static void glMatrixIndexPointerARB(int size, int type, int stride, long pPointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_matrix_palette_glMatrixIndexPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglMatrixIndexPointerARBBO(size, type, stride, pPointer_buffer_offset, function_pointer); } private static native void nglMatrixIndexPointerARBBO(int size, int type, int stride, long pPointer_buffer_offset, long function_pointer); public static void glMatrixIndexuARB(ByteBuffer pIndices) { - long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexubvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_matrix_palette_glMatrixIndexubvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pIndices); nglMatrixIndexubvARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer); @@ -71,7 +77,8 @@ public final class ARBMatrixPalette { private static native void nglMatrixIndexubvARB(int size, ByteBuffer pIndices, int pIndices_position, long function_pointer); public static void glMatrixIndexuARB(ShortBuffer pIndices) { - long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexusvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_matrix_palette_glMatrixIndexusvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pIndices); nglMatrixIndexusvARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer); @@ -79,7 +86,8 @@ public final class ARBMatrixPalette { private static native void nglMatrixIndexusvARB(int size, ShortBuffer pIndices, int pIndices_position, long function_pointer); public static void glMatrixIndexuARB(IntBuffer pIndices) { - long function_pointer = GLContext.getCapabilities().ARB_matrix_palette_glMatrixIndexuivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_matrix_palette_glMatrixIndexuivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pIndices); nglMatrixIndexuivARB((pIndices.remaining()), pIndices, pIndices.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ARBMultisample.java b/src/generated/org/lwjgl/opengl/ARBMultisample.java index 37977951..c157ed6f 100644 --- a/src/generated/org/lwjgl/opengl/ARBMultisample.java +++ b/src/generated/org/lwjgl/opengl/ARBMultisample.java @@ -22,7 +22,8 @@ public final class ARBMultisample { public static void glSampleCoverageARB(float value, boolean invert) { - long function_pointer = GLContext.getCapabilities().ARB_multisample_glSampleCoverageARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multisample_glSampleCoverageARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSampleCoverageARB(value, invert, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ARBMultitexture.java b/src/generated/org/lwjgl/opengl/ARBMultitexture.java index 3ef3ea33..986f2df9 100644 --- a/src/generated/org/lwjgl/opengl/ARBMultitexture.java +++ b/src/generated/org/lwjgl/opengl/ARBMultitexture.java @@ -48,126 +48,144 @@ public final class ARBMultitexture { public static void glClientActiveTextureARB(int texture) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glClientActiveTextureARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glClientActiveTextureARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClientActiveTextureARB(texture, function_pointer); } private static native void nglClientActiveTextureARB(int texture, long function_pointer); public static void glActiveTextureARB(int texture) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glActiveTextureARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glActiveTextureARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglActiveTextureARB(texture, function_pointer); } private static native void nglActiveTextureARB(int texture, long function_pointer); public static void glMultiTexCoord1fARB(int target, float s) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord1fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord1fARB(target, s, function_pointer); } private static native void nglMultiTexCoord1fARB(int target, float s, long function_pointer); public static void glMultiTexCoord1dARB(int target, double s) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord1dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord1dARB(target, s, function_pointer); } private static native void nglMultiTexCoord1dARB(int target, double s, long function_pointer); public static void glMultiTexCoord1iARB(int target, int s) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord1iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord1iARB(target, s, function_pointer); } private static native void nglMultiTexCoord1iARB(int target, int s, long function_pointer); public static void glMultiTexCoord1sARB(int target, short s) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord1sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord1sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord1sARB(target, s, function_pointer); } private static native void nglMultiTexCoord1sARB(int target, short s, long function_pointer); public static void glMultiTexCoord2fARB(int target, float s, float t) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord2fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord2fARB(target, s, t, function_pointer); } private static native void nglMultiTexCoord2fARB(int target, float s, float t, long function_pointer); public static void glMultiTexCoord2dARB(int target, double s, double t) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord2dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord2dARB(target, s, t, function_pointer); } private static native void nglMultiTexCoord2dARB(int target, double s, double t, long function_pointer); public static void glMultiTexCoord2iARB(int target, int s, int t) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord2iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord2iARB(target, s, t, function_pointer); } private static native void nglMultiTexCoord2iARB(int target, int s, int t, long function_pointer); public static void glMultiTexCoord2sARB(int target, short s, short t) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord2sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord2sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord2sARB(target, s, t, function_pointer); } private static native void nglMultiTexCoord2sARB(int target, short s, short t, long function_pointer); public static void glMultiTexCoord3fARB(int target, float s, float t, float r) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord3fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord3fARB(target, s, t, r, function_pointer); } private static native void nglMultiTexCoord3fARB(int target, float s, float t, float r, long function_pointer); public static void glMultiTexCoord3dARB(int target, double s, double t, double r) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord3dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord3dARB(target, s, t, r, function_pointer); } private static native void nglMultiTexCoord3dARB(int target, double s, double t, double r, long function_pointer); public static void glMultiTexCoord3iARB(int target, int s, int t, int r) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord3iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord3iARB(target, s, t, r, function_pointer); } private static native void nglMultiTexCoord3iARB(int target, int s, int t, int r, long function_pointer); public static void glMultiTexCoord3sARB(int target, short s, short t, short r) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord3sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord3sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord3sARB(target, s, t, r, function_pointer); } private static native void nglMultiTexCoord3sARB(int target, short s, short t, short r, long function_pointer); public static void glMultiTexCoord4fARB(int target, float s, float t, float r, float q) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord4fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord4fARB(target, s, t, r, q, function_pointer); } private static native void nglMultiTexCoord4fARB(int target, float s, float t, float r, float q, long function_pointer); public static void glMultiTexCoord4dARB(int target, double s, double t, double r, double q) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord4dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord4dARB(target, s, t, r, q, function_pointer); } private static native void nglMultiTexCoord4dARB(int target, double s, double t, double r, double q, long function_pointer); public static void glMultiTexCoord4iARB(int target, int s, int t, int r, int q) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord4iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord4iARB(target, s, t, r, q, function_pointer); } private static native void nglMultiTexCoord4iARB(int target, int s, int t, int r, int q, long function_pointer); public static void glMultiTexCoord4sARB(int target, short s, short t, short r, short q) { - long function_pointer = GLContext.getCapabilities().ARB_multitexture_glMultiTexCoord4sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_multitexture_glMultiTexCoord4sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord4sARB(target, s, t, r, q, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ARBOcclusionQuery.java b/src/generated/org/lwjgl/opengl/ARBOcclusionQuery.java index a3102803..8c53d69e 100644 --- a/src/generated/org/lwjgl/opengl/ARBOcclusionQuery.java +++ b/src/generated/org/lwjgl/opengl/ARBOcclusionQuery.java @@ -29,7 +29,8 @@ public final class ARBOcclusionQuery { public static void glGenQueriesARB(IntBuffer ids) { - long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGenQueriesARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_occlusion_query_glGenQueriesARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(ids); nglGenQueriesARB((ids.remaining()), ids, ids.position(), function_pointer); @@ -37,7 +38,8 @@ public final class ARBOcclusionQuery { private static native void nglGenQueriesARB(int n, IntBuffer ids, int ids_position, long function_pointer); public static void glDeleteQueriesARB(IntBuffer ids) { - long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glDeleteQueriesARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_occlusion_query_glDeleteQueriesARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(ids); nglDeleteQueriesARB((ids.remaining()), ids, ids.position(), function_pointer); @@ -45,7 +47,8 @@ public final class ARBOcclusionQuery { private static native void nglDeleteQueriesARB(int n, IntBuffer ids, int ids_position, long function_pointer); public static boolean glIsQueryARB(int id) { - long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glIsQueryARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_occlusion_query_glIsQueryARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsQueryARB(id, function_pointer); return __result; @@ -53,21 +56,24 @@ public final class ARBOcclusionQuery { private static native boolean nglIsQueryARB(int id, long function_pointer); public static void glBeginQueryARB(int target, int id) { - long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glBeginQueryARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_occlusion_query_glBeginQueryARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBeginQueryARB(target, id, function_pointer); } private static native void nglBeginQueryARB(int target, int id, long function_pointer); public static void glEndQueryARB(int target) { - long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glEndQueryARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_occlusion_query_glEndQueryARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEndQueryARB(target, function_pointer); } private static native void nglEndQueryARB(int target, long function_pointer); public static void glGetQueryARB(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_occlusion_query_glGetQueryivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetQueryivARB(target, pname, params, params.position(), function_pointer); @@ -75,7 +81,8 @@ public final class ARBOcclusionQuery { private static native void nglGetQueryivARB(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetQueryObjectARB(int id, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryObjectivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_occlusion_query_glGetQueryObjectivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetQueryObjectivARB(id, pname, params, params.position(), function_pointer); @@ -83,7 +90,8 @@ public final class ARBOcclusionQuery { private static native void nglGetQueryObjectivARB(int id, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetQueryObjectuARB(int id, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_occlusion_query_glGetQueryObjectuivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_occlusion_query_glGetQueryObjectuivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetQueryObjectuivARB(id, pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ARBPointParameters.java b/src/generated/org/lwjgl/opengl/ARBPointParameters.java index 62a0761a..0e3d38cc 100644 --- a/src/generated/org/lwjgl/opengl/ARBPointParameters.java +++ b/src/generated/org/lwjgl/opengl/ARBPointParameters.java @@ -17,14 +17,16 @@ public final class ARBPointParameters { public static void glPointParameterfARB(int pname, float param) { - long function_pointer = GLContext.getCapabilities().ARB_point_parameters_glPointParameterfARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_point_parameters_glPointParameterfARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPointParameterfARB(pname, param, function_pointer); } private static native void nglPointParameterfARB(int pname, float param, long function_pointer); public static void glPointParameterARB(int pname, FloatBuffer pfParams) { - long function_pointer = GLContext.getCapabilities().ARB_point_parameters_glPointParameterfvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_point_parameters_glPointParameterfvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pfParams, 4); nglPointParameterfvARB(pname, pfParams, pfParams.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ARBProgram.java b/src/generated/org/lwjgl/opengl/ARBProgram.java index 94942cb4..08b84082 100644 --- a/src/generated/org/lwjgl/opengl/ARBProgram.java +++ b/src/generated/org/lwjgl/opengl/ARBProgram.java @@ -92,7 +92,8 @@ public class ARBProgram { public static void glProgramStringARB(int target, int format, ByteBuffer string) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramStringARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramStringARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(string); nglProgramStringARB(target, format, (string.remaining()), string, string.position(), function_pointer); @@ -100,14 +101,16 @@ public class ARBProgram { private static native void nglProgramStringARB(int target, int format, int length, Buffer string, int string_position, long function_pointer); public static void glBindProgramARB(int target, int program) { - long function_pointer = GLContext.getCapabilities().ARB_program_glBindProgramARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glBindProgramARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindProgramARB(target, program, function_pointer); } private static native void nglBindProgramARB(int target, int program, long function_pointer); public static void glDeleteProgramsARB(IntBuffer programs) { - long function_pointer = GLContext.getCapabilities().ARB_program_glDeleteProgramsARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glDeleteProgramsARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(programs); nglDeleteProgramsARB((programs.remaining()), programs, programs.position(), function_pointer); @@ -115,7 +118,8 @@ public class ARBProgram { private static native void nglDeleteProgramsARB(int n, IntBuffer programs, int programs_position, long function_pointer); public static void glGenProgramsARB(IntBuffer programs) { - long function_pointer = GLContext.getCapabilities().ARB_program_glGenProgramsARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glGenProgramsARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(programs); nglGenProgramsARB((programs.remaining()), programs, programs.position(), function_pointer); @@ -123,21 +127,24 @@ public class ARBProgram { private static native void nglGenProgramsARB(int n, IntBuffer programs, int programs_position, long function_pointer); public static void glProgramEnvParameter4fARB(int target, int index, float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramEnvParameter4fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramEnvParameter4fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglProgramEnvParameter4fARB(target, index, x, y, z, w, function_pointer); } private static native void nglProgramEnvParameter4fARB(int target, int index, float x, float y, float z, float w, long function_pointer); public static void glProgramEnvParameter4dARB(int target, int index, double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramEnvParameter4dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramEnvParameter4dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglProgramEnvParameter4dARB(target, index, x, y, z, w, function_pointer); } private static native void nglProgramEnvParameter4dARB(int target, int index, double x, double y, double z, double w, long function_pointer); public static void glProgramEnvParameter4ARB(int target, int index, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramEnvParameter4fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramEnvParameter4fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglProgramEnvParameter4fvARB(target, index, params, params.position(), function_pointer); @@ -145,7 +152,8 @@ public class ARBProgram { private static native void nglProgramEnvParameter4fvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer); public static void glProgramEnvParameter4ARB(int target, int index, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramEnvParameter4dvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramEnvParameter4dvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglProgramEnvParameter4dvARB(target, index, params, params.position(), function_pointer); @@ -153,21 +161,24 @@ public class ARBProgram { private static native void nglProgramEnvParameter4dvARB(int target, int index, DoubleBuffer params, int params_position, long function_pointer); public static void glProgramLocalParameter4fARB(int target, int index, float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramLocalParameter4fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramLocalParameter4fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglProgramLocalParameter4fARB(target, index, x, y, z, w, function_pointer); } private static native void nglProgramLocalParameter4fARB(int target, int index, float x, float y, float z, float w, long function_pointer); public static void glProgramLocalParameter4dARB(int target, int index, double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramLocalParameter4dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramLocalParameter4dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglProgramLocalParameter4dARB(target, index, x, y, z, w, function_pointer); } private static native void nglProgramLocalParameter4dARB(int target, int index, double x, double y, double z, double w, long function_pointer); public static void glProgramLocalParameter4ARB(int target, int index, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramLocalParameter4fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramLocalParameter4fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglProgramLocalParameter4fvARB(target, index, params, params.position(), function_pointer); @@ -175,7 +186,8 @@ public class ARBProgram { private static native void nglProgramLocalParameter4fvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer); public static void glProgramLocalParameter4ARB(int target, int index, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glProgramLocalParameter4dvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glProgramLocalParameter4dvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglProgramLocalParameter4dvARB(target, index, params, params.position(), function_pointer); @@ -183,7 +195,8 @@ public class ARBProgram { private static native void nglProgramLocalParameter4dvARB(int target, int index, DoubleBuffer params, int params_position, long function_pointer); public static void glGetProgramEnvParameterARB(int target, int index, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramEnvParameterfvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glGetProgramEnvParameterfvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetProgramEnvParameterfvARB(target, index, params, params.position(), function_pointer); @@ -191,7 +204,8 @@ public class ARBProgram { private static native void nglGetProgramEnvParameterfvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer); public static void glGetProgramEnvParameterARB(int target, int index, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramEnvParameterdvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glGetProgramEnvParameterdvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetProgramEnvParameterdvARB(target, index, params, params.position(), function_pointer); @@ -199,7 +213,8 @@ public class ARBProgram { private static native void nglGetProgramEnvParameterdvARB(int target, int index, DoubleBuffer params, int params_position, long function_pointer); public static void glGetProgramLocalParameterARB(int target, int index, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramLocalParameterfvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glGetProgramLocalParameterfvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetProgramLocalParameterfvARB(target, index, params, params.position(), function_pointer); @@ -207,7 +222,8 @@ public class ARBProgram { private static native void nglGetProgramLocalParameterfvARB(int target, int index, FloatBuffer params, int params_position, long function_pointer); public static void glGetProgramLocalParameterARB(int target, int index, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramLocalParameterdvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glGetProgramLocalParameterdvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetProgramLocalParameterdvARB(target, index, params, params.position(), function_pointer); @@ -215,7 +231,8 @@ public class ARBProgram { private static native void nglGetProgramLocalParameterdvARB(int target, int index, DoubleBuffer params, int params_position, long function_pointer); public static void glGetProgramARB(int target, int parameterName, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glGetProgramivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetProgramivARB(target, parameterName, params, params.position(), function_pointer); @@ -223,7 +240,8 @@ public class ARBProgram { private static native void nglGetProgramivARB(int target, int parameterName, IntBuffer params, int params_position, long function_pointer); public static void glGetProgramStringARB(int target, int parameterName, ByteBuffer paramString) { - long function_pointer = GLContext.getCapabilities().ARB_program_glGetProgramStringARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glGetProgramStringARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(paramString); nglGetProgramStringARB(target, parameterName, paramString, paramString.position(), function_pointer); @@ -231,7 +249,8 @@ public class ARBProgram { private static native void nglGetProgramStringARB(int target, int parameterName, Buffer paramString, int paramString_position, long function_pointer); public static boolean glIsProgramARB(int program) { - long function_pointer = GLContext.getCapabilities().ARB_program_glIsProgramARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_program_glIsProgramARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsProgramARB(program, function_pointer); return __result; diff --git a/src/generated/org/lwjgl/opengl/ARBShaderObjects.java b/src/generated/org/lwjgl/opengl/ARBShaderObjects.java index 6d1e9c7e..e19025ed 100644 --- a/src/generated/org/lwjgl/opengl/ARBShaderObjects.java +++ b/src/generated/org/lwjgl/opengl/ARBShaderObjects.java @@ -61,14 +61,16 @@ public final class ARBShaderObjects { public static void glDeleteObjectARB(int obj) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glDeleteObjectARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glDeleteObjectARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDeleteObjectARB(obj, function_pointer); } private static native void nglDeleteObjectARB(int obj, long function_pointer); public static int glGetHandleARB(int pname) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetHandleARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetHandleARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglGetHandleARB(pname, function_pointer); return __result; @@ -76,14 +78,16 @@ public final class ARBShaderObjects { private static native int nglGetHandleARB(int pname, long function_pointer); public static void glDetachObjectARB(int containerObj, int attachedObj) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glDetachObjectARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glDetachObjectARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDetachObjectARB(containerObj, attachedObj, function_pointer); } private static native void nglDetachObjectARB(int containerObj, int attachedObj, long function_pointer); public static int glCreateShaderObjectARB(int shaderType) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCreateShaderObjectARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glCreateShaderObjectARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglCreateShaderObjectARB(shaderType, function_pointer); return __result; @@ -96,7 +100,8 @@ public final class ARBShaderObjects { * This method uses just a single string, that should NOT be null-terminated. */ public static void glShaderSourceARB(int shader, ByteBuffer string) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glShaderSourceARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glShaderSourceARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(string); nglShaderSourceARB(shader, 1, string, string.position(), (string.remaining()), function_pointer); @@ -104,14 +109,16 @@ public final class ARBShaderObjects { private static native void nglShaderSourceARB(int shader, int count, ByteBuffer string, int string_position, int length, long function_pointer); public static void glCompileShaderARB(int shaderObj) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCompileShaderARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glCompileShaderARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCompileShaderARB(shaderObj, function_pointer); } private static native void nglCompileShaderARB(int shaderObj, long function_pointer); public static int glCreateProgramObjectARB() { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glCreateProgramObjectARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glCreateProgramObjectARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglCreateProgramObjectARB(function_pointer); return __result; @@ -119,91 +126,104 @@ public final class ARBShaderObjects { private static native int nglCreateProgramObjectARB(long function_pointer); public static void glAttachObjectARB(int containerObj, int obj) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glAttachObjectARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glAttachObjectARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglAttachObjectARB(containerObj, obj, function_pointer); } private static native void nglAttachObjectARB(int containerObj, int obj, long function_pointer); public static void glLinkProgramARB(int programObj) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glLinkProgramARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glLinkProgramARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLinkProgramARB(programObj, function_pointer); } private static native void nglLinkProgramARB(int programObj, long function_pointer); public static void glUseProgramObjectARB(int programObj) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUseProgramObjectARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUseProgramObjectARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUseProgramObjectARB(programObj, function_pointer); } private static native void nglUseProgramObjectARB(int programObj, long function_pointer); public static void glValidateProgramARB(int programObj) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glValidateProgramARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glValidateProgramARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglValidateProgramARB(programObj, function_pointer); } private static native void nglValidateProgramARB(int programObj, long function_pointer); public static void glUniform1fARB(int location, float v0) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform1fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform1fARB(location, v0, function_pointer); } private static native void nglUniform1fARB(int location, float v0, long function_pointer); public static void glUniform2fARB(int location, float v0, float v1) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform2fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform2fARB(location, v0, v1, function_pointer); } private static native void nglUniform2fARB(int location, float v0, float v1, long function_pointer); public static void glUniform3fARB(int location, float v0, float v1, float v2) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform3fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform3fARB(location, v0, v1, v2, function_pointer); } private static native void nglUniform3fARB(int location, float v0, float v1, float v2, long function_pointer); public static void glUniform4fARB(int location, float v0, float v1, float v2, float v3) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform4fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform4fARB(location, v0, v1, v2, v3, function_pointer); } private static native void nglUniform4fARB(int location, float v0, float v1, float v2, float v3, long function_pointer); public static void glUniform1iARB(int location, int v0) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform1iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform1iARB(location, v0, function_pointer); } private static native void nglUniform1iARB(int location, int v0, long function_pointer); public static void glUniform2iARB(int location, int v0, int v1) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform2iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform2iARB(location, v0, v1, function_pointer); } private static native void nglUniform2iARB(int location, int v0, int v1, long function_pointer); public static void glUniform3iARB(int location, int v0, int v1, int v2) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform3iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform3iARB(location, v0, v1, v2, function_pointer); } private static native void nglUniform3iARB(int location, int v0, int v1, int v2, long function_pointer); public static void glUniform4iARB(int location, int v0, int v1, int v2, int v3) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform4iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform4iARB(location, v0, v1, v2, v3, function_pointer); } private static native void nglUniform4iARB(int location, int v0, int v1, int v2, int v3, long function_pointer); public static void glUniform1ARB(int location, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform1fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform1fvARB(location, (values.remaining()), values, values.position(), function_pointer); @@ -211,7 +231,8 @@ public final class ARBShaderObjects { private static native void nglUniform1fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer); public static void glUniform2ARB(int location, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform2fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform2fvARB(location, (values.remaining()) >> 1, values, values.position(), function_pointer); @@ -219,7 +240,8 @@ public final class ARBShaderObjects { private static native void nglUniform2fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer); public static void glUniform3ARB(int location, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform3fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform3fvARB(location, (values.remaining()) / 3, values, values.position(), function_pointer); @@ -227,7 +249,8 @@ public final class ARBShaderObjects { private static native void nglUniform3fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer); public static void glUniform4ARB(int location, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform4fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform4fvARB(location, (values.remaining()) >> 2, values, values.position(), function_pointer); @@ -235,7 +258,8 @@ public final class ARBShaderObjects { private static native void nglUniform4fvARB(int location, int count, FloatBuffer values, int values_position, long function_pointer); public static void glUniform1ARB(int location, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform1ivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform1ivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform1ivARB(location, (values.remaining()), values, values.position(), function_pointer); @@ -243,7 +267,8 @@ public final class ARBShaderObjects { private static native void nglUniform1ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer); public static void glUniform2ARB(int location, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform2ivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform2ivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform2ivARB(location, (values.remaining()) >> 1, values, values.position(), function_pointer); @@ -251,7 +276,8 @@ public final class ARBShaderObjects { private static native void nglUniform2ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer); public static void glUniform3ARB(int location, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform3ivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform3ivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform3ivARB(location, (values.remaining()) / 3, values, values.position(), function_pointer); @@ -259,7 +285,8 @@ public final class ARBShaderObjects { private static native void nglUniform3ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer); public static void glUniform4ARB(int location, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniform4ivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniform4ivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform4ivARB(location, (values.remaining()) >> 2, values, values.position(), function_pointer); @@ -267,7 +294,8 @@ public final class ARBShaderObjects { private static native void nglUniform4ivARB(int location, int count, IntBuffer values, int values_position, long function_pointer); public static void glUniformMatrix2ARB(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix2fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniformMatrix2fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix2fvARB(location, (matrices.remaining()) >> 2, transpose, matrices, matrices.position(), function_pointer); @@ -275,7 +303,8 @@ public final class ARBShaderObjects { private static native void nglUniformMatrix2fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); public static void glUniformMatrix3ARB(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix3fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniformMatrix3fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix3fvARB(location, (matrices.remaining()) / (3 * 3), transpose, matrices, matrices.position(), function_pointer); @@ -283,7 +312,8 @@ public final class ARBShaderObjects { private static native void nglUniformMatrix3fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); public static void glUniformMatrix4ARB(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glUniformMatrix4fvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glUniformMatrix4fvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix4fvARB(location, (matrices.remaining()) >> 4, transpose, matrices, matrices.position(), function_pointer); @@ -291,7 +321,8 @@ public final class ARBShaderObjects { private static native void nglUniformMatrix4fvARB(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); public static void glGetObjectParameterARB(int obj, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetObjectParameterfvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetObjectParameterfvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetObjectParameterfvARB(obj, pname, params, params.position(), function_pointer); @@ -299,7 +330,8 @@ public final class ARBShaderObjects { private static native void nglGetObjectParameterfvARB(int obj, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetObjectParameterARB(int obj, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetObjectParameterivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetObjectParameterivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetObjectParameterivARB(obj, pname, params, params.position(), function_pointer); @@ -307,7 +339,8 @@ public final class ARBShaderObjects { private static native void nglGetObjectParameterivARB(int obj, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetInfoLogARB(int obj, IntBuffer length, ByteBuffer infoLog) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetInfoLogARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetInfoLogARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); @@ -317,7 +350,8 @@ public final class ARBShaderObjects { private static native void nglGetInfoLogARB(int obj, int maxLength, IntBuffer length, int length_position, ByteBuffer infoLog, int infoLog_position, long function_pointer); public static void glGetAttachedObjectsARB(int containerObj, IntBuffer count, IntBuffer obj) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetAttachedObjectsARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetAttachedObjectsARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (count != null) BufferChecks.checkBuffer(count, 1); @@ -332,7 +366,8 @@ public final class ARBShaderObjects { * @param name */ public static int glGetUniformLocationARB(int programObj, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetUniformLocationARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetUniformLocationARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); BufferChecks.checkNullTerminated(name); @@ -342,7 +377,8 @@ public final class ARBShaderObjects { private static native int nglGetUniformLocationARB(int programObj, ByteBuffer name, int name_position, long function_pointer); public static void glGetActiveUniformARB(int programObj, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetActiveUniformARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetActiveUniformARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); @@ -354,7 +390,8 @@ public final class ARBShaderObjects { private static native void nglGetActiveUniformARB(int programObj, int index, int maxLength, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer); public static void glGetUniformARB(int programObj, int location, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetUniformfvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetUniformfvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetUniformfvARB(programObj, location, params, params.position(), function_pointer); @@ -362,7 +399,8 @@ public final class ARBShaderObjects { private static native void nglGetUniformfvARB(int programObj, int location, FloatBuffer params, int params_position, long function_pointer); public static void glGetUniformARB(int programObj, int location, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetUniformivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetUniformivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetUniformivARB(programObj, location, params, params.position(), function_pointer); @@ -370,7 +408,8 @@ public final class ARBShaderObjects { private static native void nglGetUniformivARB(int programObj, int location, IntBuffer params, int params_position, long function_pointer); public static void glGetShaderSourceARB(int obj, IntBuffer length, ByteBuffer source) { - long function_pointer = GLContext.getCapabilities().ARB_shader_objects_glGetShaderSourceARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_shader_objects_glGetShaderSourceARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); diff --git a/src/generated/org/lwjgl/opengl/ARBTextureCompression.java b/src/generated/org/lwjgl/opengl/ARBTextureCompression.java index b2eb5ea0..b26263ed 100644 --- a/src/generated/org/lwjgl/opengl/ARBTextureCompression.java +++ b/src/generated/org/lwjgl/opengl/ARBTextureCompression.java @@ -24,309 +24,351 @@ public final class ARBTextureCompression { public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position(), function_pointer); } public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, DoubleBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 3, function_pointer); } public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, FloatBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position() << 1, function_pointer); } private static native void nglCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, Buffer pData, int pData_position, long function_pointer); public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, long pData_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexImage1DARBBO(target, level, internalformat, width, border, imageSize, pData_buffer_offset, function_pointer); } private static native void nglCompressedTexImage1DARBBO(int target, int level, int internalformat, int width, int border, int imageSize, long pData_buffer_offset, long function_pointer); public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position(), function_pointer); } public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, DoubleBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position() << 3, function_pointer); } public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, FloatBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData, pData.position() << 1, function_pointer); } private static native void nglCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer pData, int pData_position, long function_pointer); public static void glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, long pData_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexImage2DARBBO(target, level, internalformat, width, height, border, imageSize, pData_buffer_offset, function_pointer); } private static native void nglCompressedTexImage2DARBBO(int target, int level, int internalformat, int width, int height, int border, int imageSize, long pData_buffer_offset, long function_pointer); public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position(), function_pointer); } public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, DoubleBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 3, function_pointer); } public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData, pData.position() << 1, function_pointer); } private static native void nglCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, Buffer pData, int pData_position, long function_pointer); public static void glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long pData_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexImage3DARBBO(target, level, internalformat, width, height, depth, border, imageSize, pData_buffer_offset, function_pointer); } private static native void nglCompressedTexImage3DARBBO(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long pData_buffer_offset, long function_pointer); public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, ByteBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position(), function_pointer); } public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, DoubleBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 3, function_pointer); } public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, FloatBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, ShortBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, pData, pData.position() << 1, function_pointer); } private static native void nglCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, Buffer pData, int pData_position, long function_pointer); public static void glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, long pData_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage1DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexSubImage1DARBBO(target, level, xoffset, width, format, imageSize, pData_buffer_offset, function_pointer); } private static native void nglCompressedTexSubImage1DARBBO(int target, int level, int xoffset, int width, int format, int imageSize, long pData_buffer_offset, long function_pointer); public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ByteBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position(), function_pointer); } public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, DoubleBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 3, function_pointer); } public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, FloatBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ShortBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, pData, pData.position() << 1, function_pointer); } private static native void nglCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer pData, int pData_position, long function_pointer); public static void glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, long pData_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage2DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexSubImage2DARBBO(target, level, xoffset, yoffset, width, height, format, imageSize, pData_buffer_offset, function_pointer); } private static native void nglCompressedTexSubImage2DARBBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, long pData_buffer_offset, long function_pointer); public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ByteBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position(), function_pointer); } public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, DoubleBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 3, function_pointer); } public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, FloatBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, IntBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 2, function_pointer); } public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ShortBuffer pData) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(pData); nglCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData, pData.position() << 1, function_pointer); } private static native void nglCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, Buffer pData, int pData_position, long function_pointer); public static void glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long pData_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glCompressedTexSubImage3DARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexSubImage3DARBBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pData_buffer_offset, function_pointer); } private static native void nglCompressedTexSubImage3DARBBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long pData_buffer_offset, long function_pointer); public static void glGetCompressedTexImageARB(int target, int lod, ByteBuffer pImg) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glGetCompressedTexImageARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(pImg); nglGetCompressedTexImageARB(target, lod, pImg, pImg.position(), function_pointer); } public static void glGetCompressedTexImageARB(int target, int lod, DoubleBuffer pImg) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glGetCompressedTexImageARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(pImg); nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 3, function_pointer); } public static void glGetCompressedTexImageARB(int target, int lod, FloatBuffer pImg) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glGetCompressedTexImageARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(pImg); nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 2, function_pointer); } public static void glGetCompressedTexImageARB(int target, int lod, IntBuffer pImg) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glGetCompressedTexImageARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(pImg); nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 2, function_pointer); } public static void glGetCompressedTexImageARB(int target, int lod, ShortBuffer pImg) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glGetCompressedTexImageARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(pImg); nglGetCompressedTexImageARB(target, lod, pImg, pImg.position() << 1, function_pointer); } private static native void nglGetCompressedTexImageARB(int target, int lod, Buffer pImg, int pImg_position, long function_pointer); public static void glGetCompressedTexImageARB(int target, int lod, long pImg_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_texture_compression_glGetCompressedTexImageARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_texture_compression_glGetCompressedTexImageARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetCompressedTexImageARBBO(target, lod, pImg_buffer_offset, function_pointer); } private static native void nglGetCompressedTexImageARBBO(int target, int lod, long pImg_buffer_offset, long function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ARBTransposeMatrix.java b/src/generated/org/lwjgl/opengl/ARBTransposeMatrix.java index cad073e7..ce17e9e8 100644 --- a/src/generated/org/lwjgl/opengl/ARBTransposeMatrix.java +++ b/src/generated/org/lwjgl/opengl/ARBTransposeMatrix.java @@ -17,7 +17,8 @@ public final class ARBTransposeMatrix { public static void glLoadTransposeMatrixARB(FloatBuffer pfMtx) { - long function_pointer = GLContext.getCapabilities().ARB_transpose_matrix_glLoadTransposeMatrixfARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_transpose_matrix_glLoadTransposeMatrixfARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pfMtx, 16); nglLoadTransposeMatrixfARB(pfMtx, pfMtx.position(), function_pointer); @@ -25,7 +26,8 @@ public final class ARBTransposeMatrix { private static native void nglLoadTransposeMatrixfARB(FloatBuffer pfMtx, int pfMtx_position, long function_pointer); public static void glMultTransposeMatrixARB(FloatBuffer pfMtx) { - long function_pointer = GLContext.getCapabilities().ARB_transpose_matrix_glMultTransposeMatrixfARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_transpose_matrix_glMultTransposeMatrixfARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pfMtx, 16); nglMultTransposeMatrixfARB(pfMtx, pfMtx.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ARBVertexBlend.java b/src/generated/org/lwjgl/opengl/ARBVertexBlend.java index cd2d0b7b..dde20384 100644 --- a/src/generated/org/lwjgl/opengl/ARBVertexBlend.java +++ b/src/generated/org/lwjgl/opengl/ARBVertexBlend.java @@ -55,7 +55,8 @@ public final class ARBVertexBlend { public static void glWeightARB(ByteBuffer pWeights) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightbvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightbvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightbvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer); @@ -63,7 +64,8 @@ public final class ARBVertexBlend { private static native void nglWeightbvARB(int size, ByteBuffer pWeights, int pWeights_position, long function_pointer); public static void glWeightARB(ShortBuffer pWeights) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightsvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightsvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightsvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer); @@ -71,7 +73,8 @@ public final class ARBVertexBlend { private static native void nglWeightsvARB(int size, ShortBuffer pWeights, int pWeights_position, long function_pointer); public static void glWeightARB(IntBuffer pWeights) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightivARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer); @@ -79,7 +82,8 @@ public final class ARBVertexBlend { private static native void nglWeightivARB(int size, IntBuffer pWeights, int pWeights_position, long function_pointer); public static void glWeightARB(FloatBuffer pWeights) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightfvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightfvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightfvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer); @@ -87,7 +91,8 @@ public final class ARBVertexBlend { private static native void nglWeightfvARB(int size, FloatBuffer pWeights, int pWeights_position, long function_pointer); public static void glWeightARB(DoubleBuffer pWeights) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightdvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightdvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightdvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer); @@ -95,7 +100,8 @@ public final class ARBVertexBlend { private static native void nglWeightdvARB(int size, DoubleBuffer pWeights, int pWeights_position, long function_pointer); public static void glWeightuARB(ByteBuffer pWeights) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightubvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightubvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightubvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer); @@ -103,7 +109,8 @@ public final class ARBVertexBlend { private static native void nglWeightubvARB(int size, ByteBuffer pWeights, int pWeights_position, long function_pointer); public static void glWeightuARB(ShortBuffer pWeights) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightusvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightusvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightusvARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer); @@ -111,7 +118,8 @@ public final class ARBVertexBlend { private static native void nglWeightusvARB(int size, ShortBuffer pWeights, int pWeights_position, long function_pointer); public static void glWeightuARB(IntBuffer pWeights) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightuivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightuivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pWeights); nglWeightuivARB((pWeights.remaining()), pWeights, pWeights.position(), function_pointer); @@ -119,56 +127,63 @@ public final class ARBVertexBlend { private static native void nglWeightuivARB(int size, IntBuffer pWeights, int pWeights_position, long function_pointer); public static void glWeightPointerARB(int size, int stride, DoubleBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; + GLChecks.getReferences(caps).ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; nglWeightPointerARB(size, GL11.GL_DOUBLE, stride, pPointer, pPointer.position() << 3, function_pointer); } public static void glWeightPointerARB(int size, int stride, FloatBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; + GLChecks.getReferences(caps).ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; nglWeightPointerARB(size, GL11.GL_FLOAT, stride, pPointer, pPointer.position() << 2, function_pointer); } public static void glWeightPointerARB(int size, boolean unsigned, int stride, ByteBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; + GLChecks.getReferences(caps).ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; nglWeightPointerARB(size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pPointer, pPointer.position(), function_pointer); } public static void glWeightPointerARB(int size, boolean unsigned, int stride, IntBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; + GLChecks.getReferences(caps).ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; nglWeightPointerARB(size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, stride, pPointer, pPointer.position() << 2, function_pointer); } public static void glWeightPointerARB(int size, boolean unsigned, int stride, ShortBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; + GLChecks.getReferences(caps).ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer; nglWeightPointerARB(size, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, stride, pPointer, pPointer.position() << 1, function_pointer); } private static native void nglWeightPointerARB(int size, int type, int stride, Buffer pPointer, int pPointer_position, long function_pointer); public static void glWeightPointerARB(int size, int type, int stride, long pPointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glWeightPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glWeightPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglWeightPointerARBBO(size, type, stride, pPointer_buffer_offset, function_pointer); } private static native void nglWeightPointerARBBO(int size, int type, int stride, long pPointer_buffer_offset, long function_pointer); public static void glVertexBlendARB(int count) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_blend_glVertexBlendARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_blend_glVertexBlendARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexBlendARB(count, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ARBVertexProgram.java b/src/generated/org/lwjgl/opengl/ARBVertexProgram.java index 1341311b..dfe33879 100644 --- a/src/generated/org/lwjgl/opengl/ARBVertexProgram.java +++ b/src/generated/org/lwjgl/opengl/ARBVertexProgram.java @@ -55,161 +55,183 @@ public final class ARBVertexProgram extends ARBProgram { public static void glVertexAttrib1sARB(int index, short x) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib1sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib1sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1sARB(index, x, function_pointer); } private static native void nglVertexAttrib1sARB(int index, short x, long function_pointer); public static void glVertexAttrib1fARB(int index, float x) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib1fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib1fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1fARB(index, x, function_pointer); } private static native void nglVertexAttrib1fARB(int index, float x, long function_pointer); public static void glVertexAttrib1dARB(int index, double x) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib1dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib1dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1dARB(index, x, function_pointer); } private static native void nglVertexAttrib1dARB(int index, double x, long function_pointer); public static void glVertexAttrib2sARB(int index, short x, short y) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib2sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib2sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2sARB(index, x, y, function_pointer); } private static native void nglVertexAttrib2sARB(int index, short x, short y, long function_pointer); public static void glVertexAttrib2fARB(int index, float x, float y) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib2fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib2fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2fARB(index, x, y, function_pointer); } private static native void nglVertexAttrib2fARB(int index, float x, float y, long function_pointer); public static void glVertexAttrib2dARB(int index, double x, double y) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib2dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib2dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2dARB(index, x, y, function_pointer); } private static native void nglVertexAttrib2dARB(int index, double x, double y, long function_pointer); public static void glVertexAttrib3sARB(int index, short x, short y, short z) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib3sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib3sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3sARB(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3sARB(int index, short x, short y, short z, long function_pointer); public static void glVertexAttrib3fARB(int index, float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib3fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib3fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3fARB(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3fARB(int index, float x, float y, float z, long function_pointer); public static void glVertexAttrib3dARB(int index, double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib3dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib3dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3dARB(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3dARB(int index, double x, double y, double z, long function_pointer); public static void glVertexAttrib4sARB(int index, short x, short y, short z, short w) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib4sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4sARB(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4sARB(int index, short x, short y, short z, short w, long function_pointer); public static void glVertexAttrib4fARB(int index, float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib4fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4fARB(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4fARB(int index, float x, float y, float z, float w, long function_pointer); public static void glVertexAttrib4dARB(int index, double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib4dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4dARB(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4dARB(int index, double x, double y, double z, double w, long function_pointer); public static void glVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttrib4NubARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttrib4NubARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4NubARB(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w, long function_pointer); public static void glVertexAttribPointerARB(int index, int size, boolean normalized, int stride, DoubleBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, GL11.GL_DOUBLE, normalized, stride, buffer, buffer.position() << 3, function_pointer); } public static void glVertexAttribPointerARB(int index, int size, boolean normalized, int stride, FloatBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, GL11.GL_FLOAT, normalized, stride, buffer, buffer.position() << 2, function_pointer); } public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, normalized, stride, buffer, buffer.position(), function_pointer); } public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, normalized, stride, buffer, buffer.position() << 2, function_pointer); } public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_program_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, normalized, stride, buffer, buffer.position() << 1, function_pointer); } private static native void nglVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, Buffer buffer, int buffer_position, long function_pointer); public static void glVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, long buffer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglVertexAttribPointerARBBO(index, size, type, normalized, stride, buffer_buffer_offset, function_pointer); } private static native void nglVertexAttribPointerARBBO(int index, int size, int type, boolean normalized, int stride, long buffer_buffer_offset, long function_pointer); public static void glEnableVertexAttribArrayARB(int index) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glEnableVertexAttribArrayARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glEnableVertexAttribArrayARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEnableVertexAttribArrayARB(index, function_pointer); } private static native void nglEnableVertexAttribArrayARB(int index, long function_pointer); public static void glDisableVertexAttribArrayARB(int index) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glDisableVertexAttribArrayARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glDisableVertexAttribArrayARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDisableVertexAttribArrayARB(index, function_pointer); } private static native void nglDisableVertexAttribArrayARB(int index, long function_pointer); public static void glGetVertexAttribARB(int index, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribfvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glGetVertexAttribfvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetVertexAttribfvARB(index, pname, params, params.position(), function_pointer); @@ -217,7 +239,8 @@ public final class ARBVertexProgram extends ARBProgram { private static native void nglGetVertexAttribfvARB(int index, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetVertexAttribARB(int index, int pname, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribdvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glGetVertexAttribdvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetVertexAttribdvARB(index, pname, params, params.position(), function_pointer); @@ -225,7 +248,8 @@ public final class ARBVertexProgram extends ARBProgram { private static native void nglGetVertexAttribdvARB(int index, int pname, DoubleBuffer params, int params_position, long function_pointer); public static void glGetVertexAttribARB(int index, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glGetVertexAttribivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetVertexAttribivARB(index, pname, params, params.position(), function_pointer); @@ -233,7 +257,8 @@ public final class ARBVertexProgram extends ARBProgram { private static native void nglGetVertexAttribivARB(int index, int pname, IntBuffer params, int params_position, long function_pointer); public static java.nio.ByteBuffer glGetVertexAttribPointerARB(int index, int pname, int result_size) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_program_glGetVertexAttribPointervARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_program_glGetVertexAttribPointervARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglGetVertexAttribPointervARB(index, pname, result_size, function_pointer); return __result; diff --git a/src/generated/org/lwjgl/opengl/ARBVertexShader.java b/src/generated/org/lwjgl/opengl/ARBVertexShader.java index 29cba61a..cace7ba3 100644 --- a/src/generated/org/lwjgl/opengl/ARBVertexShader.java +++ b/src/generated/org/lwjgl/opengl/ARBVertexShader.java @@ -64,161 +64,183 @@ public final class ARBVertexShader { public static void glVertexAttrib1sARB(int index, short v0) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib1sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib1sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1sARB(index, v0, function_pointer); } private static native void nglVertexAttrib1sARB(int index, short v0, long function_pointer); public static void glVertexAttrib1fARB(int index, float v0) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib1fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib1fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1fARB(index, v0, function_pointer); } private static native void nglVertexAttrib1fARB(int index, float v0, long function_pointer); public static void glVertexAttrib1dARB(int index, double v0) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib1dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib1dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1dARB(index, v0, function_pointer); } private static native void nglVertexAttrib1dARB(int index, double v0, long function_pointer); public static void glVertexAttrib2sARB(int index, short v0, short v1) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib2sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib2sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2sARB(index, v0, v1, function_pointer); } private static native void nglVertexAttrib2sARB(int index, short v0, short v1, long function_pointer); public static void glVertexAttrib2fARB(int index, float v0, float v1) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib2fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib2fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2fARB(index, v0, v1, function_pointer); } private static native void nglVertexAttrib2fARB(int index, float v0, float v1, long function_pointer); public static void glVertexAttrib2dARB(int index, double v0, double v1) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib2dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib2dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2dARB(index, v0, v1, function_pointer); } private static native void nglVertexAttrib2dARB(int index, double v0, double v1, long function_pointer); public static void glVertexAttrib3sARB(int index, short v0, short v1, short v2) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib3sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib3sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3sARB(index, v0, v1, v2, function_pointer); } private static native void nglVertexAttrib3sARB(int index, short v0, short v1, short v2, long function_pointer); public static void glVertexAttrib3fARB(int index, float v0, float v1, float v2) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib3fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib3fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3fARB(index, v0, v1, v2, function_pointer); } private static native void nglVertexAttrib3fARB(int index, float v0, float v1, float v2, long function_pointer); public static void glVertexAttrib3dARB(int index, double v0, double v1, double v2) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib3dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib3dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3dARB(index, v0, v1, v2, function_pointer); } private static native void nglVertexAttrib3dARB(int index, double v0, double v1, double v2, long function_pointer); public static void glVertexAttrib4sARB(int index, short v0, short v1, short v2, short v3) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib4sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib4sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4sARB(index, v0, v1, v2, v3, function_pointer); } private static native void nglVertexAttrib4sARB(int index, short v0, short v1, short v2, short v3, long function_pointer); public static void glVertexAttrib4fARB(int index, float v0, float v1, float v2, float v3) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib4fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib4fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4fARB(index, v0, v1, v2, v3, function_pointer); } private static native void nglVertexAttrib4fARB(int index, float v0, float v1, float v2, float v3, long function_pointer); public static void glVertexAttrib4dARB(int index, double v0, double v1, double v2, double v3) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib4dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib4dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4dARB(index, v0, v1, v2, v3, function_pointer); } private static native void nglVertexAttrib4dARB(int index, double v0, double v1, double v2, double v3, long function_pointer); public static void glVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttrib4NubARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttrib4NubARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4NubARB(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w, long function_pointer); public static void glVertexAttribPointerARB(int index, int size, boolean normalized, int stride, DoubleBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, GL11.GL_DOUBLE, normalized, stride, buffer, buffer.position() << 3, function_pointer); } public static void glVertexAttribPointerARB(int index, int size, boolean normalized, int stride, FloatBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, GL11.GL_FLOAT, normalized, stride, buffer, buffer.position() << 2, function_pointer); } public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, normalized, stride, buffer, buffer.position(), function_pointer); } public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, normalized, stride, buffer, buffer.position() << 2, function_pointer); } public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer buffer) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; + GLChecks.getReferences(caps).ARB_vertex_shader_glVertexAttribPointerARB_buffer = buffer; nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, normalized, stride, buffer, buffer.position() << 1, function_pointer); } private static native void nglVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, Buffer buffer, int buffer_position, long function_pointer); public static void glVertexAttribPointerARB(int index, int size, int type, boolean normalized, int stride, long buffer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glVertexAttribPointerARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glVertexAttribPointerARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglVertexAttribPointerARBBO(index, size, type, normalized, stride, buffer_buffer_offset, function_pointer); } private static native void nglVertexAttribPointerARBBO(int index, int size, int type, boolean normalized, int stride, long buffer_buffer_offset, long function_pointer); public static void glEnableVertexAttribArrayARB(int index) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glEnableVertexAttribArrayARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glEnableVertexAttribArrayARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEnableVertexAttribArrayARB(index, function_pointer); } private static native void nglEnableVertexAttribArrayARB(int index, long function_pointer); public static void glDisableVertexAttribArrayARB(int index) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glDisableVertexAttribArrayARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glDisableVertexAttribArrayARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDisableVertexAttribArrayARB(index, function_pointer); } private static native void nglDisableVertexAttribArrayARB(int index, long function_pointer); public static void glBindAttribLocationARB(int programObj, int index, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glBindAttribLocationARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glBindAttribLocationARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); BufferChecks.checkNullTerminated(name); @@ -227,7 +249,8 @@ public final class ARBVertexShader { private static native void nglBindAttribLocationARB(int programObj, int index, ByteBuffer name, int name_position, long function_pointer); public static void glGetActiveAttribARB(int programObj, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetActiveAttribARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glGetActiveAttribARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); @@ -239,7 +262,8 @@ public final class ARBVertexShader { private static native void nglGetActiveAttribARB(int programObj, int index, int maxLength, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer); public static int glGetAttribLocationARB(int programObj, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetAttribLocationARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glGetAttribLocationARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); BufferChecks.checkNullTerminated(name); @@ -249,7 +273,8 @@ public final class ARBVertexShader { private static native int nglGetAttribLocationARB(int programObj, ByteBuffer name, int name_position, long function_pointer); public static void glGetVertexAttribARB(int index, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetVertexAttribfvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glGetVertexAttribfvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetVertexAttribfvARB(index, pname, params, params.position(), function_pointer); @@ -257,7 +282,8 @@ public final class ARBVertexShader { private static native void nglGetVertexAttribfvARB(int index, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetVertexAttribARB(int index, int pname, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetVertexAttribdvARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glGetVertexAttribdvARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetVertexAttribdvARB(index, pname, params, params.position(), function_pointer); @@ -265,7 +291,8 @@ public final class ARBVertexShader { private static native void nglGetVertexAttribdvARB(int index, int pname, DoubleBuffer params, int params_position, long function_pointer); public static void glGetVertexAttribARB(int index, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetVertexAttribivARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glGetVertexAttribivARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetVertexAttribivARB(index, pname, params, params.position(), function_pointer); @@ -273,7 +300,8 @@ public final class ARBVertexShader { private static native void nglGetVertexAttribivARB(int index, int pname, IntBuffer params, int params_position, long function_pointer); public static java.nio.ByteBuffer glGetVertexAttribPointerARB(int index, int pname, int result_size) { - long function_pointer = GLContext.getCapabilities().ARB_vertex_shader_glGetVertexAttribPointervARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_vertex_shader_glGetVertexAttribPointervARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglGetVertexAttribPointervARB(index, pname, result_size, function_pointer); return __result; diff --git a/src/generated/org/lwjgl/opengl/ARBWindowPos.java b/src/generated/org/lwjgl/opengl/ARBWindowPos.java index 8ee850df..a549e8b2 100644 --- a/src/generated/org/lwjgl/opengl/ARBWindowPos.java +++ b/src/generated/org/lwjgl/opengl/ARBWindowPos.java @@ -13,56 +13,64 @@ public final class ARBWindowPos { public static void glWindowPos2fARB(float x, float y) { - long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_window_pos_glWindowPos2fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos2fARB(x, y, function_pointer); } private static native void nglWindowPos2fARB(float x, float y, long function_pointer); public static void glWindowPos2dARB(double x, double y) { - long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_window_pos_glWindowPos2dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos2dARB(x, y, function_pointer); } private static native void nglWindowPos2dARB(double x, double y, long function_pointer); public static void glWindowPos2iARB(int x, int y) { - long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_window_pos_glWindowPos2iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos2iARB(x, y, function_pointer); } private static native void nglWindowPos2iARB(int x, int y, long function_pointer); public static void glWindowPos2sARB(short x, short y) { - long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos2sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_window_pos_glWindowPos2sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos2sARB(x, y, function_pointer); } private static native void nglWindowPos2sARB(short x, short y, long function_pointer); public static void glWindowPos3fARB(float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3fARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_window_pos_glWindowPos3fARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos3fARB(x, y, z, function_pointer); } private static native void nglWindowPos3fARB(float x, float y, float z, long function_pointer); public static void glWindowPos3dARB(double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3dARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_window_pos_glWindowPos3dARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos3dARB(x, y, z, function_pointer); } private static native void nglWindowPos3dARB(double x, double y, double z, long function_pointer); public static void glWindowPos3iARB(int x, int y, int z) { - long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3iARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_window_pos_glWindowPos3iARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos3iARB(x, y, z, function_pointer); } private static native void nglWindowPos3iARB(int x, int y, int z, long function_pointer); public static void glWindowPos3sARB(short x, short y, short z) { - long function_pointer = GLContext.getCapabilities().ARB_window_pos_glWindowPos3sARB_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ARB_window_pos_glWindowPos3sARB_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos3sARB(x, y, z, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ATIDrawBuffers.java b/src/generated/org/lwjgl/opengl/ATIDrawBuffers.java index 7d71deac..24d61dc1 100644 --- a/src/generated/org/lwjgl/opengl/ATIDrawBuffers.java +++ b/src/generated/org/lwjgl/opengl/ATIDrawBuffers.java @@ -34,7 +34,8 @@ public final class ATIDrawBuffers { public static void glDrawBuffersATI(IntBuffer buffers) { - long function_pointer = GLContext.getCapabilities().ATI_draw_buffers_glDrawBuffersATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_draw_buffers_glDrawBuffersATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffers); nglDrawBuffersATI((buffers.remaining()), buffers, buffers.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ATIElementArray.java b/src/generated/org/lwjgl/opengl/ATIElementArray.java index f6d61806..4a6ef4dc 100644 --- a/src/generated/org/lwjgl/opengl/ATIElementArray.java +++ b/src/generated/org/lwjgl/opengl/ATIElementArray.java @@ -16,47 +16,53 @@ public final class ATIElementArray { public static void glElementPointerATI(ByteBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ATI_element_array_glElementPointerATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_element_array_glElementPointerATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ATI_element_array_glElementPointerATI_pPointer = pPointer; + GLChecks.getReferences(caps).ATI_element_array_glElementPointerATI_pPointer = pPointer; nglElementPointerATI(GL11.GL_UNSIGNED_BYTE, pPointer, pPointer.position(), function_pointer); } public static void glElementPointerATI(IntBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ATI_element_array_glElementPointerATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_element_array_glElementPointerATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ATI_element_array_glElementPointerATI_pPointer = pPointer; + GLChecks.getReferences(caps).ATI_element_array_glElementPointerATI_pPointer = pPointer; nglElementPointerATI(GL11.GL_UNSIGNED_INT, pPointer, pPointer.position() << 2, function_pointer); } public static void glElementPointerATI(ShortBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().ATI_element_array_glElementPointerATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_element_array_glElementPointerATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().ATI_element_array_glElementPointerATI_pPointer = pPointer; + GLChecks.getReferences(caps).ATI_element_array_glElementPointerATI_pPointer = pPointer; nglElementPointerATI(GL11.GL_UNSIGNED_SHORT, pPointer, pPointer.position() << 1, function_pointer); } private static native void nglElementPointerATI(int type, Buffer pPointer, int pPointer_position, long function_pointer); public static void glElementPointerATI(int type, long pPointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().ATI_element_array_glElementPointerATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_element_array_glElementPointerATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglElementPointerATIBO(type, pPointer_buffer_offset, function_pointer); } private static native void nglElementPointerATIBO(int type, long pPointer_buffer_offset, long function_pointer); public static void glDrawElementArrayATI(int mode, int count) { - long function_pointer = GLContext.getCapabilities().ATI_element_array_glDrawElementArrayATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_element_array_glDrawElementArrayATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDrawElementArrayATI(mode, count, function_pointer); } private static native void nglDrawElementArrayATI(int mode, int count, long function_pointer); public static void glDrawRangeElementArrayATI(int mode, int start, int end, int count) { - long function_pointer = GLContext.getCapabilities().ATI_element_array_glDrawRangeElementArrayATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_element_array_glDrawRangeElementArrayATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDrawRangeElementArrayATI(mode, start, end, count, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ATIEnvmapBumpmap.java b/src/generated/org/lwjgl/opengl/ATIEnvmapBumpmap.java index 9b4ac77e..104fca47 100644 --- a/src/generated/org/lwjgl/opengl/ATIEnvmapBumpmap.java +++ b/src/generated/org/lwjgl/opengl/ATIEnvmapBumpmap.java @@ -21,7 +21,8 @@ public final class ATIEnvmapBumpmap { public static void glTexBumpParameterATI(int pname, FloatBuffer param) { - long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glTexBumpParameterfvATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_envmap_bumpmap_glTexBumpParameterfvATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(param, 4); nglTexBumpParameterfvATI(pname, param, param.position(), function_pointer); @@ -29,7 +30,8 @@ public final class ATIEnvmapBumpmap { private static native void nglTexBumpParameterfvATI(int pname, FloatBuffer param, int param_position, long function_pointer); public static void glTexBumpParameterATI(int pname, IntBuffer param) { - long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glTexBumpParameterivATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_envmap_bumpmap_glTexBumpParameterivATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(param, 4); nglTexBumpParameterivATI(pname, param, param.position(), function_pointer); @@ -37,7 +39,8 @@ public final class ATIEnvmapBumpmap { private static native void nglTexBumpParameterivATI(int pname, IntBuffer param, int param_position, long function_pointer); public static void glGetTexBumpParameterATI(int pname, FloatBuffer param) { - long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glGetTexBumpParameterfvATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_envmap_bumpmap_glGetTexBumpParameterfvATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(param, 4); nglGetTexBumpParameterfvATI(pname, param, param.position(), function_pointer); @@ -45,7 +48,8 @@ public final class ATIEnvmapBumpmap { private static native void nglGetTexBumpParameterfvATI(int pname, FloatBuffer param, int param_position, long function_pointer); public static void glGetTexBumpParameterATI(int pname, IntBuffer param) { - long function_pointer = GLContext.getCapabilities().ATI_envmap_bumpmap_glGetTexBumpParameterivATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_envmap_bumpmap_glGetTexBumpParameterivATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(param, 4); nglGetTexBumpParameterivATI(pname, param, param.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ATIFragmentShader.java b/src/generated/org/lwjgl/opengl/ATIFragmentShader.java index 82e73179..0f94afe2 100644 --- a/src/generated/org/lwjgl/opengl/ATIFragmentShader.java +++ b/src/generated/org/lwjgl/opengl/ATIFragmentShader.java @@ -117,7 +117,8 @@ public final class ATIFragmentShader { public static int glGenFragmentShadersATI(int range) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glGenFragmentShadersATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glGenFragmentShadersATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglGenFragmentShadersATI(range, function_pointer); return __result; @@ -125,91 +126,104 @@ public final class ATIFragmentShader { private static native int nglGenFragmentShadersATI(int range, long function_pointer); public static void glBindFragmentShaderATI(int id) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glBindFragmentShaderATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glBindFragmentShaderATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindFragmentShaderATI(id, function_pointer); } private static native void nglBindFragmentShaderATI(int id, long function_pointer); public static void glDeleteFragmentShaderATI(int id) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glDeleteFragmentShaderATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glDeleteFragmentShaderATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDeleteFragmentShaderATI(id, function_pointer); } private static native void nglDeleteFragmentShaderATI(int id, long function_pointer); public static void glBeginFragmentShaderATI() { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glBeginFragmentShaderATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glBeginFragmentShaderATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBeginFragmentShaderATI(function_pointer); } private static native void nglBeginFragmentShaderATI(long function_pointer); public static void glEndFragmentShaderATI() { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glEndFragmentShaderATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glEndFragmentShaderATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEndFragmentShaderATI(function_pointer); } private static native void nglEndFragmentShaderATI(long function_pointer); public static void glPassTexCoordATI(int dst, int coord, int swizzle) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glPassTexCoordATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glPassTexCoordATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPassTexCoordATI(dst, coord, swizzle, function_pointer); } private static native void nglPassTexCoordATI(int dst, int coord, int swizzle, long function_pointer); public static void glSampleMapATI(int dst, int interp, int swizzle) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glSampleMapATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glSampleMapATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSampleMapATI(dst, interp, swizzle, function_pointer); } private static native void nglSampleMapATI(int dst, int interp, int swizzle, long function_pointer); public static void glColorFragmentOp1ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp1ATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glColorFragmentOp1ATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColorFragmentOp1ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, function_pointer); } private static native void nglColorFragmentOp1ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, long function_pointer); public static void glColorFragmentOp2ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp2ATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glColorFragmentOp2ATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColorFragmentOp2ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, function_pointer); } private static native void nglColorFragmentOp2ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, long function_pointer); public static void glColorFragmentOp3ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glColorFragmentOp3ATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glColorFragmentOp3ATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColorFragmentOp3ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod, function_pointer); } private static native void nglColorFragmentOp3ATI(int op, int dst, int dstMask, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod, long function_pointer); public static void glAlphaFragmentOp1ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp1ATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glAlphaFragmentOp1ATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglAlphaFragmentOp1ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, function_pointer); } private static native void nglAlphaFragmentOp1ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, long function_pointer); public static void glAlphaFragmentOp2ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp2ATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glAlphaFragmentOp2ATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglAlphaFragmentOp2ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, function_pointer); } private static native void nglAlphaFragmentOp2ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, long function_pointer); public static void glAlphaFragmentOp3ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glAlphaFragmentOp3ATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glAlphaFragmentOp3ATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglAlphaFragmentOp3ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod, function_pointer); } private static native void nglAlphaFragmentOp3ATI(int op, int dst, int dstMod, int arg1, int arg1Rep, int arg1Mod, int arg2, int arg2Rep, int arg2Mod, int arg3, int arg3Rep, int arg3Mod, long function_pointer); public static void glSetFragmentShaderConstantATI(int dst, FloatBuffer pfValue) { - long function_pointer = GLContext.getCapabilities().ATI_fragment_shader_glSetFragmentShaderConstantATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_fragment_shader_glSetFragmentShaderConstantATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pfValue, 4); nglSetFragmentShaderConstantATI(dst, pfValue, pfValue.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ATIMapObjectBuffer.java b/src/generated/org/lwjgl/opengl/ATIMapObjectBuffer.java index a63bda98..409b17cd 100644 --- a/src/generated/org/lwjgl/opengl/ATIMapObjectBuffer.java +++ b/src/generated/org/lwjgl/opengl/ATIMapObjectBuffer.java @@ -24,7 +24,8 @@ public final class ATIMapObjectBuffer { * @return A ByteBuffer representing the mapped object buffer memory. */ public static java.nio.ByteBuffer glMapObjectBufferATI(int buffer, int result_size, java.nio.ByteBuffer old_buffer) { - long function_pointer = GLContext.getCapabilities().ATI_map_object_buffer_glMapObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_map_object_buffer_glMapObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (old_buffer != null) BufferChecks.checkDirect(old_buffer); @@ -34,7 +35,8 @@ public final class ATIMapObjectBuffer { private static native java.nio.ByteBuffer nglMapObjectBufferATI(int buffer, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer); public static void glUnmapObjectBufferATI(int buffer) { - long function_pointer = GLContext.getCapabilities().ATI_map_object_buffer_glUnmapObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_map_object_buffer_glUnmapObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUnmapObjectBufferATI(buffer, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ATIPnTriangles.java b/src/generated/org/lwjgl/opengl/ATIPnTriangles.java index 4db5101f..208e7e51 100644 --- a/src/generated/org/lwjgl/opengl/ATIPnTriangles.java +++ b/src/generated/org/lwjgl/opengl/ATIPnTriangles.java @@ -22,14 +22,16 @@ public final class ATIPnTriangles { public static void glPNTrianglesfATI(int pname, float param) { - long function_pointer = GLContext.getCapabilities().ATI_pn_triangles_glPNTrianglesfATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_pn_triangles_glPNTrianglesfATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPNTrianglesfATI(pname, param, function_pointer); } private static native void nglPNTrianglesfATI(int pname, float param, long function_pointer); public static void glPNTrianglesiATI(int pname, int param) { - long function_pointer = GLContext.getCapabilities().ATI_pn_triangles_glPNTrianglesiATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_pn_triangles_glPNTrianglesiATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPNTrianglesiATI(pname, param, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ATISeparateStencil.java b/src/generated/org/lwjgl/opengl/ATISeparateStencil.java index 501360aa..8141c2d2 100644 --- a/src/generated/org/lwjgl/opengl/ATISeparateStencil.java +++ b/src/generated/org/lwjgl/opengl/ATISeparateStencil.java @@ -17,14 +17,16 @@ public final class ATISeparateStencil { public static void glStencilOpSeparateATI(int face, int sfail, int dpfail, int dppass) { - long function_pointer = GLContext.getCapabilities().ATI_separate_stencil_glStencilOpSeparateATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_separate_stencil_glStencilOpSeparateATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilOpSeparateATI(face, sfail, dpfail, dppass, function_pointer); } private static native void nglStencilOpSeparateATI(int face, int sfail, int dpfail, int dppass, long function_pointer); public static void glStencilFuncSeparateATI(int frontfunc, int backfunc, int ref, int mask) { - long function_pointer = GLContext.getCapabilities().ATI_separate_stencil_glStencilFuncSeparateATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_separate_stencil_glStencilFuncSeparateATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilFuncSeparateATI(frontfunc, backfunc, ref, mask, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java b/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java index 1c9daa65..8cb468c1 100644 --- a/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java +++ b/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java @@ -1,24 +1,24 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class ATITextFragmentShader { - /** - * Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, - * and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, - * and GetDoublev, and by the <target> parameter of ProgramStringARB, - * BindProgramARB, ProgramEnvParameter4{d,dv,f,fv}ARB, - * ProgramLocalParameter4{d,dv,f,fv}ARB, - * GetProgramEnvParameter{dv,fv}ARB, GetProgramLocalParameter{dv,fv}ARB, - * GetProgramivARB, GetProgramfvATI, and GetProgramStringARB. - */ - public static final int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200; - - private ATITextFragmentShader() { - } - -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class ATITextFragmentShader { + /** + * Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, + * and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, + * and GetDoublev, and by the <target> parameter of ProgramStringARB, + * BindProgramARB, ProgramEnvParameter4{d,dv,f,fv}ARB, + * ProgramLocalParameter4{d,dv,f,fv}ARB, + * GetProgramEnvParameter{dv,fv}ARB, GetProgramLocalParameter{dv,fv}ARB, + * GetProgramivARB, GetProgramfvATI, and GetProgramStringARB. + */ + public static final int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200; + + private ATITextFragmentShader() { + } + +} diff --git a/src/generated/org/lwjgl/opengl/ATIVertexArrayObject.java b/src/generated/org/lwjgl/opengl/ATIVertexArrayObject.java index 3e031c0a..b1a778fe 100644 --- a/src/generated/org/lwjgl/opengl/ATIVertexArrayObject.java +++ b/src/generated/org/lwjgl/opengl/ATIVertexArrayObject.java @@ -21,41 +21,47 @@ public final class ATIVertexArrayObject { public static int glNewObjectBufferATI(int size, int usage) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glNewObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglNewObjectBufferATI(size, null, 0, usage, function_pointer); return __result; } public static int glNewObjectBufferATI(ByteBuffer pPointer, int usage) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glNewObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); int __result = nglNewObjectBufferATI((pPointer.remaining()), pPointer, pPointer.position(), usage, function_pointer); return __result; } public static int glNewObjectBufferATI(DoubleBuffer pPointer, int usage) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glNewObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); int __result = nglNewObjectBufferATI((pPointer.remaining() << 3), pPointer, pPointer.position() << 3, usage, function_pointer); return __result; } public static int glNewObjectBufferATI(FloatBuffer pPointer, int usage) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glNewObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); int __result = nglNewObjectBufferATI((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, usage, function_pointer); return __result; } public static int glNewObjectBufferATI(IntBuffer pPointer, int usage) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glNewObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); int __result = nglNewObjectBufferATI((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, usage, function_pointer); return __result; } public static int glNewObjectBufferATI(ShortBuffer pPointer, int usage) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glNewObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glNewObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); int __result = nglNewObjectBufferATI((pPointer.remaining() << 1), pPointer, pPointer.position() << 1, usage, function_pointer); @@ -64,7 +70,8 @@ public final class ATIVertexArrayObject { private static native int nglNewObjectBufferATI(int size, Buffer pPointer, int pPointer_position, int usage, long function_pointer); public static boolean glIsObjectBufferATI(int buffer) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glIsObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glIsObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsObjectBufferATI(buffer, function_pointer); return __result; @@ -72,31 +79,36 @@ public final class ATIVertexArrayObject { private static native boolean nglIsObjectBufferATI(int buffer, long function_pointer); public static void glUpdateObjectBufferATI(int buffer, int offset, ByteBuffer pPointer, int preserve) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining()), pPointer, pPointer.position(), preserve, function_pointer); } public static void glUpdateObjectBufferATI(int buffer, int offset, DoubleBuffer pPointer, int preserve) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 3), pPointer, pPointer.position() << 3, preserve, function_pointer); } public static void glUpdateObjectBufferATI(int buffer, int offset, FloatBuffer pPointer, int preserve) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer); } public static void glUpdateObjectBufferATI(int buffer, int offset, IntBuffer pPointer, int preserve) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 2), pPointer, pPointer.position() << 2, preserve, function_pointer); } public static void glUpdateObjectBufferATI(int buffer, int offset, ShortBuffer pPointer, int preserve) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glUpdateObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglUpdateObjectBufferATI(buffer, offset, (pPointer.remaining() << 1), pPointer, pPointer.position() << 1, preserve, function_pointer); @@ -104,7 +116,8 @@ public final class ATIVertexArrayObject { private static native void nglUpdateObjectBufferATI(int buffer, int offset, int size, Buffer pPointer, int pPointer_position, int preserve, long function_pointer); public static void glGetObjectBufferATI(int buffer, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetObjectBufferfvATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glGetObjectBufferfvATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetObjectBufferfvATI(buffer, pname, params, params.position(), function_pointer); @@ -112,7 +125,8 @@ public final class ATIVertexArrayObject { private static native void nglGetObjectBufferfvATI(int buffer, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetObjectBufferATI(int buffer, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetObjectBufferivATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glGetObjectBufferivATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetObjectBufferivATI(buffer, pname, params, params.position(), function_pointer); @@ -120,21 +134,24 @@ public final class ATIVertexArrayObject { private static native void nglGetObjectBufferivATI(int buffer, int pname, IntBuffer params, int params_position, long function_pointer); public static void glFreeObjectBufferATI(int buffer) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glFreeObjectBufferATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glFreeObjectBufferATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFreeObjectBufferATI(buffer, function_pointer); } private static native void nglFreeObjectBufferATI(int buffer, long function_pointer); public static void glArrayObjectATI(int array, int size, int type, int stride, int buffer, int offset) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glArrayObjectATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glArrayObjectATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglArrayObjectATI(array, size, type, stride, buffer, offset, function_pointer); } private static native void nglArrayObjectATI(int array, int size, int type, int stride, int buffer, int offset, long function_pointer); public static void glGetArrayObjectATI(int array, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetArrayObjectfvATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glGetArrayObjectfvATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetArrayObjectfvATI(array, pname, params, params.position(), function_pointer); @@ -142,7 +159,8 @@ public final class ATIVertexArrayObject { private static native void nglGetArrayObjectfvATI(int array, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetArrayObjectATI(int array, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetArrayObjectivATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glGetArrayObjectivATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetArrayObjectivATI(array, pname, params, params.position(), function_pointer); @@ -150,14 +168,16 @@ public final class ATIVertexArrayObject { private static native void nglGetArrayObjectivATI(int array, int pname, IntBuffer params, int params_position, long function_pointer); public static void glVariantArrayObjectATI(int id, int type, int stride, int buffer, int offset) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glVariantArrayObjectATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glVariantArrayObjectATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVariantArrayObjectATI(id, type, stride, buffer, offset, function_pointer); } private static native void nglVariantArrayObjectATI(int id, int type, int stride, int buffer, int offset, long function_pointer); public static void glGetVariantArrayObjectATI(int id, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetVariantArrayObjectfvATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glGetVariantArrayObjectfvATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVariantArrayObjectfvATI(id, pname, params, params.position(), function_pointer); @@ -165,7 +185,8 @@ public final class ATIVertexArrayObject { private static native void nglGetVariantArrayObjectfvATI(int id, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetVariantArrayObjectATI(int id, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_array_object_glGetVariantArrayObjectivATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_array_object_glGetVariantArrayObjectivATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVariantArrayObjectivATI(id, pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ATIVertexAttribArrayObject.java b/src/generated/org/lwjgl/opengl/ATIVertexAttribArrayObject.java index 8b37870b..6ac8e53d 100644 --- a/src/generated/org/lwjgl/opengl/ATIVertexAttribArrayObject.java +++ b/src/generated/org/lwjgl/opengl/ATIVertexAttribArrayObject.java @@ -13,14 +13,16 @@ public final class ATIVertexAttribArrayObject { public static void glVertexAttribArrayObjectATI(int index, int size, int type, boolean normalized, int stride, int buffer, int offset) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_attrib_array_object_glVertexAttribArrayObjectATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_attrib_array_object_glVertexAttribArrayObjectATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset, function_pointer); } private static native void nglVertexAttribArrayObjectATI(int index, int size, int type, boolean normalized, int stride, int buffer, int offset, long function_pointer); public static void glGetVertexAttribArrayObjectATI(int index, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_attrib_array_object_glGetVertexAttribArrayObjectfvATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_attrib_array_object_glGetVertexAttribArrayObjectfvATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribArrayObjectfvATI(index, pname, params, params.position(), function_pointer); @@ -28,7 +30,8 @@ public final class ATIVertexAttribArrayObject { private static native void nglGetVertexAttribArrayObjectfvATI(int index, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetVertexAttribArrayObjectATI(int index, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_attrib_array_object_glGetVertexAttribArrayObjectivATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_attrib_array_object_glGetVertexAttribArrayObjectivATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribArrayObjectivATI(index, pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/ATIVertexStreams.java b/src/generated/org/lwjgl/opengl/ATIVertexStreams.java index 81bacbb7..6a8cfb48 100644 --- a/src/generated/org/lwjgl/opengl/ATIVertexStreams.java +++ b/src/generated/org/lwjgl/opengl/ATIVertexStreams.java @@ -23,140 +23,160 @@ public final class ATIVertexStreams { public static void glVertexStream2fATI(int stream, float x, float y) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2fATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream2fATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream2fATI(stream, x, y, function_pointer); } private static native void nglVertexStream2fATI(int stream, float x, float y, long function_pointer); public static void glVertexStream2dATI(int stream, double x, double y) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2dATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream2dATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream2dATI(stream, x, y, function_pointer); } private static native void nglVertexStream2dATI(int stream, double x, double y, long function_pointer); public static void glVertexStream2iATI(int stream, int x, int y) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2iATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream2iATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream2iATI(stream, x, y, function_pointer); } private static native void nglVertexStream2iATI(int stream, int x, int y, long function_pointer); public static void glVertexStream2sATI(int stream, short x, short y) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream2sATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream2sATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream2sATI(stream, x, y, function_pointer); } private static native void nglVertexStream2sATI(int stream, short x, short y, long function_pointer); public static void glVertexStream3fATI(int stream, float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3fATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream3fATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream3fATI(stream, x, y, z, function_pointer); } private static native void nglVertexStream3fATI(int stream, float x, float y, float z, long function_pointer); public static void glVertexStream3dATI(int stream, double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3dATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream3dATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream3dATI(stream, x, y, z, function_pointer); } private static native void nglVertexStream3dATI(int stream, double x, double y, double z, long function_pointer); public static void glVertexStream3iATI(int stream, int x, int y, int z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3iATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream3iATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream3iATI(stream, x, y, z, function_pointer); } private static native void nglVertexStream3iATI(int stream, int x, int y, int z, long function_pointer); public static void glVertexStream3sATI(int stream, short x, short y, short z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream3sATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream3sATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream3sATI(stream, x, y, z, function_pointer); } private static native void nglVertexStream3sATI(int stream, short x, short y, short z, long function_pointer); public static void glVertexStream4fATI(int stream, float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4fATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream4fATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream4fATI(stream, x, y, z, w, function_pointer); } private static native void nglVertexStream4fATI(int stream, float x, float y, float z, float w, long function_pointer); public static void glVertexStream4dATI(int stream, double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4dATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream4dATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream4dATI(stream, x, y, z, w, function_pointer); } private static native void nglVertexStream4dATI(int stream, double x, double y, double z, double w, long function_pointer); public static void glVertexStream4iATI(int stream, int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4iATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream4iATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream4iATI(stream, x, y, z, w, function_pointer); } private static native void nglVertexStream4iATI(int stream, int x, int y, int z, int w, long function_pointer); public static void glVertexStream4sATI(int stream, short x, short y, short z, short w) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexStream4sATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexStream4sATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexStream4sATI(stream, x, y, z, w, function_pointer); } private static native void nglVertexStream4sATI(int stream, short x, short y, short z, short w, long function_pointer); public static void glNormalStream3bATI(int stream, byte x, byte y, byte z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3bATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glNormalStream3bATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormalStream3bATI(stream, x, y, z, function_pointer); } private static native void nglNormalStream3bATI(int stream, byte x, byte y, byte z, long function_pointer); public static void glNormalStream3fATI(int stream, float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3fATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glNormalStream3fATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormalStream3fATI(stream, x, y, z, function_pointer); } private static native void nglNormalStream3fATI(int stream, float x, float y, float z, long function_pointer); public static void glNormalStream3dATI(int stream, double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3dATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glNormalStream3dATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormalStream3dATI(stream, x, y, z, function_pointer); } private static native void nglNormalStream3dATI(int stream, double x, double y, double z, long function_pointer); public static void glNormalStream3iATI(int stream, int x, int y, int z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3iATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glNormalStream3iATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormalStream3iATI(stream, x, y, z, function_pointer); } private static native void nglNormalStream3iATI(int stream, int x, int y, int z, long function_pointer); public static void glNormalStream3sATI(int stream, short x, short y, short z) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glNormalStream3sATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glNormalStream3sATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormalStream3sATI(stream, x, y, z, function_pointer); } private static native void nglNormalStream3sATI(int stream, short x, short y, short z, long function_pointer); public static void glClientActiveVertexStreamATI(int stream) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glClientActiveVertexStreamATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glClientActiveVertexStreamATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClientActiveVertexStreamATI(stream, function_pointer); } private static native void nglClientActiveVertexStreamATI(int stream, long function_pointer); public static void glVertexBlendEnvfATI(int pname, float param) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexBlendEnvfATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexBlendEnvfATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexBlendEnvfATI(pname, param, function_pointer); } private static native void nglVertexBlendEnvfATI(int pname, float param, long function_pointer); public static void glVertexBlendEnviATI(int pname, int param) { - long function_pointer = GLContext.getCapabilities().ATI_vertex_streams_glVertexBlendEnviATI_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.ATI_vertex_streams_glVertexBlendEnviATI_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexBlendEnviATI(pname, param, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTBindableUniform.java b/src/generated/org/lwjgl/opengl/EXTBindableUniform.java index 95ad7cea..cec21ff9 100644 --- a/src/generated/org/lwjgl/opengl/EXTBindableUniform.java +++ b/src/generated/org/lwjgl/opengl/EXTBindableUniform.java @@ -1,52 +1,55 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTBindableUniform { - /** - * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, - * and GetDoublev: - */ - public static final int GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8de2; - public static final int GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8de3; - public static final int GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8de4; - public static final int GL_MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8ded; - public static final int GL_UNIFORM_BUFFER_BINDING_EXT = 0x8def; - /** - * Accepted by the <target> parameters of BindBuffer, BufferData, - * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and - * GetBufferPointerv: - */ - public static final int GL_UNIFORM_BUFFER_EXT = 0x8dee; - - private EXTBindableUniform() { - } - - - public static void glUniformBufferEXT(int program, int location, int buffer) { - long function_pointer = GLContext.getCapabilities().EXT_bindable_uniform_glUniformBufferEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglUniformBufferEXT(program, location, buffer, function_pointer); - } - private static native void nglUniformBufferEXT(int program, int location, int buffer, long function_pointer); - - public static int glGetUniformBufferSizeEXT(int program, int location) { - long function_pointer = GLContext.getCapabilities().EXT_bindable_uniform_glGetUniformBufferSizeEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - int __result = nglGetUniformBufferSizeEXT(program, location, function_pointer); - return __result; - } - private static native int nglGetUniformBufferSizeEXT(int program, int location, long function_pointer); - - public static long glGetUniformOffsetEXT(int program, int location) { - long function_pointer = GLContext.getCapabilities().EXT_bindable_uniform_glGetUniformOffsetEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - long __result = nglGetUniformOffsetEXT(program, location, function_pointer); - return __result; - } - private static native long nglGetUniformOffsetEXT(int program, int location, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTBindableUniform { + /** + * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, + * and GetDoublev: + */ + public static final int GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8de2; + public static final int GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8de3; + public static final int GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8de4; + public static final int GL_MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8ded; + public static final int GL_UNIFORM_BUFFER_BINDING_EXT = 0x8def; + /** + * Accepted by the <target> parameters of BindBuffer, BufferData, + * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, and + * GetBufferPointerv: + */ + public static final int GL_UNIFORM_BUFFER_EXT = 0x8dee; + + private EXTBindableUniform() { + } + + + public static void glUniformBufferEXT(int program, int location, int buffer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_bindable_uniform_glUniformBufferEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglUniformBufferEXT(program, location, buffer, function_pointer); + } + private static native void nglUniformBufferEXT(int program, int location, int buffer, long function_pointer); + + public static int glGetUniformBufferSizeEXT(int program, int location) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_bindable_uniform_glGetUniformBufferSizeEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + int __result = nglGetUniformBufferSizeEXT(program, location, function_pointer); + return __result; + } + private static native int nglGetUniformBufferSizeEXT(int program, int location, long function_pointer); + + public static long glGetUniformOffsetEXT(int program, int location) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_bindable_uniform_glGetUniformOffsetEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + long __result = nglGetUniformOffsetEXT(program, location, function_pointer); + return __result; + } + private static native long nglGetUniformOffsetEXT(int program, int location, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTBlendColor.java b/src/generated/org/lwjgl/opengl/EXTBlendColor.java index 66d54f41..37447eb8 100644 --- a/src/generated/org/lwjgl/opengl/EXTBlendColor.java +++ b/src/generated/org/lwjgl/opengl/EXTBlendColor.java @@ -1,33 +1,34 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTBlendColor { - /** - *Accepted by the <sfactor> and <dfactor> parameters of BlendFunc. - */ - public static final int GL_CONSTANT_COLOR_EXT = 0x8001; - public static final int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002; - public static final int GL_CONSTANT_ALPHA_EXT = 0x8003; - public static final int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, - * GetFloatv, and GetDoublev. - */ - public static final int GL_BLEND_COLOR_EXT = 0x8005; - - private EXTBlendColor() { - } - - - public static void glBlendColorEXT(float red, float green, float blue, float alpha) { - long function_pointer = GLContext.getCapabilities().EXT_blend_color_glBlendColorEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglBlendColorEXT(red, green, blue, alpha, function_pointer); - } - private static native void nglBlendColorEXT(float red, float green, float blue, float alpha, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTBlendColor { + /** + *Accepted by the <sfactor> and <dfactor> parameters of BlendFunc. + */ + public static final int GL_CONSTANT_COLOR_EXT = 0x8001; + public static final int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002; + public static final int GL_CONSTANT_ALPHA_EXT = 0x8003; + public static final int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, + * GetFloatv, and GetDoublev. + */ + public static final int GL_BLEND_COLOR_EXT = 0x8005; + + private EXTBlendColor() { + } + + + public static void glBlendColorEXT(float red, float green, float blue, float alpha) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_blend_color_glBlendColorEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglBlendColorEXT(red, green, blue, alpha, function_pointer); + } + private static native void nglBlendColorEXT(float red, float green, float blue, float alpha, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTBlendEquationSeparate.java b/src/generated/org/lwjgl/opengl/EXTBlendEquationSeparate.java index 1950b4ae..4378aedc 100644 --- a/src/generated/org/lwjgl/opengl/EXTBlendEquationSeparate.java +++ b/src/generated/org/lwjgl/opengl/EXTBlendEquationSeparate.java @@ -19,7 +19,8 @@ public final class EXTBlendEquationSeparate { public static void glBlendEquationSeparateEXT(int modeRGB, int modeAlpha) { - long function_pointer = GLContext.getCapabilities().EXT_blend_equation_separate_glBlendEquationSeparateEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_blend_equation_separate_glBlendEquationSeparateEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendEquationSeparateEXT(modeRGB, modeAlpha, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTBlendFuncSeparate.java b/src/generated/org/lwjgl/opengl/EXTBlendFuncSeparate.java index 3c34c720..014e5d9a 100644 --- a/src/generated/org/lwjgl/opengl/EXTBlendFuncSeparate.java +++ b/src/generated/org/lwjgl/opengl/EXTBlendFuncSeparate.java @@ -17,7 +17,8 @@ public final class EXTBlendFuncSeparate { public static void glBlendFuncSeparateEXT(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) { - long function_pointer = GLContext.getCapabilities().EXT_blend_func_separate_glBlendFuncSeparateEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_blend_func_separate_glBlendFuncSeparateEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendFuncSeparateEXT(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTBlendMinmax.java b/src/generated/org/lwjgl/opengl/EXTBlendMinmax.java index d1e87e51..fd9e2649 100644 --- a/src/generated/org/lwjgl/opengl/EXTBlendMinmax.java +++ b/src/generated/org/lwjgl/opengl/EXTBlendMinmax.java @@ -1,32 +1,33 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTBlendMinmax { - /** - *Accepted by the <mode> parameter of BlendEquationEXT. - */ - public static final int GL_FUNC_ADD_EXT = 0x8006; - public static final int GL_MIN_EXT = 0x8007; - public static final int GL_MAX_EXT = 0x8008; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, - * GetFloatv, and GetDoublev. - */ - public static final int GL_BLEND_EQUATION_EXT = 0x8009; - - private EXTBlendMinmax() { - } - - - public static void glBlendEquationEXT(int mode) { - long function_pointer = GLContext.getCapabilities().EXT_blend_minmax_glBlendEquationEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglBlendEquationEXT(mode, function_pointer); - } - private static native void nglBlendEquationEXT(int mode, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTBlendMinmax { + /** + *Accepted by the <mode> parameter of BlendEquationEXT. + */ + public static final int GL_FUNC_ADD_EXT = 0x8006; + public static final int GL_MIN_EXT = 0x8007; + public static final int GL_MAX_EXT = 0x8008; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, + * GetFloatv, and GetDoublev. + */ + public static final int GL_BLEND_EQUATION_EXT = 0x8009; + + private EXTBlendMinmax() { + } + + + public static void glBlendEquationEXT(int mode) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_blend_minmax_glBlendEquationEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglBlendEquationEXT(mode, function_pointer); + } + private static native void nglBlendEquationEXT(int mode, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTCompiledVertexArray.java b/src/generated/org/lwjgl/opengl/EXTCompiledVertexArray.java index 862db672..4817f92c 100644 --- a/src/generated/org/lwjgl/opengl/EXTCompiledVertexArray.java +++ b/src/generated/org/lwjgl/opengl/EXTCompiledVertexArray.java @@ -15,14 +15,16 @@ public final class EXTCompiledVertexArray { public static void glLockArraysEXT(int first, int count) { - long function_pointer = GLContext.getCapabilities().EXT_compiled_vertex_array_glLockArraysEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_compiled_vertex_array_glLockArraysEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLockArraysEXT(first, count, function_pointer); } private static native void nglLockArraysEXT(int first, int count, long function_pointer); public static void glUnlockArraysEXT() { - long function_pointer = GLContext.getCapabilities().EXT_compiled_vertex_array_glUnlockArraysEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_compiled_vertex_array_glUnlockArraysEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUnlockArraysEXT(function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTDepthBoundsTest.java b/src/generated/org/lwjgl/opengl/EXTDepthBoundsTest.java index 558cc32d..5eabd853 100644 --- a/src/generated/org/lwjgl/opengl/EXTDepthBoundsTest.java +++ b/src/generated/org/lwjgl/opengl/EXTDepthBoundsTest.java @@ -24,7 +24,8 @@ public final class EXTDepthBoundsTest { public static void glDepthBoundsEXT(double zmin, double zmax) { - long function_pointer = GLContext.getCapabilities().EXT_depth_bounds_test_glDepthBoundsEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_depth_bounds_test_glDepthBoundsEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDepthBoundsEXT(zmin, zmax, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTDrawBuffers2.java b/src/generated/org/lwjgl/opengl/EXTDrawBuffers2.java index 8a094023..5d23a720 100644 --- a/src/generated/org/lwjgl/opengl/EXTDrawBuffers2.java +++ b/src/generated/org/lwjgl/opengl/EXTDrawBuffers2.java @@ -1,59 +1,65 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTDrawBuffers2 { - - private EXTDrawBuffers2() { - } - - - public static void glColorMaskIndexedEXT(int buf, boolean r, boolean g, boolean b, boolean a) { - long function_pointer = GLContext.getCapabilities().EXT_draw_buffers2_glColorMaskIndexedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglColorMaskIndexedEXT(buf, r, g, b, a, function_pointer); - } - private static native void nglColorMaskIndexedEXT(int buf, boolean r, boolean g, boolean b, boolean a, long function_pointer); - - public static void glGetBooleanIndexedEXT(int value, int index, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_draw_buffers2_glGetBooleanIndexedvEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(data, 4); - nglGetBooleanIndexedvEXT(value, index, data, data.position(), function_pointer); - } - private static native void nglGetBooleanIndexedvEXT(int value, int index, ByteBuffer data, int data_position, long function_pointer); - - public static void glGetIntegerIndexedEXT(int value, int index, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_draw_buffers2_glGetIntegerIndexedvEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(data, 4); - nglGetIntegerIndexedvEXT(value, index, data, data.position(), function_pointer); - } - private static native void nglGetIntegerIndexedvEXT(int value, int index, IntBuffer data, int data_position, long function_pointer); - - public static void glEnableIndexedEXT(int target, int index) { - long function_pointer = GLContext.getCapabilities().EXT_draw_buffers2_glEnableIndexedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglEnableIndexedEXT(target, index, function_pointer); - } - private static native void nglEnableIndexedEXT(int target, int index, long function_pointer); - - public static void glDisableIndexedEXT(int target, int index) { - long function_pointer = GLContext.getCapabilities().EXT_draw_buffers2_glDisableIndexedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglDisableIndexedEXT(target, index, function_pointer); - } - private static native void nglDisableIndexedEXT(int target, int index, long function_pointer); - - public static boolean glIsEnabledIndexedEXT(int target, int index) { - long function_pointer = GLContext.getCapabilities().EXT_draw_buffers2_glIsEnabledIndexedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - boolean __result = nglIsEnabledIndexedEXT(target, index, function_pointer); - return __result; - } - private static native boolean nglIsEnabledIndexedEXT(int target, int index, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTDrawBuffers2 { + + private EXTDrawBuffers2() { + } + + + public static void glColorMaskIndexedEXT(int buf, boolean r, boolean g, boolean b, boolean a) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_buffers2_glColorMaskIndexedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglColorMaskIndexedEXT(buf, r, g, b, a, function_pointer); + } + private static native void nglColorMaskIndexedEXT(int buf, boolean r, boolean g, boolean b, boolean a, long function_pointer); + + public static void glGetBooleanIndexedEXT(int value, int index, ByteBuffer data) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_buffers2_glGetBooleanIndexedvEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(data, 4); + nglGetBooleanIndexedvEXT(value, index, data, data.position(), function_pointer); + } + private static native void nglGetBooleanIndexedvEXT(int value, int index, ByteBuffer data, int data_position, long function_pointer); + + public static void glGetIntegerIndexedEXT(int value, int index, IntBuffer data) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_buffers2_glGetIntegerIndexedvEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(data, 4); + nglGetIntegerIndexedvEXT(value, index, data, data.position(), function_pointer); + } + private static native void nglGetIntegerIndexedvEXT(int value, int index, IntBuffer data, int data_position, long function_pointer); + + public static void glEnableIndexedEXT(int target, int index) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_buffers2_glEnableIndexedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglEnableIndexedEXT(target, index, function_pointer); + } + private static native void nglEnableIndexedEXT(int target, int index, long function_pointer); + + public static void glDisableIndexedEXT(int target, int index) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_buffers2_glDisableIndexedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglDisableIndexedEXT(target, index, function_pointer); + } + private static native void nglDisableIndexedEXT(int target, int index, long function_pointer); + + public static boolean glIsEnabledIndexedEXT(int target, int index) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_buffers2_glIsEnabledIndexedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + boolean __result = nglIsEnabledIndexedEXT(target, index, function_pointer); + return __result; + } + private static native boolean nglIsEnabledIndexedEXT(int target, int index, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTDrawInstanced.java b/src/generated/org/lwjgl/opengl/EXTDrawInstanced.java index e4fa3640..b16e3d5d 100644 --- a/src/generated/org/lwjgl/opengl/EXTDrawInstanced.java +++ b/src/generated/org/lwjgl/opengl/EXTDrawInstanced.java @@ -1,51 +1,56 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTDrawInstanced { - - private EXTDrawInstanced() { - } - - - public static void glDrawArraysInstancedEXT(int mode, int first, int count, int primcount) { - long function_pointer = GLContext.getCapabilities().EXT_draw_instanced_glDrawArraysInstancedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglDrawArraysInstancedEXT(mode, first, count, primcount, function_pointer); - } - private static native void nglDrawArraysInstancedEXT(int mode, int first, int count, int primcount, long function_pointer); - - public static void glDrawElementsInstancedEXT(int mode, ByteBuffer indices, int primcount) { - long function_pointer = GLContext.getCapabilities().EXT_draw_instanced_glDrawElementsInstancedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); - BufferChecks.checkDirect(indices); - nglDrawElementsInstancedEXT(mode, (indices.remaining()), GL11.GL_UNSIGNED_BYTE, indices, indices.position(), primcount, function_pointer); - } - public static void glDrawElementsInstancedEXT(int mode, IntBuffer indices, int primcount) { - long function_pointer = GLContext.getCapabilities().EXT_draw_instanced_glDrawElementsInstancedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); - BufferChecks.checkDirect(indices); - nglDrawElementsInstancedEXT(mode, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, primcount, function_pointer); - } - public static void glDrawElementsInstancedEXT(int mode, ShortBuffer indices, int primcount) { - long function_pointer = GLContext.getCapabilities().EXT_draw_instanced_glDrawElementsInstancedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); - BufferChecks.checkDirect(indices); - nglDrawElementsInstancedEXT(mode, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, primcount, function_pointer); - } - private static native void nglDrawElementsInstancedEXT(int mode, int count, int type, Buffer indices, int indices_position, int primcount, long function_pointer); - public static void glDrawElementsInstancedEXT(int mode, int count, int type, long indices_buffer_offset, int primcount) { - long function_pointer = GLContext.getCapabilities().EXT_draw_instanced_glDrawElementsInstancedEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOenabled(); - nglDrawElementsInstancedEXTBO(mode, count, type, indices_buffer_offset, primcount, function_pointer); - } - private static native void nglDrawElementsInstancedEXTBO(int mode, int count, int type, long indices_buffer_offset, int primcount, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTDrawInstanced { + + private EXTDrawInstanced() { + } + + + public static void glDrawArraysInstancedEXT(int mode, int first, int count, int primcount) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_instanced_glDrawArraysInstancedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglDrawArraysInstancedEXT(mode, first, count, primcount, function_pointer); + } + private static native void nglDrawArraysInstancedEXT(int mode, int first, int count, int primcount, long function_pointer); + + public static void glDrawElementsInstancedEXT(int mode, ByteBuffer indices, int primcount) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_instanced_glDrawElementsInstancedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + GLChecks.ensureElementVBOdisabled(caps); + BufferChecks.checkDirect(indices); + nglDrawElementsInstancedEXT(mode, (indices.remaining()), GL11.GL_UNSIGNED_BYTE, indices, indices.position(), primcount, function_pointer); + } + public static void glDrawElementsInstancedEXT(int mode, IntBuffer indices, int primcount) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_instanced_glDrawElementsInstancedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + GLChecks.ensureElementVBOdisabled(caps); + BufferChecks.checkDirect(indices); + nglDrawElementsInstancedEXT(mode, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, primcount, function_pointer); + } + public static void glDrawElementsInstancedEXT(int mode, ShortBuffer indices, int primcount) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_instanced_glDrawElementsInstancedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + GLChecks.ensureElementVBOdisabled(caps); + BufferChecks.checkDirect(indices); + nglDrawElementsInstancedEXT(mode, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, primcount, function_pointer); + } + private static native void nglDrawElementsInstancedEXT(int mode, int count, int type, Buffer indices, int indices_position, int primcount, long function_pointer); + public static void glDrawElementsInstancedEXT(int mode, int count, int type, long indices_buffer_offset, int primcount) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_instanced_glDrawElementsInstancedEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + GLChecks.ensureElementVBOenabled(caps); + nglDrawElementsInstancedEXTBO(mode, count, type, indices_buffer_offset, primcount, function_pointer); + } + private static native void nglDrawElementsInstancedEXTBO(int mode, int count, int type, long indices_buffer_offset, int primcount, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTDrawRangeElements.java b/src/generated/org/lwjgl/opengl/EXTDrawRangeElements.java index d05ce9e7..38d51e49 100644 --- a/src/generated/org/lwjgl/opengl/EXTDrawRangeElements.java +++ b/src/generated/org/lwjgl/opengl/EXTDrawRangeElements.java @@ -15,31 +15,35 @@ public final class EXTDrawRangeElements { public static void glDrawRangeElementsEXT(int mode, int start, int end, ByteBuffer pIndices) { - long function_pointer = GLContext.getCapabilities().EXT_draw_range_elements_glDrawRangeElementsEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_range_elements_glDrawRangeElementsEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(pIndices); nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_BYTE, pIndices, pIndices.position(), function_pointer); } public static void glDrawRangeElementsEXT(int mode, int start, int end, IntBuffer pIndices) { - long function_pointer = GLContext.getCapabilities().EXT_draw_range_elements_glDrawRangeElementsEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_range_elements_glDrawRangeElementsEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(pIndices); nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_INT, pIndices, pIndices.position() << 2, function_pointer); } public static void glDrawRangeElementsEXT(int mode, int start, int end, ShortBuffer pIndices) { - long function_pointer = GLContext.getCapabilities().EXT_draw_range_elements_glDrawRangeElementsEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_range_elements_glDrawRangeElementsEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(pIndices); nglDrawRangeElementsEXT(mode, start, end, (pIndices.remaining()), GL11.GL_UNSIGNED_SHORT, pIndices, pIndices.position() << 1, function_pointer); } private static native void nglDrawRangeElementsEXT(int mode, int start, int end, int count, int type, Buffer pIndices, int pIndices_position, long function_pointer); public static void glDrawRangeElementsEXT(int mode, int start, int end, int count, int type, long pIndices_buffer_offset) { - long function_pointer = GLContext.getCapabilities().EXT_draw_range_elements_glDrawRangeElementsEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_draw_range_elements_glDrawRangeElementsEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOenabled(); + GLChecks.ensureElementVBOenabled(caps); nglDrawRangeElementsEXTBO(mode, start, end, count, type, pIndices_buffer_offset, function_pointer); } private static native void nglDrawRangeElementsEXTBO(int mode, int start, int end, int count, int type, long pIndices_buffer_offset, long function_pointer); diff --git a/src/generated/org/lwjgl/opengl/EXTFogCoord.java b/src/generated/org/lwjgl/opengl/EXTFogCoord.java index b91e1068..a058e0ab 100644 --- a/src/generated/org/lwjgl/opengl/EXTFogCoord.java +++ b/src/generated/org/lwjgl/opengl/EXTFogCoord.java @@ -21,40 +21,45 @@ public final class EXTFogCoord { public static void glFogCoordfEXT(float coord) { - long function_pointer = GLContext.getCapabilities().EXT_fog_coord_glFogCoordfEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_fog_coord_glFogCoordfEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFogCoordfEXT(coord, function_pointer); } private static native void nglFogCoordfEXT(float coord, long function_pointer); public static void glFogCoorddEXT(double coord) { - long function_pointer = GLContext.getCapabilities().EXT_fog_coord_glFogCoorddEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_fog_coord_glFogCoorddEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFogCoorddEXT(coord, function_pointer); } private static native void nglFogCoorddEXT(double coord, long function_pointer); public static void glFogCoordPointerEXT(int stride, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_fog_coord_glFogCoordPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_fog_coord_glFogCoordPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(data); - GLChecks.getReferences().EXT_fog_coord_glFogCoordPointerEXT_data = data; + GLChecks.getReferences(caps).EXT_fog_coord_glFogCoordPointerEXT_data = data; nglFogCoordPointerEXT(GL11.GL_DOUBLE, stride, data, data.position() << 3, function_pointer); } public static void glFogCoordPointerEXT(int stride, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_fog_coord_glFogCoordPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_fog_coord_glFogCoordPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(data); - GLChecks.getReferences().EXT_fog_coord_glFogCoordPointerEXT_data = data; + GLChecks.getReferences(caps).EXT_fog_coord_glFogCoordPointerEXT_data = data; nglFogCoordPointerEXT(GL11.GL_FLOAT, stride, data, data.position() << 2, function_pointer); } private static native void nglFogCoordPointerEXT(int type, int stride, Buffer data, int data_position, long function_pointer); public static void glFogCoordPointerEXT(int type, int stride, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().EXT_fog_coord_glFogCoordPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_fog_coord_glFogCoordPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglFogCoordPointerEXTBO(type, stride, data_buffer_offset, function_pointer); } private static native void nglFogCoordPointerEXTBO(int type, int stride, long data_buffer_offset, long function_pointer); diff --git a/src/generated/org/lwjgl/opengl/EXTFramebufferBlit.java b/src/generated/org/lwjgl/opengl/EXTFramebufferBlit.java index 98e6aad6..2bd393dc 100644 --- a/src/generated/org/lwjgl/opengl/EXTFramebufferBlit.java +++ b/src/generated/org/lwjgl/opengl/EXTFramebufferBlit.java @@ -43,7 +43,8 @@ public final class EXTFramebufferBlit { * stretched. */ public static void glBlitFramebufferEXT(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_blit_glBlitFramebufferEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_blit_glBlitFramebufferEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlitFramebufferEXT(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTFramebufferMultisample.java b/src/generated/org/lwjgl/opengl/EXTFramebufferMultisample.java index fa4f464d..6581ac4e 100644 --- a/src/generated/org/lwjgl/opengl/EXTFramebufferMultisample.java +++ b/src/generated/org/lwjgl/opengl/EXTFramebufferMultisample.java @@ -21,7 +21,8 @@ public final class EXTFramebufferMultisample { * samples of a renderbuffer object's image. */ public static void glRenderbufferStorageMultisampleEXT(int target, int samples, int internalformat, int width, int height) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_multisample_glRenderbufferStorageMultisampleEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_multisample_glRenderbufferStorageMultisampleEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRenderbufferStorageMultisampleEXT(target, samples, internalformat, width, height, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTFramebufferObject.java b/src/generated/org/lwjgl/opengl/EXTFramebufferObject.java index 4f8ee276..8d8f1689 100644 --- a/src/generated/org/lwjgl/opengl/EXTFramebufferObject.java +++ b/src/generated/org/lwjgl/opengl/EXTFramebufferObject.java @@ -99,7 +99,8 @@ public final class EXTFramebufferObject { public static boolean glIsRenderbufferEXT(int renderbuffer) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glIsRenderbufferEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glIsRenderbufferEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsRenderbufferEXT(renderbuffer, function_pointer); return __result; @@ -107,14 +108,16 @@ public final class EXTFramebufferObject { private static native boolean nglIsRenderbufferEXT(int renderbuffer, long function_pointer); public static void glBindRenderbufferEXT(int target, int renderbuffer) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glBindRenderbufferEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glBindRenderbufferEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindRenderbufferEXT(target, renderbuffer, function_pointer); } private static native void nglBindRenderbufferEXT(int target, int renderbuffer, long function_pointer); public static void glDeleteRenderbuffersEXT(IntBuffer renderbuffers) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glDeleteRenderbuffersEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glDeleteRenderbuffersEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(renderbuffers); nglDeleteRenderbuffersEXT((renderbuffers.remaining()), renderbuffers, renderbuffers.position(), function_pointer); @@ -122,7 +125,8 @@ public final class EXTFramebufferObject { private static native void nglDeleteRenderbuffersEXT(int n, IntBuffer renderbuffers, int renderbuffers_position, long function_pointer); public static void glGenRenderbuffersEXT(IntBuffer renderbuffers) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenRenderbuffersEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glGenRenderbuffersEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(renderbuffers); nglGenRenderbuffersEXT((renderbuffers.remaining()), renderbuffers, renderbuffers.position(), function_pointer); @@ -130,14 +134,16 @@ public final class EXTFramebufferObject { private static native void nglGenRenderbuffersEXT(int n, IntBuffer renderbuffers, int renderbuffers_position, long function_pointer); public static void glRenderbufferStorageEXT(int target, int internalformat, int width, int height) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glRenderbufferStorageEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glRenderbufferStorageEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRenderbufferStorageEXT(target, internalformat, width, height, function_pointer); } private static native void nglRenderbufferStorageEXT(int target, int internalformat, int width, int height, long function_pointer); public static void glGetRenderbufferParameterEXT(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGetRenderbufferParameterivEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glGetRenderbufferParameterivEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetRenderbufferParameterivEXT(target, pname, params, params.position(), function_pointer); @@ -145,7 +151,8 @@ public final class EXTFramebufferObject { private static native void nglGetRenderbufferParameterivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static boolean glIsFramebufferEXT(int framebuffer) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glIsFramebufferEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glIsFramebufferEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsFramebufferEXT(framebuffer, function_pointer); return __result; @@ -153,14 +160,16 @@ public final class EXTFramebufferObject { private static native boolean nglIsFramebufferEXT(int framebuffer, long function_pointer); public static void glBindFramebufferEXT(int target, int framebuffer) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glBindFramebufferEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glBindFramebufferEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindFramebufferEXT(target, framebuffer, function_pointer); } private static native void nglBindFramebufferEXT(int target, int framebuffer, long function_pointer); public static void glDeleteFramebuffersEXT(IntBuffer framebuffers) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glDeleteFramebuffersEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glDeleteFramebuffersEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(framebuffers); nglDeleteFramebuffersEXT((framebuffers.remaining()), framebuffers, framebuffers.position(), function_pointer); @@ -168,7 +177,8 @@ public final class EXTFramebufferObject { private static native void nglDeleteFramebuffersEXT(int n, IntBuffer framebuffers, int framebuffers_position, long function_pointer); public static void glGenFramebuffersEXT(IntBuffer framebuffers) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenFramebuffersEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glGenFramebuffersEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(framebuffers); nglGenFramebuffersEXT((framebuffers.remaining()), framebuffers, framebuffers.position(), function_pointer); @@ -176,7 +186,8 @@ public final class EXTFramebufferObject { private static native void nglGenFramebuffersEXT(int n, IntBuffer framebuffers, int framebuffers_position, long function_pointer); public static int glCheckFramebufferStatusEXT(int target) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glCheckFramebufferStatusEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glCheckFramebufferStatusEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglCheckFramebufferStatusEXT(target, function_pointer); return __result; @@ -184,35 +195,40 @@ public final class EXTFramebufferObject { private static native int nglCheckFramebufferStatusEXT(int target, long function_pointer); public static void glFramebufferTexture1DEXT(int target, int attachment, int textarget, int texture, int level) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture1DEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glFramebufferTexture1DEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFramebufferTexture1DEXT(target, attachment, textarget, texture, level, function_pointer); } private static native void nglFramebufferTexture1DEXT(int target, int attachment, int textarget, int texture, int level, long function_pointer); public static void glFramebufferTexture2DEXT(int target, int attachment, int textarget, int texture, int level) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture2DEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glFramebufferTexture2DEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFramebufferTexture2DEXT(target, attachment, textarget, texture, level, function_pointer); } private static native void nglFramebufferTexture2DEXT(int target, int attachment, int textarget, int texture, int level, long function_pointer); public static void glFramebufferTexture3DEXT(int target, int attachment, int textarget, int texture, int level, int zoffset) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferTexture3DEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glFramebufferTexture3DEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset, function_pointer); } private static native void nglFramebufferTexture3DEXT(int target, int attachment, int textarget, int texture, int level, int zoffset, long function_pointer); public static void glFramebufferRenderbufferEXT(int target, int attachment, int renderbuffertarget, int renderbuffer) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glFramebufferRenderbufferEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glFramebufferRenderbufferEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer, function_pointer); } private static native void nglFramebufferRenderbufferEXT(int target, int attachment, int renderbuffertarget, int renderbuffer, long function_pointer); public static void glGetFramebufferAttachmentParameterEXT(int target, int attachment, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGetFramebufferAttachmentParameterivEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glGetFramebufferAttachmentParameterivEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetFramebufferAttachmentParameterivEXT(target, attachment, pname, params, params.position(), function_pointer); @@ -220,7 +236,8 @@ public final class EXTFramebufferObject { private static native void nglGetFramebufferAttachmentParameterivEXT(int target, int attachment, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGenerateMipmapEXT(int target) { - long function_pointer = GLContext.getCapabilities().EXT_framebuffer_object_glGenerateMipmapEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_framebuffer_object_glGenerateMipmapEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglGenerateMipmapEXT(target, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTFramebufferSRGB.java b/src/generated/org/lwjgl/opengl/EXTFramebufferSRGB.java index 454b66bc..d790d059 100644 --- a/src/generated/org/lwjgl/opengl/EXTFramebufferSRGB.java +++ b/src/generated/org/lwjgl/opengl/EXTFramebufferSRGB.java @@ -1,36 +1,36 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTFramebufferSRGB { - /** - * Accepted by the <attribList> parameter of glXChooseVisual, and by - * the <attrib> parameter of glXGetConfig: - */ - public static final int GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20b2; - /** - * Accepted by the <piAttributes> parameter of - * wglGetPixelFormatAttribivEXT, wglGetPixelFormatAttribfvEXT, and - * the <piAttribIList> and <pfAttribIList> of wglChoosePixelFormatEXT: - */ - public static final int WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20a9; - /** - * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, - * and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, - * and GetDoublev: - */ - public static final int GL_FRAMEBUFFER_SRGB_EXT = 0x8db9; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, - * GetFloatv, and GetDoublev: - */ - public static final int GL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8dba; - - private EXTFramebufferSRGB() { - } - -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTFramebufferSRGB { + /** + * Accepted by the <attribList> parameter of glXChooseVisual, and by + * the <attrib> parameter of glXGetConfig: + */ + public static final int GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20b2; + /** + * Accepted by the <piAttributes> parameter of + * wglGetPixelFormatAttribivEXT, wglGetPixelFormatAttribfvEXT, and + * the <piAttribIList> and <pfAttribIList> of wglChoosePixelFormatEXT: + */ + public static final int WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20a9; + /** + * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, + * and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, + * and GetDoublev: + */ + public static final int GL_FRAMEBUFFER_SRGB_EXT = 0x8db9; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, + * GetFloatv, and GetDoublev: + */ + public static final int GL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8dba; + + private EXTFramebufferSRGB() { + } + +} diff --git a/src/generated/org/lwjgl/opengl/EXTGeometryShader4.java b/src/generated/org/lwjgl/opengl/EXTGeometryShader4.java index 764950d6..5dc411a4 100644 --- a/src/generated/org/lwjgl/opengl/EXTGeometryShader4.java +++ b/src/generated/org/lwjgl/opengl/EXTGeometryShader4.java @@ -1,91 +1,95 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTGeometryShader4 { - /** - * Accepted by the <type> parameter of CreateShader and returned by the - * <params> parameter of GetShaderiv: - */ - public static final int GL_GEOMETRY_SHADER_EXT = 0x8dd9; - /** - * Accepted by the <pname> parameter of ProgramParameteriEXT and - * GetProgramiv: - */ - public static final int GL_GEOMETRY_VERTICES_OUT_EXT = 0x8dda; - public static final int GL_GEOMETRY_INPUT_TYPE_EXT = 0x8ddb; - public static final int GL_GEOMETRY_OUTPUT_TYPE_EXT = 0x8ddc; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, - * GetFloatv, and GetDoublev: - */ - public static final int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8c29; - public static final int GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8ddd; - public static final int GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8dde; - public static final int GL_MAX_VARYING_COMPONENTS_EXT = 0x8b4b; - public static final int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8ddf; - public static final int GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8de0; - public static final int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8de1; - /** - * Accepted by the <mode> parameter of Begin, DrawArrays, - * MultiDrawArrays, DrawElements, MultiDrawElements, and - * DrawRangeElements: - */ - public static final int GL_LINES_ADJACENCY_EXT = 0xa; - public static final int GL_LINE_STRIP_ADJACENCY_EXT = 0xb; - public static final int GL_TRIANGLES_ADJACENCY_EXT = 0xc; - public static final int GL_TRIANGLE_STRIP_ADJACENCY_EXT = 0xd; - /** - *Returned by CheckFramebufferStatusEXT: - */ - public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8da8; - public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8da9; - /** - * Accepted by the <pname> parameter of GetFramebufferAttachment- - * ParameterivEXT: - */ - public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8da7; - public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8cd4; - /** - * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, - * and by the <pname> parameter of GetIntegerv, GetFloatv, GetDoublev, - * and GetBooleanv: - */ - public static final int GL_PROGRAM_POINT_SIZE_EXT = 0x8642; - - private EXTGeometryShader4() { - } - - - public static void glProgramParameteriEXT(int program, int pname, int value) { - long function_pointer = GLContext.getCapabilities().EXT_geometry_shader4_glProgramParameteriEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglProgramParameteriEXT(program, pname, value, function_pointer); - } - private static native void nglProgramParameteriEXT(int program, int pname, int value, long function_pointer); - - public static void glFramebufferTextureEXT(int target, int attachment, int texture, int level) { - long function_pointer = GLContext.getCapabilities().EXT_geometry_shader4_glFramebufferTextureEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglFramebufferTextureEXT(target, attachment, texture, level, function_pointer); - } - private static native void nglFramebufferTextureEXT(int target, int attachment, int texture, int level, long function_pointer); - - public static void glFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) { - long function_pointer = GLContext.getCapabilities().EXT_geometry_shader4_glFramebufferTextureLayerEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglFramebufferTextureLayerEXT(target, attachment, texture, level, layer, function_pointer); - } - private static native void nglFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer, long function_pointer); - - public static void glFramebufferTextureFaceEXT(int target, int attachment, int texture, int level, int face) { - long function_pointer = GLContext.getCapabilities().EXT_geometry_shader4_glFramebufferTextureFaceEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglFramebufferTextureFaceEXT(target, attachment, texture, level, face, function_pointer); - } - private static native void nglFramebufferTextureFaceEXT(int target, int attachment, int texture, int level, int face, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTGeometryShader4 { + /** + * Accepted by the <type> parameter of CreateShader and returned by the + * <params> parameter of GetShaderiv: + */ + public static final int GL_GEOMETRY_SHADER_EXT = 0x8dd9; + /** + * Accepted by the <pname> parameter of ProgramParameteriEXT and + * GetProgramiv: + */ + public static final int GL_GEOMETRY_VERTICES_OUT_EXT = 0x8dda; + public static final int GL_GEOMETRY_INPUT_TYPE_EXT = 0x8ddb; + public static final int GL_GEOMETRY_OUTPUT_TYPE_EXT = 0x8ddc; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, + * GetFloatv, and GetDoublev: + */ + public static final int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8c29; + public static final int GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8ddd; + public static final int GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8dde; + public static final int GL_MAX_VARYING_COMPONENTS_EXT = 0x8b4b; + public static final int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8ddf; + public static final int GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8de0; + public static final int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8de1; + /** + * Accepted by the <mode> parameter of Begin, DrawArrays, + * MultiDrawArrays, DrawElements, MultiDrawElements, and + * DrawRangeElements: + */ + public static final int GL_LINES_ADJACENCY_EXT = 0xa; + public static final int GL_LINE_STRIP_ADJACENCY_EXT = 0xb; + public static final int GL_TRIANGLES_ADJACENCY_EXT = 0xc; + public static final int GL_TRIANGLE_STRIP_ADJACENCY_EXT = 0xd; + /** + *Returned by CheckFramebufferStatusEXT: + */ + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8da8; + public static final int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8da9; + /** + * Accepted by the <pname> parameter of GetFramebufferAttachment- + * ParameterivEXT: + */ + public static final int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8da7; + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8cd4; + /** + * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, + * and by the <pname> parameter of GetIntegerv, GetFloatv, GetDoublev, + * and GetBooleanv: + */ + public static final int GL_PROGRAM_POINT_SIZE_EXT = 0x8642; + + private EXTGeometryShader4() { + } + + + public static void glProgramParameteriEXT(int program, int pname, int value) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_geometry_shader4_glProgramParameteriEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglProgramParameteriEXT(program, pname, value, function_pointer); + } + private static native void nglProgramParameteriEXT(int program, int pname, int value, long function_pointer); + + public static void glFramebufferTextureEXT(int target, int attachment, int texture, int level) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_geometry_shader4_glFramebufferTextureEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglFramebufferTextureEXT(target, attachment, texture, level, function_pointer); + } + private static native void nglFramebufferTextureEXT(int target, int attachment, int texture, int level, long function_pointer); + + public static void glFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_geometry_shader4_glFramebufferTextureLayerEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglFramebufferTextureLayerEXT(target, attachment, texture, level, layer, function_pointer); + } + private static native void nglFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer, long function_pointer); + + public static void glFramebufferTextureFaceEXT(int target, int attachment, int texture, int level, int face) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_geometry_shader4_glFramebufferTextureFaceEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglFramebufferTextureFaceEXT(target, attachment, texture, level, face, function_pointer); + } + private static native void nglFramebufferTextureFaceEXT(int target, int attachment, int texture, int level, int face, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTGpuProgramParameters.java b/src/generated/org/lwjgl/opengl/EXTGpuProgramParameters.java index 60c50f3a..94fc37a0 100644 --- a/src/generated/org/lwjgl/opengl/EXTGpuProgramParameters.java +++ b/src/generated/org/lwjgl/opengl/EXTGpuProgramParameters.java @@ -1,30 +1,32 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTGpuProgramParameters { - - private EXTGpuProgramParameters() { - } - - - public static void glProgramEnvParameter4EXT(int target, int index, int count, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_program_parameters_glProgramEnvParameter4fvEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, count << 2); - nglProgramEnvParameter4fvEXT(target, index, count, params, params.position(), function_pointer); - } - private static native void nglProgramEnvParameter4fvEXT(int target, int index, int count, FloatBuffer params, int params_position, long function_pointer); - - public static void glProgramLocalParameter4EXT(int target, int index, int count, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_program_parameters_glProgramLocalParameter4fvEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, count << 2); - nglProgramLocalParameter4fvEXT(target, index, count, params, params.position(), function_pointer); - } - private static native void nglProgramLocalParameter4fvEXT(int target, int index, int count, FloatBuffer params, int params_position, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTGpuProgramParameters { + + private EXTGpuProgramParameters() { + } + + + public static void glProgramEnvParameter4EXT(int target, int index, int count, FloatBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_program_parameters_glProgramEnvParameter4fvEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, count << 2); + nglProgramEnvParameter4fvEXT(target, index, count, params, params.position(), function_pointer); + } + private static native void nglProgramEnvParameter4fvEXT(int target, int index, int count, FloatBuffer params, int params_position, long function_pointer); + + public static void glProgramLocalParameter4EXT(int target, int index, int count, FloatBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_program_parameters_glProgramLocalParameter4fvEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, count << 2); + nglProgramLocalParameter4fvEXT(target, index, count, params, params.position(), function_pointer); + } + private static native void nglProgramLocalParameter4fvEXT(int target, int index, int count, FloatBuffer params, int params_position, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTGpuShader4.java b/src/generated/org/lwjgl/opengl/EXTGpuShader4.java index 75e82001..a90fd631 100644 --- a/src/generated/org/lwjgl/opengl/EXTGpuShader4.java +++ b/src/generated/org/lwjgl/opengl/EXTGpuShader4.java @@ -1,343 +1,380 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTGpuShader4 { - /** - * Accepted by the <pname> parameters of GetVertexAttribdv, - * GetVertexAttribfv, GetVertexAttribiv, GetVertexAttribIivEXT, and - * GetVertexAttribIuivEXT: - */ - public static final int GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88fd; - /** - *Returned by the <type> parameter of GetActiveUniform: - */ - public static final int GL_SAMPLER_1D_ARRAY_EXT = 0x8dc0; - public static final int GL_SAMPLER_2D_ARRAY_EXT = 0x8dc1; - public static final int GL_SAMPLER_BUFFER_EXT = 0x8dc2; - public static final int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8dc3; - public static final int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8dc4; - public static final int GL_SAMPLER_CUBE_SHADOW_EXT = 0x8dc5; - public static final int GL_UNSIGNED_INT = 0x1405; - public static final int GL_UNSIGNED_INT_VEC2_EXT = 0x8dc6; - public static final int GL_UNSIGNED_INT_VEC3_EXT = 0x8dc7; - public static final int GL_UNSIGNED_INT_VEC4_EXT = 0x8dc8; - public static final int GL_INT_SAMPLER_1D_EXT = 0x8dc9; - public static final int GL_INT_SAMPLER_2D_EXT = 0x8dca; - public static final int GL_INT_SAMPLER_3D_EXT = 0x8dcb; - public static final int GL_INT_SAMPLER_CUBE_EXT = 0x8dcc; - public static final int GL_INT_SAMPLER_2D_RECT_EXT = 0x8dcd; - public static final int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8dce; - public static final int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8dcf; - public static final int GL_INT_SAMPLER_BUFFER_EXT = 0x8dd0; - public static final int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8dd1; - public static final int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8dd2; - public static final int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8dd3; - public static final int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8dd4; - public static final int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8dd5; - public static final int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8dd6; - public static final int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8dd7; - public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8dd8; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, - * and GetDoublev: - */ - public static final int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904; - public static final int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905; - - private EXTGpuShader4() { - } - - - public static void glVertexAttribI1iEXT(int index, int x) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI1iEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglVertexAttribI1iEXT(index, x, function_pointer); - } - private static native void nglVertexAttribI1iEXT(int index, int x, long function_pointer); - - public static void glVertexAttribI2iEXT(int index, int x, int y) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI2iEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglVertexAttribI2iEXT(index, x, y, function_pointer); - } - private static native void nglVertexAttribI2iEXT(int index, int x, int y, long function_pointer); - - public static void glVertexAttribI3iEXT(int index, int x, int y, int z) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI3iEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglVertexAttribI3iEXT(index, x, y, z, function_pointer); - } - private static native void nglVertexAttribI3iEXT(int index, int x, int y, int z, long function_pointer); - - public static void glVertexAttribI4iEXT(int index, int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI4iEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglVertexAttribI4iEXT(index, x, y, z, w, function_pointer); - } - private static native void nglVertexAttribI4iEXT(int index, int x, int y, int z, int w, long function_pointer); - - public static void glVertexAttribI1uiEXT(int index, int x) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI1uiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglVertexAttribI1uiEXT(index, x, function_pointer); - } - private static native void nglVertexAttribI1uiEXT(int index, int x, long function_pointer); - - public static void glVertexAttribI2uiEXT(int index, int x, int y) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI2uiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglVertexAttribI2uiEXT(index, x, y, function_pointer); - } - private static native void nglVertexAttribI2uiEXT(int index, int x, int y, long function_pointer); - - public static void glVertexAttribI3uiEXT(int index, int x, int y, int z) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI3uiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglVertexAttribI3uiEXT(index, x, y, z, function_pointer); - } - private static native void nglVertexAttribI3uiEXT(int index, int x, int y, int z, long function_pointer); - - public static void glVertexAttribI4uiEXT(int index, int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI4uiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglVertexAttribI4uiEXT(index, x, y, z, w, function_pointer); - } - private static native void nglVertexAttribI4uiEXT(int index, int x, int y, int z, int w, long function_pointer); - - public static void glVertexAttribI1EXT(int index, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI1ivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 1); - nglVertexAttribI1ivEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI1ivEXT(int index, IntBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI2EXT(int index, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI2ivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 2); - nglVertexAttribI2ivEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI2ivEXT(int index, IntBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI3EXT(int index, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI3ivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 3); - nglVertexAttribI3ivEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI3ivEXT(int index, IntBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI4EXT(int index, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI4ivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 4); - nglVertexAttribI4ivEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI4ivEXT(int index, IntBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI1uEXT(int index, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI1uivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 1); - nglVertexAttribI1uivEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI1uivEXT(int index, IntBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI2uEXT(int index, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI2uivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 2); - nglVertexAttribI2uivEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI2uivEXT(int index, IntBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI3uEXT(int index, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI3uivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 3); - nglVertexAttribI3uivEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI3uivEXT(int index, IntBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI4uEXT(int index, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI4uivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 4); - nglVertexAttribI4uivEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI4uivEXT(int index, IntBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI4EXT(int index, ByteBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI4bvEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 4); - nglVertexAttribI4bvEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI4bvEXT(int index, ByteBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI4EXT(int index, ShortBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI4svEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 4); - nglVertexAttribI4svEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI4svEXT(int index, ShortBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI4uEXT(int index, ByteBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI4ubvEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 4); - nglVertexAttribI4ubvEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI4ubvEXT(int index, ByteBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribI4uEXT(int index, ShortBuffer v) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribI4usvEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(v, 4); - nglVertexAttribI4usvEXT(index, v, v.position(), function_pointer); - } - private static native void nglVertexAttribI4usvEXT(int index, ShortBuffer v, int v_position, long function_pointer); - - public static void glVertexAttribIPointerEXT(int index, int size, int type, int stride, ByteBuffer buffer) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribIPointerEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); - BufferChecks.checkDirect(buffer); - GLChecks.getReferences().EXT_gpu_shader4_glVertexAttribIPointerEXT_buffer = buffer; - nglVertexAttribIPointerEXT(index, size, type, stride, buffer, buffer.position(), function_pointer); - } - public static void glVertexAttribIPointerEXT(int index, int size, int type, int stride, IntBuffer buffer) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribIPointerEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); - BufferChecks.checkDirect(buffer); - GLChecks.getReferences().EXT_gpu_shader4_glVertexAttribIPointerEXT_buffer = buffer; - nglVertexAttribIPointerEXT(index, size, type, stride, buffer, buffer.position() << 2, function_pointer); - } - public static void glVertexAttribIPointerEXT(int index, int size, int type, int stride, ShortBuffer buffer) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribIPointerEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); - BufferChecks.checkDirect(buffer); - GLChecks.getReferences().EXT_gpu_shader4_glVertexAttribIPointerEXT_buffer = buffer; - nglVertexAttribIPointerEXT(index, size, type, stride, buffer, buffer.position() << 1, function_pointer); - } - private static native void nglVertexAttribIPointerEXT(int index, int size, int type, int stride, Buffer buffer, int buffer_position, long function_pointer); - public static void glVertexAttribIPointerEXT(int index, int size, int type, int stride, long buffer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glVertexAttribIPointerEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); - nglVertexAttribIPointerEXTBO(index, size, type, stride, buffer_buffer_offset, function_pointer); - } - private static native void nglVertexAttribIPointerEXTBO(int index, int size, int type, int stride, long buffer_buffer_offset, long function_pointer); - - public static void glGetVertexAttribIEXT(int index, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glGetVertexAttribIivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglGetVertexAttribIivEXT(index, pname, params, params.position(), function_pointer); - } - private static native void nglGetVertexAttribIivEXT(int index, int pname, IntBuffer params, int params_position, long function_pointer); - - public static void glGetVertexAttribIuEXT(int index, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glGetVertexAttribIuivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglGetVertexAttribIuivEXT(index, pname, params, params.position(), function_pointer); - } - private static native void nglGetVertexAttribIuivEXT(int index, int pname, IntBuffer params, int params_position, long function_pointer); - - public static void glUniform1uiEXT(int location, int v0) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glUniform1uiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglUniform1uiEXT(location, v0, function_pointer); - } - private static native void nglUniform1uiEXT(int location, int v0, long function_pointer); - - public static void glUniform2uiEXT(int location, int v0, int v1) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glUniform2uiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglUniform2uiEXT(location, v0, v1, function_pointer); - } - private static native void nglUniform2uiEXT(int location, int v0, int v1, long function_pointer); - - public static void glUniform3uiEXT(int location, int v0, int v1, int v2) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glUniform3uiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglUniform3uiEXT(location, v0, v1, v2, function_pointer); - } - private static native void nglUniform3uiEXT(int location, int v0, int v1, int v2, long function_pointer); - - public static void glUniform4uiEXT(int location, int v0, int v1, int v2, int v3) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glUniform4uiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglUniform4uiEXT(location, v0, v1, v2, v3, function_pointer); - } - private static native void nglUniform4uiEXT(int location, int v0, int v1, int v2, int v3, long function_pointer); - - public static void glUniform1uEXT(int location, IntBuffer value) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glUniform1uivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(value); - nglUniform1uivEXT(location, (value.remaining()), value, value.position(), function_pointer); - } - private static native void nglUniform1uivEXT(int location, int count, IntBuffer value, int value_position, long function_pointer); - - public static void glUniform2uEXT(int location, IntBuffer value) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glUniform2uivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(value); - nglUniform2uivEXT(location, (value.remaining()) >> 1, value, value.position(), function_pointer); - } - private static native void nglUniform2uivEXT(int location, int count, IntBuffer value, int value_position, long function_pointer); - - public static void glUniform3uEXT(int location, IntBuffer value) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glUniform3uivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(value); - nglUniform3uivEXT(location, (value.remaining()) / 3, value, value.position(), function_pointer); - } - private static native void nglUniform3uivEXT(int location, int count, IntBuffer value, int value_position, long function_pointer); - - public static void glUniform4uEXT(int location, IntBuffer value) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glUniform4uivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(value); - nglUniform4uivEXT(location, (value.remaining()) >> 2, value, value.position(), function_pointer); - } - private static native void nglUniform4uivEXT(int location, int count, IntBuffer value, int value_position, long function_pointer); - - public static void glGetUniformuEXT(int program, int location, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glGetUniformuivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(params); - nglGetUniformuivEXT(program, location, params, params.position(), function_pointer); - } - private static native void nglGetUniformuivEXT(int program, int location, IntBuffer params, int params_position, long function_pointer); - - public static void glBindFragDataLocationEXT(int program, int colorNumber, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glBindFragDataLocationEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(name); - BufferChecks.checkNullTerminated(name); - nglBindFragDataLocationEXT(program, colorNumber, name, name.position(), function_pointer); - } - private static native void nglBindFragDataLocationEXT(int program, int colorNumber, ByteBuffer name, int name_position, long function_pointer); - - public static int glGetFragDataLocationEXT(int program, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().EXT_gpu_shader4_glGetFragDataLocationEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(name); - BufferChecks.checkNullTerminated(name); - int __result = nglGetFragDataLocationEXT(program, name, name.position(), function_pointer); - return __result; - } - private static native int nglGetFragDataLocationEXT(int program, ByteBuffer name, int name_position, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTGpuShader4 { + /** + * Accepted by the <pname> parameters of GetVertexAttribdv, + * GetVertexAttribfv, GetVertexAttribiv, GetVertexAttribIivEXT, and + * GetVertexAttribIuivEXT: + */ + public static final int GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88fd; + /** + *Returned by the <type> parameter of GetActiveUniform: + */ + public static final int GL_SAMPLER_1D_ARRAY_EXT = 0x8dc0; + public static final int GL_SAMPLER_2D_ARRAY_EXT = 0x8dc1; + public static final int GL_SAMPLER_BUFFER_EXT = 0x8dc2; + public static final int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8dc3; + public static final int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8dc4; + public static final int GL_SAMPLER_CUBE_SHADOW_EXT = 0x8dc5; + public static final int GL_UNSIGNED_INT = 0x1405; + public static final int GL_UNSIGNED_INT_VEC2_EXT = 0x8dc6; + public static final int GL_UNSIGNED_INT_VEC3_EXT = 0x8dc7; + public static final int GL_UNSIGNED_INT_VEC4_EXT = 0x8dc8; + public static final int GL_INT_SAMPLER_1D_EXT = 0x8dc9; + public static final int GL_INT_SAMPLER_2D_EXT = 0x8dca; + public static final int GL_INT_SAMPLER_3D_EXT = 0x8dcb; + public static final int GL_INT_SAMPLER_CUBE_EXT = 0x8dcc; + public static final int GL_INT_SAMPLER_2D_RECT_EXT = 0x8dcd; + public static final int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8dce; + public static final int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8dcf; + public static final int GL_INT_SAMPLER_BUFFER_EXT = 0x8dd0; + public static final int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8dd1; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8dd2; + public static final int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8dd3; + public static final int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8dd4; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8dd5; + public static final int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8dd6; + public static final int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8dd7; + public static final int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8dd8; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, + * and GetDoublev: + */ + public static final int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904; + public static final int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905; + + private EXTGpuShader4() { + } + + + public static void glVertexAttribI1iEXT(int index, int x) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI1iEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglVertexAttribI1iEXT(index, x, function_pointer); + } + private static native void nglVertexAttribI1iEXT(int index, int x, long function_pointer); + + public static void glVertexAttribI2iEXT(int index, int x, int y) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI2iEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglVertexAttribI2iEXT(index, x, y, function_pointer); + } + private static native void nglVertexAttribI2iEXT(int index, int x, int y, long function_pointer); + + public static void glVertexAttribI3iEXT(int index, int x, int y, int z) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI3iEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglVertexAttribI3iEXT(index, x, y, z, function_pointer); + } + private static native void nglVertexAttribI3iEXT(int index, int x, int y, int z, long function_pointer); + + public static void glVertexAttribI4iEXT(int index, int x, int y, int z, int w) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI4iEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglVertexAttribI4iEXT(index, x, y, z, w, function_pointer); + } + private static native void nglVertexAttribI4iEXT(int index, int x, int y, int z, int w, long function_pointer); + + public static void glVertexAttribI1uiEXT(int index, int x) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI1uiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglVertexAttribI1uiEXT(index, x, function_pointer); + } + private static native void nglVertexAttribI1uiEXT(int index, int x, long function_pointer); + + public static void glVertexAttribI2uiEXT(int index, int x, int y) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI2uiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglVertexAttribI2uiEXT(index, x, y, function_pointer); + } + private static native void nglVertexAttribI2uiEXT(int index, int x, int y, long function_pointer); + + public static void glVertexAttribI3uiEXT(int index, int x, int y, int z) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI3uiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglVertexAttribI3uiEXT(index, x, y, z, function_pointer); + } + private static native void nglVertexAttribI3uiEXT(int index, int x, int y, int z, long function_pointer); + + public static void glVertexAttribI4uiEXT(int index, int x, int y, int z, int w) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI4uiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglVertexAttribI4uiEXT(index, x, y, z, w, function_pointer); + } + private static native void nglVertexAttribI4uiEXT(int index, int x, int y, int z, int w, long function_pointer); + + public static void glVertexAttribI1EXT(int index, IntBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI1ivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 1); + nglVertexAttribI1ivEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI1ivEXT(int index, IntBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI2EXT(int index, IntBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI2ivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 2); + nglVertexAttribI2ivEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI2ivEXT(int index, IntBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI3EXT(int index, IntBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI3ivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 3); + nglVertexAttribI3ivEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI3ivEXT(int index, IntBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI4EXT(int index, IntBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI4ivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 4); + nglVertexAttribI4ivEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI4ivEXT(int index, IntBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI1uEXT(int index, IntBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI1uivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 1); + nglVertexAttribI1uivEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI1uivEXT(int index, IntBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI2uEXT(int index, IntBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI2uivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 2); + nglVertexAttribI2uivEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI2uivEXT(int index, IntBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI3uEXT(int index, IntBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI3uivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 3); + nglVertexAttribI3uivEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI3uivEXT(int index, IntBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI4uEXT(int index, IntBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI4uivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 4); + nglVertexAttribI4uivEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI4uivEXT(int index, IntBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI4EXT(int index, ByteBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI4bvEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 4); + nglVertexAttribI4bvEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI4bvEXT(int index, ByteBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI4EXT(int index, ShortBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI4svEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 4); + nglVertexAttribI4svEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI4svEXT(int index, ShortBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI4uEXT(int index, ByteBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI4ubvEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 4); + nglVertexAttribI4ubvEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI4ubvEXT(int index, ByteBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribI4uEXT(int index, ShortBuffer v) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribI4usvEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(v, 4); + nglVertexAttribI4usvEXT(index, v, v.position(), function_pointer); + } + private static native void nglVertexAttribI4usvEXT(int index, ShortBuffer v, int v_position, long function_pointer); + + public static void glVertexAttribIPointerEXT(int index, int size, int type, int stride, ByteBuffer buffer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribIPointerEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + GLChecks.ensureArrayVBOdisabled(caps); + BufferChecks.checkDirect(buffer); + GLChecks.getReferences(caps).EXT_gpu_shader4_glVertexAttribIPointerEXT_buffer = buffer; + nglVertexAttribIPointerEXT(index, size, type, stride, buffer, buffer.position(), function_pointer); + } + public static void glVertexAttribIPointerEXT(int index, int size, int type, int stride, IntBuffer buffer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribIPointerEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + GLChecks.ensureArrayVBOdisabled(caps); + BufferChecks.checkDirect(buffer); + GLChecks.getReferences(caps).EXT_gpu_shader4_glVertexAttribIPointerEXT_buffer = buffer; + nglVertexAttribIPointerEXT(index, size, type, stride, buffer, buffer.position() << 2, function_pointer); + } + public static void glVertexAttribIPointerEXT(int index, int size, int type, int stride, ShortBuffer buffer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribIPointerEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + GLChecks.ensureArrayVBOdisabled(caps); + BufferChecks.checkDirect(buffer); + GLChecks.getReferences(caps).EXT_gpu_shader4_glVertexAttribIPointerEXT_buffer = buffer; + nglVertexAttribIPointerEXT(index, size, type, stride, buffer, buffer.position() << 1, function_pointer); + } + private static native void nglVertexAttribIPointerEXT(int index, int size, int type, int stride, Buffer buffer, int buffer_position, long function_pointer); + public static void glVertexAttribIPointerEXT(int index, int size, int type, int stride, long buffer_buffer_offset) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glVertexAttribIPointerEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + GLChecks.ensureArrayVBOenabled(caps); + nglVertexAttribIPointerEXTBO(index, size, type, stride, buffer_buffer_offset, function_pointer); + } + private static native void nglVertexAttribIPointerEXTBO(int index, int size, int type, int stride, long buffer_buffer_offset, long function_pointer); + + public static void glGetVertexAttribIEXT(int index, int pname, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glGetVertexAttribIivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglGetVertexAttribIivEXT(index, pname, params, params.position(), function_pointer); + } + private static native void nglGetVertexAttribIivEXT(int index, int pname, IntBuffer params, int params_position, long function_pointer); + + public static void glGetVertexAttribIuEXT(int index, int pname, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glGetVertexAttribIuivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglGetVertexAttribIuivEXT(index, pname, params, params.position(), function_pointer); + } + private static native void nglGetVertexAttribIuivEXT(int index, int pname, IntBuffer params, int params_position, long function_pointer); + + public static void glUniform1uiEXT(int location, int v0) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glUniform1uiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglUniform1uiEXT(location, v0, function_pointer); + } + private static native void nglUniform1uiEXT(int location, int v0, long function_pointer); + + public static void glUniform2uiEXT(int location, int v0, int v1) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glUniform2uiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglUniform2uiEXT(location, v0, v1, function_pointer); + } + private static native void nglUniform2uiEXT(int location, int v0, int v1, long function_pointer); + + public static void glUniform3uiEXT(int location, int v0, int v1, int v2) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glUniform3uiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglUniform3uiEXT(location, v0, v1, v2, function_pointer); + } + private static native void nglUniform3uiEXT(int location, int v0, int v1, int v2, long function_pointer); + + public static void glUniform4uiEXT(int location, int v0, int v1, int v2, int v3) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glUniform4uiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglUniform4uiEXT(location, v0, v1, v2, v3, function_pointer); + } + private static native void nglUniform4uiEXT(int location, int v0, int v1, int v2, int v3, long function_pointer); + + public static void glUniform1uEXT(int location, IntBuffer value) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glUniform1uivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(value); + nglUniform1uivEXT(location, (value.remaining()), value, value.position(), function_pointer); + } + private static native void nglUniform1uivEXT(int location, int count, IntBuffer value, int value_position, long function_pointer); + + public static void glUniform2uEXT(int location, IntBuffer value) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glUniform2uivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(value); + nglUniform2uivEXT(location, (value.remaining()) >> 1, value, value.position(), function_pointer); + } + private static native void nglUniform2uivEXT(int location, int count, IntBuffer value, int value_position, long function_pointer); + + public static void glUniform3uEXT(int location, IntBuffer value) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glUniform3uivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(value); + nglUniform3uivEXT(location, (value.remaining()) / 3, value, value.position(), function_pointer); + } + private static native void nglUniform3uivEXT(int location, int count, IntBuffer value, int value_position, long function_pointer); + + public static void glUniform4uEXT(int location, IntBuffer value) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glUniform4uivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(value); + nglUniform4uivEXT(location, (value.remaining()) >> 2, value, value.position(), function_pointer); + } + private static native void nglUniform4uivEXT(int location, int count, IntBuffer value, int value_position, long function_pointer); + + public static void glGetUniformuEXT(int program, int location, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glGetUniformuivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(params); + nglGetUniformuivEXT(program, location, params, params.position(), function_pointer); + } + private static native void nglGetUniformuivEXT(int program, int location, IntBuffer params, int params_position, long function_pointer); + + public static void glBindFragDataLocationEXT(int program, int colorNumber, ByteBuffer name) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glBindFragDataLocationEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(name); + BufferChecks.checkNullTerminated(name); + nglBindFragDataLocationEXT(program, colorNumber, name, name.position(), function_pointer); + } + private static native void nglBindFragDataLocationEXT(int program, int colorNumber, ByteBuffer name, int name_position, long function_pointer); + + public static int glGetFragDataLocationEXT(int program, ByteBuffer name) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_gpu_shader4_glGetFragDataLocationEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(name); + BufferChecks.checkNullTerminated(name); + int __result = nglGetFragDataLocationEXT(program, name, name.position(), function_pointer); + return __result; + } + private static native int nglGetFragDataLocationEXT(int program, ByteBuffer name, int name_position, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTMultiDrawArrays.java b/src/generated/org/lwjgl/opengl/EXTMultiDrawArrays.java index 7fd08240..7fb6801c 100644 --- a/src/generated/org/lwjgl/opengl/EXTMultiDrawArrays.java +++ b/src/generated/org/lwjgl/opengl/EXTMultiDrawArrays.java @@ -13,11 +13,12 @@ public final class EXTMultiDrawArrays { public static void glMultiDrawArraysEXT(int mode, IntBuffer piFirst, IntBuffer piCount) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_multi_draw_arrays_glMultiDrawArraysEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); if (piFirst.remaining() != piCount.remaining()) { throw new IllegalArgumentException("piFirst.remaining() != piCount.remaining()"); } - long function_pointer = GLContext.getCapabilities().EXT_multi_draw_arrays_glMultiDrawArraysEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(piFirst); BufferChecks.checkDirect(piCount); nglMultiDrawArraysEXT(mode, piFirst, piFirst.position(), piCount, piCount.position(), (piFirst.remaining()), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/EXTPackedFloat.java b/src/generated/org/lwjgl/opengl/EXTPackedFloat.java index 4646bed8..94737824 100644 --- a/src/generated/org/lwjgl/opengl/EXTPackedFloat.java +++ b/src/generated/org/lwjgl/opengl/EXTPackedFloat.java @@ -1,52 +1,52 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTPackedFloat { - /** - * Accepted by the <internalformat> parameter of TexImage1D, - * TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and - * RenderbufferStorageEXT: - */ - public static final int GL_R11F_G11F_B10F_EXT = 0x8c3a; - /** - * Accepted by the <type> parameter of DrawPixels, ReadPixels, - * TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, - * TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, - * ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, - * GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter, - * ColorTable, ColorSubTable, and GetColorTable: - */ - public static final int GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8c3b; - /** - * Accepted by the <pname> parameters of GetIntegerv, GetFloatv, and - * GetDoublev: - */ - public static final int GL_RGBA_SIGNED_COMPONENTS_EXT = 0x8c3c; - /** - * Accepted as a value in the <piAttribIList> and <pfAttribFList> - * parameter arrays of wglChoosePixelFormatARB, and returned in the - * <piValues> parameter array of wglGetPixelFormatAttribivARB, and the - * <pfValues> parameter array of wglGetPixelFormatAttribfvARB: - */ - public static final int WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT = 0x20a8; - /** - * Accepted as values of the <render_type> arguments in the - * glXCreateNewContext and glXCreateContext functions - */ - public static final int GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT = 0x20b1; - /** - * Returned by glXGetFBConfigAttrib (when <attribute> is set to - * GLX_RENDER_TYPE) and accepted by the <attrib_list> parameter of - * glXChooseFBConfig (following the GLX_RENDER_TYPE token): - */ - public static final int GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT = 0x8; - - private EXTPackedFloat() { - } - -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTPackedFloat { + /** + * Accepted by the <internalformat> parameter of TexImage1D, + * TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and + * RenderbufferStorageEXT: + */ + public static final int GL_R11F_G11F_B10F_EXT = 0x8c3a; + /** + * Accepted by the <type> parameter of DrawPixels, ReadPixels, + * TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, + * TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, + * ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, + * GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter, + * ColorTable, ColorSubTable, and GetColorTable: + */ + public static final int GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8c3b; + /** + * Accepted by the <pname> parameters of GetIntegerv, GetFloatv, and + * GetDoublev: + */ + public static final int GL_RGBA_SIGNED_COMPONENTS_EXT = 0x8c3c; + /** + * Accepted as a value in the <piAttribIList> and <pfAttribFList> + * parameter arrays of wglChoosePixelFormatARB, and returned in the + * <piValues> parameter array of wglGetPixelFormatAttribivARB, and the + * <pfValues> parameter array of wglGetPixelFormatAttribfvARB: + */ + public static final int WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT = 0x20a8; + /** + * Accepted as values of the <render_type> arguments in the + * glXCreateNewContext and glXCreateContext functions + */ + public static final int GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT = 0x20b1; + /** + * Returned by glXGetFBConfigAttrib (when <attribute> is set to + * GLX_RENDER_TYPE) and accepted by the <attrib_list> parameter of + * glXChooseFBConfig (following the GLX_RENDER_TYPE token): + */ + public static final int GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT = 0x8; + + private EXTPackedFloat() { + } + +} diff --git a/src/generated/org/lwjgl/opengl/EXTPalettedTexture.java b/src/generated/org/lwjgl/opengl/EXTPalettedTexture.java index 3e52f6f0..4f6bb357 100644 --- a/src/generated/org/lwjgl/opengl/EXTPalettedTexture.java +++ b/src/generated/org/lwjgl/opengl/EXTPalettedTexture.java @@ -39,31 +39,36 @@ public final class EXTPalettedTexture { public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1)); nglColorTableEXT(target, internalFormat, width, format, type, data, data.position(), function_pointer); } public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1)); nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 3, function_pointer); } public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1)); nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer); } public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1)); nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 2, function_pointer); } public static void glColorTableEXT(int target, int internalFormat, int width, int format, int type, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1)); nglColorTableEXT(target, internalFormat, width, format, type, data, data.position() << 1, function_pointer); @@ -71,31 +76,36 @@ public final class EXTPalettedTexture { private static native void nglColorTableEXT(int target, int internalFormat, int width, int format, int type, Buffer data, int data_position, long function_pointer); public static void glColorSubTableEXT(int target, int start, int count, int format, int type, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorSubTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, count, 1, 1)); nglColorSubTableEXT(target, start, count, format, type, data, data.position(), function_pointer); } public static void glColorSubTableEXT(int target, int start, int count, int format, int type, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorSubTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, count, 1, 1)); nglColorSubTableEXT(target, start, count, format, type, data, data.position() << 3, function_pointer); } public static void glColorSubTableEXT(int target, int start, int count, int format, int type, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorSubTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, count, 1, 1)); nglColorSubTableEXT(target, start, count, format, type, data, data.position() << 2, function_pointer); } public static void glColorSubTableEXT(int target, int start, int count, int format, int type, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorSubTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, count, 1, 1)); nglColorSubTableEXT(target, start, count, format, type, data, data.position() << 2, function_pointer); } public static void glColorSubTableEXT(int target, int start, int count, int format, int type, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glColorSubTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glColorSubTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, count, 1, 1)); nglColorSubTableEXT(target, start, count, format, type, data, data.position() << 1, function_pointer); @@ -103,31 +113,36 @@ public final class EXTPalettedTexture { private static native void nglColorSubTableEXT(int target, int start, int count, int format, int type, Buffer data, int data_position, long function_pointer); public static void glGetColorTableEXT(int target, int format, int type, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glGetColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetColorTableEXT(target, format, type, data, data.position(), function_pointer); } public static void glGetColorTableEXT(int target, int format, int type, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glGetColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetColorTableEXT(target, format, type, data, data.position() << 3, function_pointer); } public static void glGetColorTableEXT(int target, int format, int type, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glGetColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer); } public static void glGetColorTableEXT(int target, int format, int type, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glGetColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetColorTableEXT(target, format, type, data, data.position() << 2, function_pointer); } public static void glGetColorTableEXT(int target, int format, int type, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glGetColorTableEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetColorTableEXT(target, format, type, data, data.position() << 1, function_pointer); @@ -135,7 +150,8 @@ public final class EXTPalettedTexture { private static native void nglGetColorTableEXT(int target, int format, int type, Buffer data, int data_position, long function_pointer); public static void glGetColorTableParameterEXT(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableParameterivEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glGetColorTableParameterivEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetColorTableParameterivEXT(target, pname, params, params.position(), function_pointer); @@ -143,7 +159,8 @@ public final class EXTPalettedTexture { private static native void nglGetColorTableParameterivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetColorTableParameterEXT(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_paletted_texture_glGetColorTableParameterfvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_paletted_texture_glGetColorTableParameterfvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetColorTableParameterfvEXT(target, pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/EXTPointParameters.java b/src/generated/org/lwjgl/opengl/EXTPointParameters.java index 09d15e77..c1028a7f 100644 --- a/src/generated/org/lwjgl/opengl/EXTPointParameters.java +++ b/src/generated/org/lwjgl/opengl/EXTPointParameters.java @@ -17,14 +17,16 @@ public final class EXTPointParameters { public static void glPointParameterfEXT(int pname, float param) { - long function_pointer = GLContext.getCapabilities().EXT_point_parameters_glPointParameterfEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_point_parameters_glPointParameterfEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPointParameterfEXT(pname, param, function_pointer); } private static native void nglPointParameterfEXT(int pname, float param, long function_pointer); public static void glPointParameterEXT(int pname, FloatBuffer pfParams) { - long function_pointer = GLContext.getCapabilities().EXT_point_parameters_glPointParameterfvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_point_parameters_glPointParameterfvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pfParams, 4); nglPointParameterfvEXT(pname, pfParams, pfParams.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/EXTSecondaryColor.java b/src/generated/org/lwjgl/opengl/EXTSecondaryColor.java index 0198eb3e..ad031480 100644 --- a/src/generated/org/lwjgl/opengl/EXTSecondaryColor.java +++ b/src/generated/org/lwjgl/opengl/EXTSecondaryColor.java @@ -20,62 +20,70 @@ public final class EXTSecondaryColor { public static void glSecondaryColor3bEXT(byte red, byte green, byte blue) { - long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3bEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_secondary_color_glSecondaryColor3bEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3bEXT(red, green, blue, function_pointer); } private static native void nglSecondaryColor3bEXT(byte red, byte green, byte blue, long function_pointer); public static void glSecondaryColor3fEXT(float red, float green, float blue) { - long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3fEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_secondary_color_glSecondaryColor3fEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3fEXT(red, green, blue, function_pointer); } private static native void nglSecondaryColor3fEXT(float red, float green, float blue, long function_pointer); public static void glSecondaryColor3dEXT(double red, double green, double blue) { - long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3dEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_secondary_color_glSecondaryColor3dEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3dEXT(red, green, blue, function_pointer); } private static native void nglSecondaryColor3dEXT(double red, double green, double blue, long function_pointer); public static void glSecondaryColor3ubEXT(byte red, byte green, byte blue) { - long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColor3ubEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_secondary_color_glSecondaryColor3ubEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3ubEXT(red, green, blue, function_pointer); } private static native void nglSecondaryColor3ubEXT(byte red, byte green, byte blue, long function_pointer); public static void glSecondaryColorPointerEXT(int size, int stride, DoubleBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColorPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_secondary_color_glSecondaryColorPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().EXT_secondary_color_glSecondaryColorPointerEXT_pPointer = pPointer; + GLChecks.getReferences(caps).EXT_secondary_color_glSecondaryColorPointerEXT_pPointer = pPointer; nglSecondaryColorPointerEXT(size, GL11.GL_DOUBLE, stride, pPointer, pPointer.position() << 3, function_pointer); } public static void glSecondaryColorPointerEXT(int size, int stride, FloatBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColorPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_secondary_color_glSecondaryColorPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().EXT_secondary_color_glSecondaryColorPointerEXT_pPointer = pPointer; + GLChecks.getReferences(caps).EXT_secondary_color_glSecondaryColorPointerEXT_pPointer = pPointer; nglSecondaryColorPointerEXT(size, GL11.GL_FLOAT, stride, pPointer, pPointer.position() << 2, function_pointer); } public static void glSecondaryColorPointerEXT(int size, boolean unsigned, int stride, ByteBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColorPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_secondary_color_glSecondaryColorPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().EXT_secondary_color_glSecondaryColorPointerEXT_pPointer = pPointer; + GLChecks.getReferences(caps).EXT_secondary_color_glSecondaryColorPointerEXT_pPointer = pPointer; nglSecondaryColorPointerEXT(size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pPointer, pPointer.position(), function_pointer); } private static native void nglSecondaryColorPointerEXT(int size, int type, int stride, Buffer pPointer, int pPointer_position, long function_pointer); public static void glSecondaryColorPointerEXT(int size, int type, int stride, long pPointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().EXT_secondary_color_glSecondaryColorPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_secondary_color_glSecondaryColorPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglSecondaryColorPointerEXTBO(size, type, stride, pPointer_buffer_offset, function_pointer); } private static native void nglSecondaryColorPointerEXTBO(int size, int type, int stride, long pPointer_buffer_offset, long function_pointer); diff --git a/src/generated/org/lwjgl/opengl/EXTStencilClearTag.java b/src/generated/org/lwjgl/opengl/EXTStencilClearTag.java index 27ad4763..82f7550d 100644 --- a/src/generated/org/lwjgl/opengl/EXTStencilClearTag.java +++ b/src/generated/org/lwjgl/opengl/EXTStencilClearTag.java @@ -24,7 +24,8 @@ public final class EXTStencilClearTag { * stencil clear tag update. */ public static void glStencilClearTagEXT(int stencilTagBits, int stencilClearTag) { - long function_pointer = GLContext.getCapabilities().EXT_stencil_clear_tag_glStencilClearTagEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_stencil_clear_tag_glStencilClearTagEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilClearTagEXT(stencilTagBits, stencilClearTag, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTStencilTwoSide.java b/src/generated/org/lwjgl/opengl/EXTStencilTwoSide.java index e70ca083..6918b148 100644 --- a/src/generated/org/lwjgl/opengl/EXTStencilTwoSide.java +++ b/src/generated/org/lwjgl/opengl/EXTStencilTwoSide.java @@ -15,7 +15,8 @@ public final class EXTStencilTwoSide { public static void glActiveStencilFaceEXT(int face) { - long function_pointer = GLContext.getCapabilities().EXT_stencil_two_side_glActiveStencilFaceEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_stencil_two_side_glActiveStencilFaceEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglActiveStencilFaceEXT(face, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/EXTTextureArray.java b/src/generated/org/lwjgl/opengl/EXTTextureArray.java index 9fd12976..8d15b141 100644 --- a/src/generated/org/lwjgl/opengl/EXTTextureArray.java +++ b/src/generated/org/lwjgl/opengl/EXTTextureArray.java @@ -1,63 +1,64 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTTextureArray { - /** - * Accepted by the <target> parameter of TexParameteri, TexParameteriv, - * TexParameterf, TexParameterfv, and BindTexture: - */ - public static final int GL_TEXTURE_1D_ARRAY_EXT = 0x8c18; - public static final int GL_TEXTURE_2D_ARRAY_EXT = 0x8c1a; - /** - * Accepted by the <target> parameter of TexImage3D, TexSubImage3D, - * CopyTexSubImage3D, CompressedTexImage3D, and CompressedTexSubImage3D: - */ - public static final int GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8c1b; - /** - * Accepted by the <target> parameter of TexImage2D, TexSubImage2D, - * CopyTexImage2D, CopyTexSubImage2D, CompressedTexImage2D, and - * CompressedTexSubImage2D: - */ - public static final int GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8c19; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv - * and GetFloatv: - */ - public static final int GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8c1c; - public static final int GL_TEXTURE_BINDING_2D_ARRAY_EXT = 0x8c1d; - public static final int GL_MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88ff; - /** - * Accepted by the <param> parameter of TexParameterf, TexParameteri, - * TexParameterfv, and TexParameteriv when the <pname> parameter is - * TEXTURE_COMPARE_MODE_ARB: - */ - public static final int GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884e; - /** - * Accepted by the <pname> parameter of - * GetFramebufferAttachmentParameterivEXT: - */ - public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8cd4; - /** - *Returned by the <type> parameter of GetActiveUniform: - */ - public static final int GL_SAMPLER_1D_ARRAY_EXT = 0x8dc0; - public static final int GL_SAMPLER_2D_ARRAY_EXT = 0x8dc1; - public static final int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8dc3; - public static final int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8dc4; - - private EXTTextureArray() { - } - - - public static void glFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) { - long function_pointer = GLContext.getCapabilities().EXT_texture_array_glFramebufferTextureLayerEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglFramebufferTextureLayerEXT(target, attachment, texture, level, layer, function_pointer); - } - private static native void nglFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTTextureArray { + /** + * Accepted by the <target> parameter of TexParameteri, TexParameteriv, + * TexParameterf, TexParameterfv, and BindTexture: + */ + public static final int GL_TEXTURE_1D_ARRAY_EXT = 0x8c18; + public static final int GL_TEXTURE_2D_ARRAY_EXT = 0x8c1a; + /** + * Accepted by the <target> parameter of TexImage3D, TexSubImage3D, + * CopyTexSubImage3D, CompressedTexImage3D, and CompressedTexSubImage3D: + */ + public static final int GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8c1b; + /** + * Accepted by the <target> parameter of TexImage2D, TexSubImage2D, + * CopyTexImage2D, CopyTexSubImage2D, CompressedTexImage2D, and + * CompressedTexSubImage2D: + */ + public static final int GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8c19; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv + * and GetFloatv: + */ + public static final int GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8c1c; + public static final int GL_TEXTURE_BINDING_2D_ARRAY_EXT = 0x8c1d; + public static final int GL_MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88ff; + /** + * Accepted by the <param> parameter of TexParameterf, TexParameteri, + * TexParameterfv, and TexParameteriv when the <pname> parameter is + * TEXTURE_COMPARE_MODE_ARB: + */ + public static final int GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884e; + /** + * Accepted by the <pname> parameter of + * GetFramebufferAttachmentParameterivEXT: + */ + public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8cd4; + /** + *Returned by the <type> parameter of GetActiveUniform: + */ + public static final int GL_SAMPLER_1D_ARRAY_EXT = 0x8dc0; + public static final int GL_SAMPLER_2D_ARRAY_EXT = 0x8dc1; + public static final int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8dc3; + public static final int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8dc4; + + private EXTTextureArray() { + } + + + public static void glFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_texture_array_glFramebufferTextureLayerEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglFramebufferTextureLayerEXT(target, attachment, texture, level, layer, function_pointer); + } + private static native void nglFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTTextureBufferObject.java b/src/generated/org/lwjgl/opengl/EXTTextureBufferObject.java index 6b743a20..b217a500 100644 --- a/src/generated/org/lwjgl/opengl/EXTTextureBufferObject.java +++ b/src/generated/org/lwjgl/opengl/EXTTextureBufferObject.java @@ -1,37 +1,38 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTTextureBufferObject { - /** - * Accepted by the <target> parameter of BindBuffer, BufferData, - * BufferSubData, MapBuffer, BindTexture, UnmapBuffer, GetBufferSubData, - * GetBufferParameteriv, GetBufferPointerv, and TexBufferEXT, and - * the <pname> parameter of GetBooleanv, GetDoublev, GetFloatv, and - * GetIntegerv: - */ - public static final int GL_TEXTURE_BUFFER_EXT = 0x8c2a; - /** - * Accepted by the <pname> parameters of GetBooleanv, GetDoublev, - * GetFloatv, and GetIntegerv: - */ - public static final int GL_MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8c2b; - public static final int GL_TEXTURE_BINDING_BUFFER_EXT = 0x8c2c; - public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8c2d; - public static final int GL_TEXTURE_BUFFER_FORMAT_EXT = 0x8c2e; - - private EXTTextureBufferObject() { - } - - - public static void glTexBufferEXT(int target, int internalformat, int buffer) { - long function_pointer = GLContext.getCapabilities().EXT_texture_buffer_object_glTexBufferEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglTexBufferEXT(target, internalformat, buffer, function_pointer); - } - private static native void nglTexBufferEXT(int target, int internalformat, int buffer, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTTextureBufferObject { + /** + * Accepted by the <target> parameter of BindBuffer, BufferData, + * BufferSubData, MapBuffer, BindTexture, UnmapBuffer, GetBufferSubData, + * GetBufferParameteriv, GetBufferPointerv, and TexBufferEXT, and + * the <pname> parameter of GetBooleanv, GetDoublev, GetFloatv, and + * GetIntegerv: + */ + public static final int GL_TEXTURE_BUFFER_EXT = 0x8c2a; + /** + * Accepted by the <pname> parameters of GetBooleanv, GetDoublev, + * GetFloatv, and GetIntegerv: + */ + public static final int GL_MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8c2b; + public static final int GL_TEXTURE_BINDING_BUFFER_EXT = 0x8c2c; + public static final int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8c2d; + public static final int GL_TEXTURE_BUFFER_FORMAT_EXT = 0x8c2e; + + private EXTTextureBufferObject() { + } + + + public static void glTexBufferEXT(int target, int internalformat, int buffer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_texture_buffer_object_glTexBufferEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglTexBufferEXT(target, internalformat, buffer, function_pointer); + } + private static native void nglTexBufferEXT(int target, int internalformat, int buffer, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTTextureCompressionLATC.java b/src/generated/org/lwjgl/opengl/EXTTextureCompressionLATC.java index 32cb67c6..8ec9fac5 100644 --- a/src/generated/org/lwjgl/opengl/EXTTextureCompressionLATC.java +++ b/src/generated/org/lwjgl/opengl/EXTTextureCompressionLATC.java @@ -1,23 +1,23 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTTextureCompressionLATC { - /** - * Accepted by the <internalformat> parameter of TexImage2D, - * CopyTexImage2D, and CompressedTexImage2D and the <format> parameter - * of CompressedTexSubImage2D: - */ - public static final int GL_COMPRESSED_LUMINANCE_LATC1_EXT = 0x8c70; - public static final int GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8c71; - public static final int GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8c72; - public static final int GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8c73; - - private EXTTextureCompressionLATC() { - } - -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTTextureCompressionLATC { + /** + * Accepted by the <internalformat> parameter of TexImage2D, + * CopyTexImage2D, and CompressedTexImage2D and the <format> parameter + * of CompressedTexSubImage2D: + */ + public static final int GL_COMPRESSED_LUMINANCE_LATC1_EXT = 0x8c70; + public static final int GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8c71; + public static final int GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8c72; + public static final int GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8c73; + + private EXTTextureCompressionLATC() { + } + +} diff --git a/src/generated/org/lwjgl/opengl/EXTTextureCompressionRGTC.java b/src/generated/org/lwjgl/opengl/EXTTextureCompressionRGTC.java index 1747b05c..fa07e7a0 100644 --- a/src/generated/org/lwjgl/opengl/EXTTextureCompressionRGTC.java +++ b/src/generated/org/lwjgl/opengl/EXTTextureCompressionRGTC.java @@ -1,23 +1,23 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTTextureCompressionRGTC { - /** - * Accepted by the <internalformat> parameter of TexImage2D, - * CopyTexImage2D, and CompressedTexImage2D and the <format> parameter - * of CompressedTexSubImage2D: - */ - public static final int GL_COMPRESSED_RED_RGTC1_EXT = 0x8dbb; - public static final int GL_COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8dbc; - public static final int GL_COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8dbd; - public static final int GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8dbe; - - private EXTTextureCompressionRGTC() { - } - -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTTextureCompressionRGTC { + /** + * Accepted by the <internalformat> parameter of TexImage2D, + * CopyTexImage2D, and CompressedTexImage2D and the <format> parameter + * of CompressedTexSubImage2D: + */ + public static final int GL_COMPRESSED_RED_RGTC1_EXT = 0x8dbb; + public static final int GL_COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8dbc; + public static final int GL_COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8dbd; + public static final int GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8dbe; + + private EXTTextureCompressionRGTC() { + } + +} diff --git a/src/generated/org/lwjgl/opengl/EXTTextureInteger.java b/src/generated/org/lwjgl/opengl/EXTTextureInteger.java index 0c65aa15..6dface8a 100644 --- a/src/generated/org/lwjgl/opengl/EXTTextureInteger.java +++ b/src/generated/org/lwjgl/opengl/EXTTextureInteger.java @@ -1,120 +1,126 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTTextureInteger { - /** - * Accepted by the <pname> parameters of GetBooleanv, GetIntegerv, - * GetFloatv, and GetDoublev: - */ - public static final int GL_RGBA_INTEGER_MODE_EXT = 0x8d9e; - /** - * Accepted by the <internalFormat> parameter of TexImage1D, - * TexImage2D, and TexImage3D: - */ - public static final int GL_RGBA32UI_EXT = 0x8d70; - public static final int GL_RGB32UI_EXT = 0x8d71; - public static final int GL_ALPHA32UI_EXT = 0x8d72; - public static final int GL_INTENSITY32UI_EXT = 0x8d73; - public static final int GL_LUMINANCE32UI_EXT = 0x8d74; - public static final int GL_LUMINANCE_ALPHA32UI_EXT = 0x8d75; - public static final int GL_RGBA16UI_EXT = 0x8d76; - public static final int GL_RGB16UI_EXT = 0x8d77; - public static final int GL_ALPHA16UI_EXT = 0x8d78; - public static final int GL_INTENSITY16UI_EXT = 0x8d79; - public static final int GL_LUMINANCE16UI_EXT = 0x8d7a; - public static final int GL_LUMINANCE_ALPHA16UI_EXT = 0x8d7b; - public static final int GL_RGBA8UI_EXT = 0x8d7c; - public static final int GL_RGB8UI_EXT = 0x8d7d; - public static final int GL_ALPHA8UI_EXT = 0x8d7e; - public static final int GL_INTENSITY8UI_EXT = 0x8d7f; - public static final int GL_LUMINANCE8UI_EXT = 0x8d80; - public static final int GL_LUMINANCE_ALPHA8UI_EXT = 0x8d81; - public static final int GL_RGBA32I_EXT = 0x8d82; - public static final int GL_RGB32I_EXT = 0x8d83; - public static final int GL_ALPHA32I_EXT = 0x8d84; - public static final int GL_INTENSITY32I_EXT = 0x8d85; - public static final int GL_LUMINANCE32I_EXT = 0x8d86; - public static final int GL_LUMINANCE_ALPHA32I_EXT = 0x8d87; - public static final int GL_RGBA16I_EXT = 0x8d88; - public static final int GL_RGB16I_EXT = 0x8d89; - public static final int GL_ALPHA16I_EXT = 0x8d8a; - public static final int GL_INTENSITY16I_EXT = 0x8d8b; - public static final int GL_LUMINANCE16I_EXT = 0x8d8c; - public static final int GL_LUMINANCE_ALPHA16I_EXT = 0x8d8d; - public static final int GL_RGBA8I_EXT = 0x8d8e; - public static final int GL_RGB8I_EXT = 0x8d8f; - public static final int GL_ALPHA8I_EXT = 0x8d90; - public static final int GL_INTENSITY8I_EXT = 0x8d91; - public static final int GL_LUMINANCE8I_EXT = 0x8d92; - public static final int GL_LUMINANCE_ALPHA8I_EXT = 0x8d93; - /** - * Accepted by the <format> parameter of TexImage1D, TexImage2D, - * TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, - * DrawPixels and ReadPixels: - */ - public static final int GL_RED_INTEGER_EXT = 0x8d94; - public static final int GL_GREEN_INTEGER_EXT = 0x8d95; - public static final int GL_BLUE_INTEGER_EXT = 0x8d96; - public static final int GL_ALPHA_INTEGER_EXT = 0x8d97; - public static final int GL_RGB_INTEGER_EXT = 0x8d98; - public static final int GL_RGBA_INTEGER_EXT = 0x8d99; - public static final int GL_BGR_INTEGER_EXT = 0x8d9a; - public static final int GL_BGRA_INTEGER_EXT = 0x8d9b; - public static final int GL_LUMINANCE_INTEGER_EXT = 0x8d9c; - public static final int GL_LUMINANCE_ALPHA_INTEGER_EXT = 0x8d9d; - - private EXTTextureInteger() { - } - - - public static void glClearColorIiEXT(int r, int g, int b, int a) { - long function_pointer = GLContext.getCapabilities().EXT_texture_integer_glClearColorIiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglClearColorIiEXT(r, g, b, a, function_pointer); - } - private static native void nglClearColorIiEXT(int r, int g, int b, int a, long function_pointer); - - public static void glClearColorIuiEXT(int r, int g, int b, int a) { - long function_pointer = GLContext.getCapabilities().EXT_texture_integer_glClearColorIuiEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglClearColorIuiEXT(r, g, b, a, function_pointer); - } - private static native void nglClearColorIuiEXT(int r, int g, int b, int a, long function_pointer); - - public static void glTexParameterIEXT(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_texture_integer_glTexParameterIivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglTexParameterIivEXT(target, pname, params, params.position(), function_pointer); - } - private static native void nglTexParameterIivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); - - public static void glTexParameterIuEXT(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_texture_integer_glTexParameterIuivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglTexParameterIuivEXT(target, pname, params, params.position(), function_pointer); - } - private static native void nglTexParameterIuivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); - - public static void glGetTexParameterIEXT(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_texture_integer_glGetTexParameterIivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglGetTexParameterIivEXT(target, pname, params, params.position(), function_pointer); - } - private static native void nglGetTexParameterIivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); - - public static void glGetTexParameterIuEXT(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_texture_integer_glGetTexParameterIuivEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglGetTexParameterIuivEXT(target, pname, params, params.position(), function_pointer); - } - private static native void nglGetTexParameterIuivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTTextureInteger { + /** + * Accepted by the <pname> parameters of GetBooleanv, GetIntegerv, + * GetFloatv, and GetDoublev: + */ + public static final int GL_RGBA_INTEGER_MODE_EXT = 0x8d9e; + /** + * Accepted by the <internalFormat> parameter of TexImage1D, + * TexImage2D, and TexImage3D: + */ + public static final int GL_RGBA32UI_EXT = 0x8d70; + public static final int GL_RGB32UI_EXT = 0x8d71; + public static final int GL_ALPHA32UI_EXT = 0x8d72; + public static final int GL_INTENSITY32UI_EXT = 0x8d73; + public static final int GL_LUMINANCE32UI_EXT = 0x8d74; + public static final int GL_LUMINANCE_ALPHA32UI_EXT = 0x8d75; + public static final int GL_RGBA16UI_EXT = 0x8d76; + public static final int GL_RGB16UI_EXT = 0x8d77; + public static final int GL_ALPHA16UI_EXT = 0x8d78; + public static final int GL_INTENSITY16UI_EXT = 0x8d79; + public static final int GL_LUMINANCE16UI_EXT = 0x8d7a; + public static final int GL_LUMINANCE_ALPHA16UI_EXT = 0x8d7b; + public static final int GL_RGBA8UI_EXT = 0x8d7c; + public static final int GL_RGB8UI_EXT = 0x8d7d; + public static final int GL_ALPHA8UI_EXT = 0x8d7e; + public static final int GL_INTENSITY8UI_EXT = 0x8d7f; + public static final int GL_LUMINANCE8UI_EXT = 0x8d80; + public static final int GL_LUMINANCE_ALPHA8UI_EXT = 0x8d81; + public static final int GL_RGBA32I_EXT = 0x8d82; + public static final int GL_RGB32I_EXT = 0x8d83; + public static final int GL_ALPHA32I_EXT = 0x8d84; + public static final int GL_INTENSITY32I_EXT = 0x8d85; + public static final int GL_LUMINANCE32I_EXT = 0x8d86; + public static final int GL_LUMINANCE_ALPHA32I_EXT = 0x8d87; + public static final int GL_RGBA16I_EXT = 0x8d88; + public static final int GL_RGB16I_EXT = 0x8d89; + public static final int GL_ALPHA16I_EXT = 0x8d8a; + public static final int GL_INTENSITY16I_EXT = 0x8d8b; + public static final int GL_LUMINANCE16I_EXT = 0x8d8c; + public static final int GL_LUMINANCE_ALPHA16I_EXT = 0x8d8d; + public static final int GL_RGBA8I_EXT = 0x8d8e; + public static final int GL_RGB8I_EXT = 0x8d8f; + public static final int GL_ALPHA8I_EXT = 0x8d90; + public static final int GL_INTENSITY8I_EXT = 0x8d91; + public static final int GL_LUMINANCE8I_EXT = 0x8d92; + public static final int GL_LUMINANCE_ALPHA8I_EXT = 0x8d93; + /** + * Accepted by the <format> parameter of TexImage1D, TexImage2D, + * TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, + * DrawPixels and ReadPixels: + */ + public static final int GL_RED_INTEGER_EXT = 0x8d94; + public static final int GL_GREEN_INTEGER_EXT = 0x8d95; + public static final int GL_BLUE_INTEGER_EXT = 0x8d96; + public static final int GL_ALPHA_INTEGER_EXT = 0x8d97; + public static final int GL_RGB_INTEGER_EXT = 0x8d98; + public static final int GL_RGBA_INTEGER_EXT = 0x8d99; + public static final int GL_BGR_INTEGER_EXT = 0x8d9a; + public static final int GL_BGRA_INTEGER_EXT = 0x8d9b; + public static final int GL_LUMINANCE_INTEGER_EXT = 0x8d9c; + public static final int GL_LUMINANCE_ALPHA_INTEGER_EXT = 0x8d9d; + + private EXTTextureInteger() { + } + + + public static void glClearColorIiEXT(int r, int g, int b, int a) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_texture_integer_glClearColorIiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglClearColorIiEXT(r, g, b, a, function_pointer); + } + private static native void nglClearColorIiEXT(int r, int g, int b, int a, long function_pointer); + + public static void glClearColorIuiEXT(int r, int g, int b, int a) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_texture_integer_glClearColorIuiEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglClearColorIuiEXT(r, g, b, a, function_pointer); + } + private static native void nglClearColorIuiEXT(int r, int g, int b, int a, long function_pointer); + + public static void glTexParameterIEXT(int target, int pname, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_texture_integer_glTexParameterIivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglTexParameterIivEXT(target, pname, params, params.position(), function_pointer); + } + private static native void nglTexParameterIivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); + + public static void glTexParameterIuEXT(int target, int pname, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_texture_integer_glTexParameterIuivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglTexParameterIuivEXT(target, pname, params, params.position(), function_pointer); + } + private static native void nglTexParameterIuivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); + + public static void glGetTexParameterIEXT(int target, int pname, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_texture_integer_glGetTexParameterIivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglGetTexParameterIivEXT(target, pname, params, params.position(), function_pointer); + } + private static native void nglGetTexParameterIivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); + + public static void glGetTexParameterIuEXT(int target, int pname, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_texture_integer_glGetTexParameterIuivEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglGetTexParameterIuivEXT(target, pname, params, params.position(), function_pointer); + } + private static native void nglGetTexParameterIuivEXT(int target, int pname, IntBuffer params, int params_position, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTTextureSharedExponent.java b/src/generated/org/lwjgl/opengl/EXTTextureSharedExponent.java index 66fc99c0..4004c0c9 100644 --- a/src/generated/org/lwjgl/opengl/EXTTextureSharedExponent.java +++ b/src/generated/org/lwjgl/opengl/EXTTextureSharedExponent.java @@ -1,34 +1,34 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTTextureSharedExponent { - /** - * Accepted by the <internalformat> parameter of TexImage1D, - * TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and - * RenderbufferStorageEXT: - */ - public static final int GL_RGB9_E5_EXT = 0x8c3d; - /** - * Accepted by the <type> parameter of DrawPixels, ReadPixels, - * TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, - * TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, - * ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, - * GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter, - * ColorTable, ColorSubTable, and GetColorTable: - */ - public static final int GL_UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8c3e; - /** - * Accepted by the <pname> parameter of GetTexLevelParameterfv and - * GetTexLevelParameteriv: - */ - public static final int GL_TEXTURE_SHARED_SIZE_EXT = 0x8c3f; - - private EXTTextureSharedExponent() { - } - -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTTextureSharedExponent { + /** + * Accepted by the <internalformat> parameter of TexImage1D, + * TexImage2D, TexImage3D, CopyTexImage1D, CopyTexImage2D, and + * RenderbufferStorageEXT: + */ + public static final int GL_RGB9_E5_EXT = 0x8c3d; + /** + * Accepted by the <type> parameter of DrawPixels, ReadPixels, + * TexImage1D, TexImage2D, GetTexImage, TexImage3D, TexSubImage1D, + * TexSubImage2D, TexSubImage3D, GetHistogram, GetMinmax, + * ConvolutionFilter1D, ConvolutionFilter2D, ConvolutionFilter3D, + * GetConvolutionFilter, SeparableFilter2D, GetSeparableFilter, + * ColorTable, ColorSubTable, and GetColorTable: + */ + public static final int GL_UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8c3e; + /** + * Accepted by the <pname> parameter of GetTexLevelParameterfv and + * GetTexLevelParameteriv: + */ + public static final int GL_TEXTURE_SHARED_SIZE_EXT = 0x8c3f; + + private EXTTextureSharedExponent() { + } + +} diff --git a/src/generated/org/lwjgl/opengl/EXTTimerQuery.java b/src/generated/org/lwjgl/opengl/EXTTimerQuery.java index a36a8742..ee7b9161 100644 --- a/src/generated/org/lwjgl/opengl/EXTTimerQuery.java +++ b/src/generated/org/lwjgl/opengl/EXTTimerQuery.java @@ -1,35 +1,37 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class EXTTimerQuery { - /** - * Accepted by the <target> parameter of BeginQuery, EndQuery, and - * GetQueryiv: - */ - public static final int GL_TIME_ELAPSED_EXT = 0x88bf; - - private EXTTimerQuery() { - } - - - public static void glGetQueryObjectEXT(int id, int pname, LongBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjecti64vEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 1); - nglGetQueryObjecti64vEXT(id, pname, params, params.position(), function_pointer); - } - private static native void nglGetQueryObjecti64vEXT(int id, int pname, LongBuffer params, int params_position, long function_pointer); - - public static void glGetQueryObjectuEXT(int id, int pname, LongBuffer params) { - long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjectui64vEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 1); - nglGetQueryObjectui64vEXT(id, pname, params, params.position(), function_pointer); - } - private static native void nglGetQueryObjectui64vEXT(int id, int pname, LongBuffer params, int params_position, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class EXTTimerQuery { + /** + * Accepted by the <target> parameter of BeginQuery, EndQuery, and + * GetQueryiv: + */ + public static final int GL_TIME_ELAPSED_EXT = 0x88bf; + + private EXTTimerQuery() { + } + + + public static void glGetQueryObjectEXT(int id, int pname, LongBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_timer_query_glGetQueryObjecti64vEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 1); + nglGetQueryObjecti64vEXT(id, pname, params, params.position(), function_pointer); + } + private static native void nglGetQueryObjecti64vEXT(int id, int pname, LongBuffer params, int params_position, long function_pointer); + + public static void glGetQueryObjectuEXT(int id, int pname, LongBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_timer_query_glGetQueryObjectui64vEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 1); + nglGetQueryObjectui64vEXT(id, pname, params, params.position(), function_pointer); + } + private static native void nglGetQueryObjectui64vEXT(int id, int pname, LongBuffer params, int params_position, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/EXTVertexShader.java b/src/generated/org/lwjgl/opengl/EXTVertexShader.java index ee0f2dfe..704fcde6 100644 --- a/src/generated/org/lwjgl/opengl/EXTVertexShader.java +++ b/src/generated/org/lwjgl/opengl/EXTVertexShader.java @@ -123,28 +123,32 @@ public final class EXTVertexShader { public static void glBeginVertexShaderEXT() { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBeginVertexShaderEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glBeginVertexShaderEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBeginVertexShaderEXT(function_pointer); } private static native void nglBeginVertexShaderEXT(long function_pointer); public static void glEndVertexShaderEXT() { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glEndVertexShaderEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glEndVertexShaderEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEndVertexShaderEXT(function_pointer); } private static native void nglEndVertexShaderEXT(long function_pointer); public static void glBindVertexShaderEXT(int id) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindVertexShaderEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glBindVertexShaderEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindVertexShaderEXT(id, function_pointer); } private static native void nglBindVertexShaderEXT(int id, long function_pointer); public static int glGenVertexShadersEXT(int range) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGenVertexShadersEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGenVertexShadersEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglGenVertexShadersEXT(range, function_pointer); return __result; @@ -152,63 +156,72 @@ public final class EXTVertexShader { private static native int nglGenVertexShadersEXT(int range, long function_pointer); public static void glDeleteVertexShaderEXT(int id) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glDeleteVertexShaderEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glDeleteVertexShaderEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDeleteVertexShaderEXT(id, function_pointer); } private static native void nglDeleteVertexShaderEXT(int id, long function_pointer); public static void glShaderOp1EXT(int op, int res, int arg1) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp1EXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glShaderOp1EXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglShaderOp1EXT(op, res, arg1, function_pointer); } private static native void nglShaderOp1EXT(int op, int res, int arg1, long function_pointer); public static void glShaderOp2EXT(int op, int res, int arg1, int arg2) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp2EXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glShaderOp2EXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglShaderOp2EXT(op, res, arg1, arg2, function_pointer); } private static native void nglShaderOp2EXT(int op, int res, int arg1, int arg2, long function_pointer); public static void glShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glShaderOp3EXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glShaderOp3EXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglShaderOp3EXT(op, res, arg1, arg2, arg3, function_pointer); } private static native void nglShaderOp3EXT(int op, int res, int arg1, int arg2, int arg3, long function_pointer); public static void glSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSwizzleEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSwizzleEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSwizzleEXT(res, in, outX, outY, outZ, outW, function_pointer); } private static native void nglSwizzleEXT(int res, int in, int outX, int outY, int outZ, int outW, long function_pointer); public static void glWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glWriteMaskEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glWriteMaskEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWriteMaskEXT(res, in, outX, outY, outZ, outW, function_pointer); } private static native void nglWriteMaskEXT(int res, int in, int outX, int outY, int outZ, int outW, long function_pointer); public static void glInsertComponentEXT(int res, int src, int num) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glInsertComponentEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glInsertComponentEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglInsertComponentEXT(res, src, num, function_pointer); } private static native void nglInsertComponentEXT(int res, int src, int num, long function_pointer); public static void glExtractComponentEXT(int res, int src, int num) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glExtractComponentEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glExtractComponentEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglExtractComponentEXT(res, src, num, function_pointer); } private static native void nglExtractComponentEXT(int res, int src, int num, long function_pointer); public static int glGenSymbolsEXT(int dataType, int storageType, int range, int components) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGenSymbolsEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGenSymbolsEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglGenSymbolsEXT(dataType, storageType, range, components, function_pointer); return __result; @@ -216,31 +229,36 @@ public final class EXTVertexShader { private static native int nglGenSymbolsEXT(int dataType, int storageType, int range, int components, long function_pointer); public static void glSetInvariantEXT(int id, DoubleBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetInvariantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetInvariantEXT(id, GL11.GL_DOUBLE, pAddr, pAddr.position() << 3, function_pointer); } public static void glSetInvariantEXT(int id, FloatBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetInvariantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetInvariantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2, function_pointer); } public static void glSetInvariantEXT(int id, boolean unsigned, ByteBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetInvariantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position(), function_pointer); } public static void glSetInvariantEXT(int id, boolean unsigned, IntBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetInvariantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2, function_pointer); } public static void glSetInvariantEXT(int id, boolean unsigned, ShortBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetInvariantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetInvariantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetInvariantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer); @@ -248,31 +266,36 @@ public final class EXTVertexShader { private static native void nglSetInvariantEXT(int id, int type, Buffer pAddr, int pAddr_position, long function_pointer); public static void glSetLocalConstantEXT(int id, DoubleBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetLocalConstantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetLocalConstantEXT(id, GL11.GL_DOUBLE, pAddr, pAddr.position() << 3, function_pointer); } public static void glSetLocalConstantEXT(int id, FloatBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetLocalConstantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetLocalConstantEXT(id, GL11.GL_FLOAT, pAddr, pAddr.position() << 2, function_pointer); } public static void glSetLocalConstantEXT(int id, boolean unsigned, ByteBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetLocalConstantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, pAddr, pAddr.position(), function_pointer); } public static void glSetLocalConstantEXT(int id, boolean unsigned, IntBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetLocalConstantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, pAddr, pAddr.position() << 2, function_pointer); } public static void glSetLocalConstantEXT(int id, boolean unsigned, ShortBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glSetLocalConstantEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glSetLocalConstantEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglSetLocalConstantEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, pAddr, pAddr.position() << 1, function_pointer); @@ -280,7 +303,8 @@ public final class EXTVertexShader { private static native void nglSetLocalConstantEXT(int id, int type, Buffer pAddr, int pAddr_position, long function_pointer); public static void glVariantEXT(int id, ByteBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantbvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantbvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglVariantbvEXT(id, pAddr, pAddr.position(), function_pointer); @@ -288,7 +312,8 @@ public final class EXTVertexShader { private static native void nglVariantbvEXT(int id, ByteBuffer pAddr, int pAddr_position, long function_pointer); public static void glVariantEXT(int id, ShortBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantsvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantsvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglVariantsvEXT(id, pAddr, pAddr.position(), function_pointer); @@ -296,7 +321,8 @@ public final class EXTVertexShader { private static native void nglVariantsvEXT(int id, ShortBuffer pAddr, int pAddr_position, long function_pointer); public static void glVariantEXT(int id, IntBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantivEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantivEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglVariantivEXT(id, pAddr, pAddr.position(), function_pointer); @@ -304,7 +330,8 @@ public final class EXTVertexShader { private static native void nglVariantivEXT(int id, IntBuffer pAddr, int pAddr_position, long function_pointer); public static void glVariantEXT(int id, FloatBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantfvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantfvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglVariantfvEXT(id, pAddr, pAddr.position(), function_pointer); @@ -312,7 +339,8 @@ public final class EXTVertexShader { private static native void nglVariantfvEXT(int id, FloatBuffer pAddr, int pAddr_position, long function_pointer); public static void glVariantEXT(int id, DoubleBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantdvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantdvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglVariantdvEXT(id, pAddr, pAddr.position(), function_pointer); @@ -320,7 +348,8 @@ public final class EXTVertexShader { private static native void nglVariantdvEXT(int id, DoubleBuffer pAddr, int pAddr_position, long function_pointer); public static void glVariantuEXT(int id, ByteBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantubvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantubvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglVariantubvEXT(id, pAddr, pAddr.position(), function_pointer); @@ -328,7 +357,8 @@ public final class EXTVertexShader { private static native void nglVariantubvEXT(int id, ByteBuffer pAddr, int pAddr_position, long function_pointer); public static void glVariantuEXT(int id, ShortBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantusvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantusvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglVariantusvEXT(id, pAddr, pAddr.position(), function_pointer); @@ -336,7 +366,8 @@ public final class EXTVertexShader { private static native void nglVariantusvEXT(int id, ShortBuffer pAddr, int pAddr_position, long function_pointer); public static void glVariantuEXT(int id, IntBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantuivEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantuivEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pAddr, 4); nglVariantuivEXT(id, pAddr, pAddr.position(), function_pointer); @@ -344,70 +375,79 @@ public final class EXTVertexShader { private static native void nglVariantuivEXT(int id, IntBuffer pAddr, int pAddr_position, long function_pointer); public static void glVariantPointerEXT(int id, int stride, DoubleBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pAddr); - GLChecks.getReferences().EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; + GLChecks.getReferences(caps).EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; nglVariantPointerEXT(id, GL11.GL_DOUBLE, stride, pAddr, pAddr.position() << 3, function_pointer); } public static void glVariantPointerEXT(int id, int stride, FloatBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pAddr); - GLChecks.getReferences().EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; + GLChecks.getReferences(caps).EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; nglVariantPointerEXT(id, GL11.GL_FLOAT, stride, pAddr, pAddr.position() << 2, function_pointer); } public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ByteBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pAddr); - GLChecks.getReferences().EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; + GLChecks.getReferences(caps).EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pAddr, pAddr.position(), function_pointer); } public static void glVariantPointerEXT(int id, boolean unsigned, int stride, IntBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pAddr); - GLChecks.getReferences().EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; + GLChecks.getReferences(caps).EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, stride, pAddr, pAddr.position() << 2, function_pointer); } public static void glVariantPointerEXT(int id, boolean unsigned, int stride, ShortBuffer pAddr) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pAddr); - GLChecks.getReferences().EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; + GLChecks.getReferences(caps).EXT_vertex_shader_glVariantPointerEXT_pAddr = pAddr; nglVariantPointerEXT(id, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, stride, pAddr, pAddr.position() << 1, function_pointer); } private static native void nglVariantPointerEXT(int id, int type, int stride, Buffer pAddr, int pAddr_position, long function_pointer); public static void glVariantPointerEXT(int id, int type, int stride, long pAddr_buffer_offset) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glVariantPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glVariantPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglVariantPointerEXTBO(id, type, stride, pAddr_buffer_offset, function_pointer); } private static native void nglVariantPointerEXTBO(int id, int type, int stride, long pAddr_buffer_offset, long function_pointer); public static void glEnableVariantClientStateEXT(int id) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glEnableVariantClientStateEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glEnableVariantClientStateEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEnableVariantClientStateEXT(id, function_pointer); } private static native void nglEnableVariantClientStateEXT(int id, long function_pointer); public static void glDisableVariantClientStateEXT(int id) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glDisableVariantClientStateEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glDisableVariantClientStateEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDisableVariantClientStateEXT(id, function_pointer); } private static native void nglDisableVariantClientStateEXT(int id, long function_pointer); public static int glBindLightParameterEXT(int light, int value) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindLightParameterEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glBindLightParameterEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglBindLightParameterEXT(light, value, function_pointer); return __result; @@ -415,7 +455,8 @@ public final class EXTVertexShader { private static native int nglBindLightParameterEXT(int light, int value, long function_pointer); public static int glBindMaterialParameterEXT(int face, int value) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindMaterialParameterEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glBindMaterialParameterEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglBindMaterialParameterEXT(face, value, function_pointer); return __result; @@ -423,7 +464,8 @@ public final class EXTVertexShader { private static native int nglBindMaterialParameterEXT(int face, int value, long function_pointer); public static int glBindTexGenParameterEXT(int unit, int coord, int value) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindTexGenParameterEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glBindTexGenParameterEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglBindTexGenParameterEXT(unit, coord, value, function_pointer); return __result; @@ -431,7 +473,8 @@ public final class EXTVertexShader { private static native int nglBindTexGenParameterEXT(int unit, int coord, int value, long function_pointer); public static int glBindTextureUnitParameterEXT(int unit, int value) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindTextureUnitParameterEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glBindTextureUnitParameterEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglBindTextureUnitParameterEXT(unit, value, function_pointer); return __result; @@ -439,7 +482,8 @@ public final class EXTVertexShader { private static native int nglBindTextureUnitParameterEXT(int unit, int value, long function_pointer); public static int glBindParameterEXT(int value) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glBindParameterEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glBindParameterEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglBindParameterEXT(value, function_pointer); return __result; @@ -447,7 +491,8 @@ public final class EXTVertexShader { private static native int nglBindParameterEXT(int value, long function_pointer); public static boolean glIsVariantEnabledEXT(int id, int cap) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glIsVariantEnabledEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glIsVariantEnabledEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsVariantEnabledEXT(id, cap, function_pointer); return __result; @@ -455,7 +500,8 @@ public final class EXTVertexShader { private static native boolean nglIsVariantEnabledEXT(int id, int cap, long function_pointer); public static void glGetVariantBooleanEXT(int id, int value, ByteBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantBooleanvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetVariantBooleanvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetVariantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer); @@ -463,7 +509,8 @@ public final class EXTVertexShader { private static native void nglGetVariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer); public static void glGetVariantIntegerEXT(int id, int value, IntBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantIntegervEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetVariantIntegervEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetVariantIntegervEXT(id, value, pbData, pbData.position(), function_pointer); @@ -471,7 +518,8 @@ public final class EXTVertexShader { private static native void nglGetVariantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer); public static void glGetVariantFloatEXT(int id, int value, FloatBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantFloatvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetVariantFloatvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetVariantFloatvEXT(id, value, pbData, pbData.position(), function_pointer); @@ -479,7 +527,8 @@ public final class EXTVertexShader { private static native void nglGetVariantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position, long function_pointer); public static java.nio.ByteBuffer glGetVariantPointerEXT(int id, int value, int result_size) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetVariantPointervEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetVariantPointervEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglGetVariantPointervEXT(id, value, result_size, function_pointer); return __result; @@ -487,7 +536,8 @@ public final class EXTVertexShader { private static native java.nio.ByteBuffer nglGetVariantPointervEXT(int id, int value, int result_size, long function_pointer); public static void glGetInvariantBooleanEXT(int id, int value, ByteBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantBooleanvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetInvariantBooleanvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetInvariantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer); @@ -495,7 +545,8 @@ public final class EXTVertexShader { private static native void nglGetInvariantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer); public static void glGetInvariantIntegerEXT(int id, int value, IntBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantIntegervEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetInvariantIntegervEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetInvariantIntegervEXT(id, value, pbData, pbData.position(), function_pointer); @@ -503,7 +554,8 @@ public final class EXTVertexShader { private static native void nglGetInvariantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer); public static void glGetInvariantFloatEXT(int id, int value, FloatBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetInvariantFloatvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetInvariantFloatvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetInvariantFloatvEXT(id, value, pbData, pbData.position(), function_pointer); @@ -511,7 +563,8 @@ public final class EXTVertexShader { private static native void nglGetInvariantFloatvEXT(int id, int value, FloatBuffer pbData, int pbData_position, long function_pointer); public static void glGetLocalConstantBooleanEXT(int id, int value, ByteBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantBooleanvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetLocalConstantBooleanvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetLocalConstantBooleanvEXT(id, value, pbData, pbData.position(), function_pointer); @@ -519,7 +572,8 @@ public final class EXTVertexShader { private static native void nglGetLocalConstantBooleanvEXT(int id, int value, ByteBuffer pbData, int pbData_position, long function_pointer); public static void glGetLocalConstantIntegerEXT(int id, int value, IntBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantIntegervEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetLocalConstantIntegervEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetLocalConstantIntegervEXT(id, value, pbData, pbData.position(), function_pointer); @@ -527,7 +581,8 @@ public final class EXTVertexShader { private static native void nglGetLocalConstantIntegervEXT(int id, int value, IntBuffer pbData, int pbData_position, long function_pointer); public static void glGetLocalConstantFloatEXT(int id, int value, FloatBuffer pbData) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_shader_glGetLocalConstantFloatvEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_shader_glGetLocalConstantFloatvEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(pbData, 4); nglGetLocalConstantFloatvEXT(id, value, pbData, pbData.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/EXTVertexWeighting.java b/src/generated/org/lwjgl/opengl/EXTVertexWeighting.java index 7a97ee18..86e25da0 100644 --- a/src/generated/org/lwjgl/opengl/EXTVertexWeighting.java +++ b/src/generated/org/lwjgl/opengl/EXTVertexWeighting.java @@ -26,25 +26,28 @@ public final class EXTVertexWeighting { public static void glVertexWeightfEXT(float weight) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_weighting_glVertexWeightfEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_weighting_glVertexWeightfEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexWeightfEXT(weight, function_pointer); } private static native void nglVertexWeightfEXT(float weight, long function_pointer); public static void glVertexWeightPointerEXT(int size, int stride, FloatBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_weighting_glVertexWeightPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_weighting_glVertexWeightPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pPointer); - GLChecks.getReferences().EXT_vertex_weighting_glVertexWeightPointerEXT_pPointer = pPointer; + GLChecks.getReferences(caps).EXT_vertex_weighting_glVertexWeightPointerEXT_pPointer = pPointer; nglVertexWeightPointerEXT(size, GL11.GL_FLOAT, stride, pPointer, pPointer.position() << 2, function_pointer); } private static native void nglVertexWeightPointerEXT(int size, int type, int stride, Buffer pPointer, int pPointer_position, long function_pointer); public static void glVertexWeightPointerEXT(int size, int type, int stride, long pPointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().EXT_vertex_weighting_glVertexWeightPointerEXT_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.EXT_vertex_weighting_glVertexWeightPointerEXT_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglVertexWeightPointerEXTBO(size, type, stride, pPointer_buffer_offset, function_pointer); } private static native void nglVertexWeightPointerEXTBO(int size, int type, int stride, long pPointer_buffer_offset, long function_pointer); diff --git a/src/generated/org/lwjgl/opengl/GL11.java b/src/generated/org/lwjgl/opengl/GL11.java index 080e0ead..6f5fc0b2 100644 --- a/src/generated/org/lwjgl/opengl/GL11.java +++ b/src/generated/org/lwjgl/opengl/GL11.java @@ -545,54 +545,62 @@ public final class GL11 { public static void glAccum(int op, float value) { - long function_pointer = GLContext.getCapabilities().GL11_glAccum_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glAccum_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglAccum(op, value, function_pointer); } private static native void nglAccum(int op, float value, long function_pointer); public static void glAlphaFunc(int func, float ref) { - long function_pointer = GLContext.getCapabilities().GL11_glAlphaFunc_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glAlphaFunc_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglAlphaFunc(func, ref, function_pointer); } private static native void nglAlphaFunc(int func, float ref, long function_pointer); public static void glClearColor(float red, float green, float blue, float alpha) { - long function_pointer = GLContext.getCapabilities().GL11_glClearColor_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glClearColor_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClearColor(red, green, blue, alpha, function_pointer); } private static native void nglClearColor(float red, float green, float blue, float alpha, long function_pointer); public static void glClearAccum(float red, float green, float blue, float alpha) { - long function_pointer = GLContext.getCapabilities().GL11_glClearAccum_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glClearAccum_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClearAccum(red, green, blue, alpha, function_pointer); } private static native void nglClearAccum(float red, float green, float blue, float alpha, long function_pointer); public static void glClear(int mask) { - long function_pointer = GLContext.getCapabilities().GL11_glClear_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glClear_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClear(mask, function_pointer); } private static native void nglClear(int mask, long function_pointer); public static void glCallLists(ByteBuffer lists) { - long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCallLists_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(lists); nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_BYTE, lists, lists.position(), function_pointer); } public static void glCallLists(IntBuffer lists) { - long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCallLists_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(lists); nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_INT, lists, lists.position() << 2, function_pointer); } public static void glCallLists(ShortBuffer lists) { - long function_pointer = GLContext.getCapabilities().GL11_glCallLists_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCallLists_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(lists); nglCallLists((lists.remaining()), GL11.GL_UNSIGNED_SHORT, lists, lists.position() << 1, function_pointer); @@ -600,44 +608,50 @@ public final class GL11 { private static native void nglCallLists(int n, int type, Buffer lists, int lists_position, long function_pointer); public static void glCallList(int list) { - long function_pointer = GLContext.getCapabilities().GL11_glCallList_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCallList_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCallList(list, function_pointer); } private static native void nglCallList(int list, long function_pointer); public static void glBlendFunc(int sfactor, int dfactor) { - long function_pointer = GLContext.getCapabilities().GL11_glBlendFunc_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glBlendFunc_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendFunc(sfactor, dfactor, function_pointer); } private static native void nglBlendFunc(int sfactor, int dfactor, long function_pointer); public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap) { - long function_pointer = GLContext.getCapabilities().GL11_glBitmap_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glBitmap_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(bitmap, (((width + 7)/8)*height)); nglBitmap(width, height, xorig, yorig, xmove, ymove, bitmap, bitmap.position(), function_pointer); } private static native void nglBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap, int bitmap_position, long function_pointer); public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, long bitmap_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glBitmap_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glBitmap_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglBitmapBO(width, height, xorig, yorig, xmove, ymove, bitmap_buffer_offset, function_pointer); } private static native void nglBitmapBO(int width, int height, float xorig, float yorig, float xmove, float ymove, long bitmap_buffer_offset, long function_pointer); public static void glBindTexture(int target, int texture) { - long function_pointer = GLContext.getCapabilities().GL11_glBindTexture_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glBindTexture_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindTexture(target, texture, function_pointer); } private static native void nglBindTexture(int target, int texture, long function_pointer); public static void glPrioritizeTextures(IntBuffer textures, FloatBuffer priorities) { - long function_pointer = GLContext.getCapabilities().GL11_glPrioritizeTextures_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPrioritizeTextures_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(textures); BufferChecks.checkBuffer(priorities, textures.remaining()); @@ -646,7 +660,8 @@ public final class GL11 { private static native void nglPrioritizeTextures(int n, IntBuffer textures, int textures_position, FloatBuffer priorities, int priorities_position, long function_pointer); public static boolean glAreTexturesResident(IntBuffer textures, ByteBuffer residences) { - long function_pointer = GLContext.getCapabilities().GL11_glAreTexturesResident_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glAreTexturesResident_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(textures); BufferChecks.checkBuffer(residences, textures.remaining()); @@ -656,42 +671,48 @@ public final class GL11 { private static native boolean nglAreTexturesResident(int n, IntBuffer textures, int textures_position, ByteBuffer residences, int residences_position, long function_pointer); public static void glBegin(int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glBegin_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glBegin_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBegin(mode, function_pointer); } private static native void nglBegin(int mode, long function_pointer); public static void glEnd() { - long function_pointer = GLContext.getCapabilities().GL11_glEnd_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEnd_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEnd(function_pointer); } private static native void nglEnd(long function_pointer); public static void glArrayElement(int i) { - long function_pointer = GLContext.getCapabilities().GL11_glArrayElement_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glArrayElement_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglArrayElement(i, function_pointer); } private static native void nglArrayElement(int i, long function_pointer); public static void glClearDepth(double depth) { - long function_pointer = GLContext.getCapabilities().GL11_glClearDepth_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glClearDepth_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClearDepth(depth, function_pointer); } private static native void nglClearDepth(double depth, long function_pointer); public static void glDeleteLists(int list, int range) { - long function_pointer = GLContext.getCapabilities().GL11_glDeleteLists_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDeleteLists_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDeleteLists(list, range, function_pointer); } private static native void nglDeleteLists(int list, int range, long function_pointer); public static void glDeleteTextures(IntBuffer textures) { - long function_pointer = GLContext.getCapabilities().GL11_glDeleteTextures_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDeleteTextures_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(textures); nglDeleteTextures((textures.remaining()), textures, textures.position(), function_pointer); @@ -699,152 +720,173 @@ public final class GL11 { private static native void nglDeleteTextures(int n, IntBuffer textures, int textures_position, long function_pointer); public static void glCullFace(int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glCullFace_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCullFace_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCullFace(mode, function_pointer); } private static native void nglCullFace(int mode, long function_pointer); public static void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { - long function_pointer = GLContext.getCapabilities().GL11_glCopyTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCopyTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height, function_pointer); } private static native void nglCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height, long function_pointer); public static void glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width) { - long function_pointer = GLContext.getCapabilities().GL11_glCopyTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCopyTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyTexSubImage1D(target, level, xoffset, x, y, width, function_pointer); } private static native void nglCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width, long function_pointer); public static void glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border) { - long function_pointer = GLContext.getCapabilities().GL11_glCopyTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCopyTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyTexImage2D(target, level, internalFormat, x, y, width, height, border, function_pointer); } private static native void nglCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border, long function_pointer); public static void glCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border) { - long function_pointer = GLContext.getCapabilities().GL11_glCopyTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCopyTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyTexImage1D(target, level, internalFormat, x, y, width, border, function_pointer); } private static native void nglCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border, long function_pointer); public static void glCopyPixels(int x, int y, int width, int height, int type) { - long function_pointer = GLContext.getCapabilities().GL11_glCopyPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glCopyPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyPixels(x, y, width, height, type, function_pointer); } private static native void nglCopyPixels(int x, int y, int width, int height, int type, long function_pointer); public static void glColorPointer(int size, int stride, DoubleBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glColorPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColorPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glColorPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glColorPointer_pointer = pointer; nglColorPointer(size, GL11.GL_DOUBLE, stride, pointer, pointer.position() << 3, function_pointer); } public static void glColorPointer(int size, int stride, FloatBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glColorPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColorPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glColorPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glColorPointer_pointer = pointer; nglColorPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer); } public static void glColorPointer(int size, boolean unsigned, int stride, ByteBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glColorPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColorPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glColorPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glColorPointer_pointer = pointer; nglColorPointer(size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, pointer, pointer.position(), function_pointer); } private static native void nglColorPointer(int size, int type, int stride, Buffer pointer, int pointer_position, long function_pointer); public static void glColorPointer(int size, int type, int stride, long pointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glColorPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColorPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglColorPointerBO(size, type, stride, pointer_buffer_offset, function_pointer); } private static native void nglColorPointerBO(int size, int type, int stride, long pointer_buffer_offset, long function_pointer); public static void glColorMaterial(int face, int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glColorMaterial_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColorMaterial_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColorMaterial(face, mode, function_pointer); } private static native void nglColorMaterial(int face, int mode, long function_pointer); public static void glColorMask(boolean red, boolean green, boolean blue, boolean alpha) { - long function_pointer = GLContext.getCapabilities().GL11_glColorMask_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColorMask_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColorMask(red, green, blue, alpha, function_pointer); } private static native void nglColorMask(boolean red, boolean green, boolean blue, boolean alpha, long function_pointer); public static void glColor3b(byte red, byte green, byte blue) { - long function_pointer = GLContext.getCapabilities().GL11_glColor3b_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColor3b_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor3b(red, green, blue, function_pointer); } private static native void nglColor3b(byte red, byte green, byte blue, long function_pointer); public static void glColor3f(float red, float green, float blue) { - long function_pointer = GLContext.getCapabilities().GL11_glColor3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColor3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor3f(red, green, blue, function_pointer); } private static native void nglColor3f(float red, float green, float blue, long function_pointer); public static void glColor3d(double red, double green, double blue) { - long function_pointer = GLContext.getCapabilities().GL11_glColor3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColor3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor3d(red, green, blue, function_pointer); } private static native void nglColor3d(double red, double green, double blue, long function_pointer); public static void glColor3ub(byte red, byte green, byte blue) { - long function_pointer = GLContext.getCapabilities().GL11_glColor3ub_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColor3ub_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor3ub(red, green, blue, function_pointer); } private static native void nglColor3ub(byte red, byte green, byte blue, long function_pointer); public static void glColor4b(byte red, byte green, byte blue, byte alpha) { - long function_pointer = GLContext.getCapabilities().GL11_glColor4b_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColor4b_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor4b(red, green, blue, alpha, function_pointer); } private static native void nglColor4b(byte red, byte green, byte blue, byte alpha, long function_pointer); public static void glColor4f(float red, float green, float blue, float alpha) { - long function_pointer = GLContext.getCapabilities().GL11_glColor4f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColor4f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor4f(red, green, blue, alpha, function_pointer); } private static native void nglColor4f(float red, float green, float blue, float alpha, long function_pointer); public static void glColor4d(double red, double green, double blue, double alpha) { - long function_pointer = GLContext.getCapabilities().GL11_glColor4d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColor4d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor4d(red, green, blue, alpha, function_pointer); } private static native void nglColor4d(double red, double green, double blue, double alpha, long function_pointer); public static void glColor4ub(byte red, byte green, byte blue, byte alpha) { - long function_pointer = GLContext.getCapabilities().GL11_glColor4ub_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glColor4ub_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor4ub(red, green, blue, alpha, function_pointer); } private static native void nglColor4ub(byte red, byte green, byte blue, byte alpha, long function_pointer); public static void glClipPlane(int plane, DoubleBuffer equation) { - long function_pointer = GLContext.getCapabilities().GL11_glClipPlane_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glClipPlane_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(equation, 4); nglClipPlane(plane, equation, equation.position(), function_pointer); @@ -852,217 +894,247 @@ public final class GL11 { private static native void nglClipPlane(int plane, DoubleBuffer equation, int equation_position, long function_pointer); public static void glClearStencil(int s) { - long function_pointer = GLContext.getCapabilities().GL11_glClearStencil_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glClearStencil_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClearStencil(s, function_pointer); } private static native void nglClearStencil(int s, long function_pointer); public static void glEvalPoint1(int i) { - long function_pointer = GLContext.getCapabilities().GL11_glEvalPoint1_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEvalPoint1_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalPoint1(i, function_pointer); } private static native void nglEvalPoint1(int i, long function_pointer); public static void glEvalPoint2(int i, int j) { - long function_pointer = GLContext.getCapabilities().GL11_glEvalPoint2_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEvalPoint2_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalPoint2(i, j, function_pointer); } private static native void nglEvalPoint2(int i, int j, long function_pointer); public static void glEvalMesh1(int mode, int i1, int i2) { - long function_pointer = GLContext.getCapabilities().GL11_glEvalMesh1_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEvalMesh1_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalMesh1(mode, i1, i2, function_pointer); } private static native void nglEvalMesh1(int mode, int i1, int i2, long function_pointer); public static void glEvalMesh2(int mode, int i1, int i2, int j1, int j2) { - long function_pointer = GLContext.getCapabilities().GL11_glEvalMesh2_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEvalMesh2_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalMesh2(mode, i1, i2, j1, j2, function_pointer); } private static native void nglEvalMesh2(int mode, int i1, int i2, int j1, int j2, long function_pointer); public static void glEvalCoord1f(float u) { - long function_pointer = GLContext.getCapabilities().GL11_glEvalCoord1f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEvalCoord1f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalCoord1f(u, function_pointer); } private static native void nglEvalCoord1f(float u, long function_pointer); public static void glEvalCoord1d(double u) { - long function_pointer = GLContext.getCapabilities().GL11_glEvalCoord1d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEvalCoord1d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalCoord1d(u, function_pointer); } private static native void nglEvalCoord1d(double u, long function_pointer); public static void glEvalCoord2f(float u, float v) { - long function_pointer = GLContext.getCapabilities().GL11_glEvalCoord2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEvalCoord2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalCoord2f(u, v, function_pointer); } private static native void nglEvalCoord2f(float u, float v, long function_pointer); public static void glEvalCoord2d(double u, double v) { - long function_pointer = GLContext.getCapabilities().GL11_glEvalCoord2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEvalCoord2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalCoord2d(u, v, function_pointer); } private static native void nglEvalCoord2d(double u, double v, long function_pointer); public static void glEnableClientState(int cap) { - long function_pointer = GLContext.getCapabilities().GL11_glEnableClientState_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEnableClientState_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEnableClientState(cap, function_pointer); } private static native void nglEnableClientState(int cap, long function_pointer); public static void glDisableClientState(int cap) { - long function_pointer = GLContext.getCapabilities().GL11_glDisableClientState_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDisableClientState_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDisableClientState(cap, function_pointer); } private static native void nglDisableClientState(int cap, long function_pointer); public static void glEnable(int cap) { - long function_pointer = GLContext.getCapabilities().GL11_glEnable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEnable_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEnable(cap, function_pointer); } private static native void nglEnable(int cap, long function_pointer); public static void glDisable(int cap) { - long function_pointer = GLContext.getCapabilities().GL11_glDisable_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDisable_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDisable(cap, function_pointer); } private static native void nglDisable(int cap, long function_pointer); public static void glEdgeFlagPointer(int stride, ByteBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glEdgeFlagPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEdgeFlagPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glEdgeFlagPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glEdgeFlagPointer_pointer = pointer; nglEdgeFlagPointer(stride, pointer, pointer.position(), function_pointer); } private static native void nglEdgeFlagPointer(int stride, Buffer pointer, int pointer_position, long function_pointer); public static void glEdgeFlagPointer(int stride, long pointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glEdgeFlagPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEdgeFlagPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglEdgeFlagPointerBO(stride, pointer_buffer_offset, function_pointer); } private static native void nglEdgeFlagPointerBO(int stride, long pointer_buffer_offset, long function_pointer); public static void glEdgeFlag(boolean flag) { - long function_pointer = GLContext.getCapabilities().GL11_glEdgeFlag_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEdgeFlag_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEdgeFlag(flag, function_pointer); } private static native void nglEdgeFlag(boolean flag, long function_pointer); public static void glDrawPixels(int width, int height, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglDrawPixels(width, height, format, type, pixels, pixels.position(), function_pointer); } public static void glDrawPixels(int width, int height, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglDrawPixels(width, height, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glDrawPixels(int width, int height, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglDrawPixels(width, height, format, type, pixels, pixels.position() << 1, function_pointer); } private static native void nglDrawPixels(int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glDrawPixels(int width, int height, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglDrawPixelsBO(width, height, format, type, pixels_buffer_offset, function_pointer); } private static native void nglDrawPixelsBO(int width, int height, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glDrawElements(int mode, ByteBuffer indices) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawElements_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(indices); nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_BYTE, indices, indices.position(), function_pointer); } public static void glDrawElements(int mode, IntBuffer indices) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawElements_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(indices); nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer); } public static void glDrawElements(int mode, ShortBuffer indices) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawElements_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(indices); nglDrawElements(mode, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer); } private static native void nglDrawElements(int mode, int count, int type, Buffer indices, int indices_position, long function_pointer); public static void glDrawElements(int mode, int count, int type, long indices_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawElements_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawElements_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOenabled(); + GLChecks.ensureElementVBOenabled(caps); nglDrawElementsBO(mode, count, type, indices_buffer_offset, function_pointer); } private static native void nglDrawElementsBO(int mode, int count, int type, long indices_buffer_offset, long function_pointer); public static void glDrawBuffer(int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawBuffer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawBuffer_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDrawBuffer(mode, function_pointer); } private static native void nglDrawBuffer(int mode, long function_pointer); public static void glDrawArrays(int mode, int first, int count) { - long function_pointer = GLContext.getCapabilities().GL11_glDrawArrays_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDrawArrays_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDrawArrays(mode, first, count, function_pointer); } private static native void nglDrawArrays(int mode, int first, int count, long function_pointer); public static void glDepthRange(double zNear, double zFar) { - long function_pointer = GLContext.getCapabilities().GL11_glDepthRange_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDepthRange_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDepthRange(zNear, zFar, function_pointer); } private static native void nglDepthRange(double zNear, double zFar, long function_pointer); public static void glDepthMask(boolean flag) { - long function_pointer = GLContext.getCapabilities().GL11_glDepthMask_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDepthMask_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDepthMask(flag, function_pointer); } private static native void nglDepthMask(boolean flag, long function_pointer); public static void glDepthFunc(int func) { - long function_pointer = GLContext.getCapabilities().GL11_glDepthFunc_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glDepthFunc_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDepthFunc(func, function_pointer); } private static native void nglDepthFunc(int func, long function_pointer); public static void glFeedbackBuffer(int type, FloatBuffer buffer) { - long function_pointer = GLContext.getCapabilities().GL11_glFeedbackBuffer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFeedbackBuffer_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffer); nglFeedbackBuffer((buffer.remaining()), type, buffer, buffer.position(), function_pointer); @@ -1070,55 +1142,62 @@ public final class GL11 { private static native void nglFeedbackBuffer(int size, int type, FloatBuffer buffer, int buffer_position, long function_pointer); public static void glGetPixelMap(int map, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPixelMapfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 256); nglGetPixelMapfv(map, values, values.position(), function_pointer); } private static native void nglGetPixelMapfv(int map, FloatBuffer values, int values_position, long function_pointer); public static void glGetPixelMapfv(int map, long values_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPixelMapfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetPixelMapfvBO(map, values_buffer_offset, function_pointer); } private static native void nglGetPixelMapfvBO(int map, long values_buffer_offset, long function_pointer); public static void glGetPixelMapu(int map, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapuiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPixelMapuiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 256); nglGetPixelMapuiv(map, values, values.position(), function_pointer); } private static native void nglGetPixelMapuiv(int map, IntBuffer values, int values_position, long function_pointer); public static void glGetPixelMapuiv(int map, long values_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapuiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPixelMapuiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetPixelMapuivBO(map, values_buffer_offset, function_pointer); } private static native void nglGetPixelMapuivBO(int map, long values_buffer_offset, long function_pointer); public static void glGetPixelMapu(int map, ShortBuffer values) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapusv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPixelMapusv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(values, 256); nglGetPixelMapusv(map, values, values.position(), function_pointer); } private static native void nglGetPixelMapusv(int map, ShortBuffer values, int values_position, long function_pointer); public static void glGetPixelMapusv(int map, long values_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPixelMapusv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPixelMapusv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetPixelMapusvBO(map, values_buffer_offset, function_pointer); } private static native void nglGetPixelMapusvBO(int map, long values_buffer_offset, long function_pointer); public static void glGetMaterial(int face, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetMaterialfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetMaterialfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetMaterialfv(face, pname, params, params.position(), function_pointer); @@ -1126,7 +1205,8 @@ public final class GL11 { private static native void nglGetMaterialfv(int face, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetMaterial(int face, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetMaterialiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetMaterialiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetMaterialiv(face, pname, params, params.position(), function_pointer); @@ -1134,7 +1214,8 @@ public final class GL11 { private static native void nglGetMaterialiv(int face, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetMap(int target, int query, FloatBuffer v) { - long function_pointer = GLContext.getCapabilities().GL11_glGetMapfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetMapfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(v, 256); nglGetMapfv(target, query, v, v.position(), function_pointer); @@ -1142,7 +1223,8 @@ public final class GL11 { private static native void nglGetMapfv(int target, int query, FloatBuffer v, int v_position, long function_pointer); public static void glGetMap(int target, int query, DoubleBuffer v) { - long function_pointer = GLContext.getCapabilities().GL11_glGetMapdv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetMapdv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(v, 256); nglGetMapdv(target, query, v, v.position(), function_pointer); @@ -1150,7 +1232,8 @@ public final class GL11 { private static native void nglGetMapdv(int target, int query, DoubleBuffer v, int v_position, long function_pointer); public static void glGetMap(int target, int query, IntBuffer v) { - long function_pointer = GLContext.getCapabilities().GL11_glGetMapiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetMapiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(v, 256); nglGetMapiv(target, query, v, v.position(), function_pointer); @@ -1158,7 +1241,8 @@ public final class GL11 { private static native void nglGetMapiv(int target, int query, IntBuffer v, int v_position, long function_pointer); public static void glGetLight(int light, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetLightfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetLightfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetLightfv(light, pname, params, params.position(), function_pointer); @@ -1166,7 +1250,8 @@ public final class GL11 { private static native void nglGetLightfv(int light, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetLight(int light, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetLightiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetLightiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetLightiv(light, pname, params, params.position(), function_pointer); @@ -1174,7 +1259,8 @@ public final class GL11 { private static native void nglGetLightiv(int light, int pname, IntBuffer params, int params_position, long function_pointer); public static int glGetError() { - long function_pointer = GLContext.getCapabilities().GL11_glGetError_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetError_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglGetError(function_pointer); return __result; @@ -1182,7 +1268,8 @@ public final class GL11 { private static native int nglGetError(long function_pointer); public static void glGetClipPlane(int plane, DoubleBuffer equation) { - long function_pointer = GLContext.getCapabilities().GL11_glGetClipPlane_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetClipPlane_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(equation, 4); nglGetClipPlane(plane, equation, equation.position(), function_pointer); @@ -1190,7 +1277,8 @@ public final class GL11 { private static native void nglGetClipPlane(int plane, DoubleBuffer equation, int equation_position, long function_pointer); public static void glGetBoolean(int pname, ByteBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetBooleanv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetBooleanv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 16); nglGetBooleanv(pname, params, params.position(), function_pointer); @@ -1198,7 +1286,8 @@ public final class GL11 { private static native void nglGetBooleanv(int pname, ByteBuffer params, int params_position, long function_pointer); public static void glGetDouble(int pname, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetDoublev_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetDoublev_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 16); nglGetDoublev(pname, params, params.position(), function_pointer); @@ -1206,7 +1295,8 @@ public final class GL11 { private static native void nglGetDoublev(int pname, DoubleBuffer params, int params_position, long function_pointer); public static void glGetFloat(int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetFloatv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetFloatv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 16); nglGetFloatv(pname, params, params.position(), function_pointer); @@ -1214,7 +1304,8 @@ public final class GL11 { private static native void nglGetFloatv(int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetInteger(int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetIntegerv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetIntegerv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 16); nglGetIntegerv(pname, params, params.position(), function_pointer); @@ -1222,7 +1313,8 @@ public final class GL11 { private static native void nglGetIntegerv(int pname, IntBuffer params, int params_position, long function_pointer); public static void glGenTextures(IntBuffer textures) { - long function_pointer = GLContext.getCapabilities().GL11_glGenTextures_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGenTextures_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(textures); nglGenTextures((textures.remaining()), textures, textures.position(), function_pointer); @@ -1230,7 +1322,8 @@ public final class GL11 { private static native void nglGenTextures(int n, IntBuffer textures, int textures_position, long function_pointer); public static int glGenLists(int range) { - long function_pointer = GLContext.getCapabilities().GL11_glGenLists_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGenLists_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglGenLists(range, function_pointer); return __result; @@ -1238,35 +1331,40 @@ public final class GL11 { private static native int nglGenLists(int range, long function_pointer); public static void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) { - long function_pointer = GLContext.getCapabilities().GL11_glFrustum_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFrustum_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFrustum(left, right, bottom, top, zNear, zFar, function_pointer); } private static native void nglFrustum(double left, double right, double bottom, double top, double zNear, double zFar, long function_pointer); public static void glFrontFace(int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glFrontFace_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFrontFace_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFrontFace(mode, function_pointer); } private static native void nglFrontFace(int mode, long function_pointer); public static void glFogf(int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glFogf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFogf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFogf(pname, param, function_pointer); } private static native void nglFogf(int pname, float param, long function_pointer); public static void glFogi(int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glFogi_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFogi_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFogi(pname, param, function_pointer); } private static native void nglFogi(int pname, int param, long function_pointer); public static void glFog(int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glFogfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFogfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglFogfv(pname, params, params.position(), function_pointer); @@ -1274,7 +1372,8 @@ public final class GL11 { private static native void nglFogfv(int pname, FloatBuffer params, int params_position, long function_pointer); public static void glFog(int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glFogiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFogiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglFogiv(pname, params, params.position(), function_pointer); @@ -1282,21 +1381,24 @@ public final class GL11 { private static native void nglFogiv(int pname, IntBuffer params, int params_position, long function_pointer); public static void glFlush() { - long function_pointer = GLContext.getCapabilities().GL11_glFlush_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFlush_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFlush(function_pointer); } private static native void nglFlush(long function_pointer); public static void glFinish() { - long function_pointer = GLContext.getCapabilities().GL11_glFinish_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glFinish_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFinish(function_pointer); } private static native void nglFinish(long function_pointer); public static java.nio.ByteBuffer glGetPointer(int pname, int result_size) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPointerv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPointerv_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglGetPointerv(pname, result_size, function_pointer); return __result; @@ -1304,7 +1406,8 @@ public final class GL11 { private static native java.nio.ByteBuffer nglGetPointerv(int pname, int result_size, long function_pointer); public static boolean glIsEnabled(int cap) { - long function_pointer = GLContext.getCapabilities().GL11_glIsEnabled_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glIsEnabled_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsEnabled(cap, function_pointer); return __result; @@ -1312,65 +1415,74 @@ public final class GL11 { private static native boolean nglIsEnabled(int cap, long function_pointer); public static void glInterleavedArrays(int format, int stride, ByteBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glInterleavedArrays_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); nglInterleavedArrays(format, stride, pointer, pointer.position(), function_pointer); } public static void glInterleavedArrays(int format, int stride, DoubleBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glInterleavedArrays_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); nglInterleavedArrays(format, stride, pointer, pointer.position() << 3, function_pointer); } public static void glInterleavedArrays(int format, int stride, FloatBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glInterleavedArrays_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); nglInterleavedArrays(format, stride, pointer, pointer.position() << 2, function_pointer); } public static void glInterleavedArrays(int format, int stride, IntBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glInterleavedArrays_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); nglInterleavedArrays(format, stride, pointer, pointer.position() << 2, function_pointer); } public static void glInterleavedArrays(int format, int stride, ShortBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glInterleavedArrays_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); nglInterleavedArrays(format, stride, pointer, pointer.position() << 1, function_pointer); } private static native void nglInterleavedArrays(int format, int stride, Buffer pointer, int pointer_position, long function_pointer); public static void glInterleavedArrays(int format, int stride, long pointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glInterleavedArrays_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glInterleavedArrays_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglInterleavedArraysBO(format, stride, pointer_buffer_offset, function_pointer); } private static native void nglInterleavedArraysBO(int format, int stride, long pointer_buffer_offset, long function_pointer); public static void glInitNames() { - long function_pointer = GLContext.getCapabilities().GL11_glInitNames_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glInitNames_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglInitNames(function_pointer); } private static native void nglInitNames(long function_pointer); public static void glHint(int target, int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glHint_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glHint_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglHint(target, mode, function_pointer); } private static native void nglHint(int target, int mode, long function_pointer); public static void glGetTexParameter(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexParameterfv(target, pname, params, params.position(), function_pointer); @@ -1378,7 +1490,8 @@ public final class GL11 { private static native void nglGetTexParameterfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetTexParameter(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexParameteriv(target, pname, params, params.position(), function_pointer); @@ -1386,7 +1499,8 @@ public final class GL11 { private static native void nglGetTexParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetTexLevelParameter(int target, int level, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexLevelParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexLevelParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexLevelParameterfv(target, level, pname, params, params.position(), function_pointer); @@ -1394,7 +1508,8 @@ public final class GL11 { private static native void nglGetTexLevelParameterfv(int target, int level, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetTexLevelParameter(int target, int level, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexLevelParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexLevelParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexLevelParameteriv(target, level, pname, params, params.position(), function_pointer); @@ -1402,51 +1517,58 @@ public final class GL11 { private static native void nglGetTexLevelParameteriv(int target, int level, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetTexImage(int target, int level, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, 1, 1, 1)); nglGetTexImage(target, level, format, type, pixels, pixels.position(), function_pointer); } public static void glGetTexImage(int target, int level, int format, int type, DoubleBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, 1, 1, 1)); nglGetTexImage(target, level, format, type, pixels, pixels.position() << 3, function_pointer); } public static void glGetTexImage(int target, int level, int format, int type, FloatBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, 1, 1, 1)); nglGetTexImage(target, level, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glGetTexImage(int target, int level, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, 1, 1, 1)); nglGetTexImage(target, level, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glGetTexImage(int target, int level, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, 1, 1, 1)); nglGetTexImage(target, level, format, type, pixels, pixels.position() << 1, function_pointer); } private static native void nglGetTexImage(int target, int level, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glGetTexImage(int target, int level, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetTexImageBO(target, level, format, type, pixels_buffer_offset, function_pointer); } private static native void nglGetTexImageBO(int target, int level, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glGetTexGen(int coord, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexGeniv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexGeniv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexGeniv(coord, pname, params, params.position(), function_pointer); @@ -1454,7 +1576,8 @@ public final class GL11 { private static native void nglGetTexGeniv(int coord, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetTexGen(int coord, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexGenfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexGenfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexGenfv(coord, pname, params, params.position(), function_pointer); @@ -1462,7 +1585,8 @@ public final class GL11 { private static native void nglGetTexGenfv(int coord, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetTexGen(int coord, int pname, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexGendv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexGendv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexGendv(coord, pname, params, params.position(), function_pointer); @@ -1470,7 +1594,8 @@ public final class GL11 { private static native void nglGetTexGendv(int coord, int pname, DoubleBuffer params, int params_position, long function_pointer); public static void glGetTexEnv(int coord, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexEnviv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexEnviv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexEnviv(coord, pname, params, params.position(), function_pointer); @@ -1478,7 +1603,8 @@ public final class GL11 { private static native void nglGetTexEnviv(int coord, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetTexEnv(int coord, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glGetTexEnvfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetTexEnvfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTexEnvfv(coord, pname, params, params.position(), function_pointer); @@ -1486,7 +1612,8 @@ public final class GL11 { private static native void nglGetTexEnvfv(int coord, int pname, FloatBuffer params, int params_position, long function_pointer); public static java.lang.String glGetString(int name) { - long function_pointer = GLContext.getCapabilities().GL11_glGetString_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetString_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.lang.String __result = nglGetString(name, function_pointer); return __result; @@ -1494,23 +1621,26 @@ public final class GL11 { private static native java.lang.String nglGetString(int name, long function_pointer); public static void glGetPolygonStipple(ByteBuffer mask) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPolygonStipple_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPolygonStipple_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(mask, 1024); nglGetPolygonStipple(mask, mask.position(), function_pointer); } private static native void nglGetPolygonStipple(ByteBuffer mask, int mask_position, long function_pointer); public static void glGetPolygonStipple(long mask_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glGetPolygonStipple_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glGetPolygonStipple_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetPolygonStippleBO(mask_buffer_offset, function_pointer); } private static native void nglGetPolygonStippleBO(long mask_buffer_offset, long function_pointer); public static boolean glIsList(int list) { - long function_pointer = GLContext.getCapabilities().GL11_glIsList_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glIsList_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsList(list, function_pointer); return __result; @@ -1518,21 +1648,24 @@ public final class GL11 { private static native boolean nglIsList(int list, long function_pointer); public static void glMaterialf(int face, int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glMaterialf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMaterialf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMaterialf(face, pname, param, function_pointer); } private static native void nglMaterialf(int face, int pname, float param, long function_pointer); public static void glMateriali(int face, int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glMateriali_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMateriali_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMateriali(face, pname, param, function_pointer); } private static native void nglMateriali(int face, int pname, int param, long function_pointer); public static void glMaterial(int face, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glMaterialfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMaterialfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglMaterialfv(face, pname, params, params.position(), function_pointer); @@ -1540,7 +1673,8 @@ public final class GL11 { private static native void nglMaterialfv(int face, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glMaterial(int face, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glMaterialiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMaterialiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglMaterialiv(face, pname, params, params.position(), function_pointer); @@ -1548,35 +1682,40 @@ public final class GL11 { private static native void nglMaterialiv(int face, int pname, IntBuffer params, int params_position, long function_pointer); public static void glMapGrid1f(int un, float u1, float u2) { - long function_pointer = GLContext.getCapabilities().GL11_glMapGrid1f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMapGrid1f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMapGrid1f(un, u1, u2, function_pointer); } private static native void nglMapGrid1f(int un, float u1, float u2, long function_pointer); public static void glMapGrid1d(int un, double u1, double u2) { - long function_pointer = GLContext.getCapabilities().GL11_glMapGrid1d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMapGrid1d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMapGrid1d(un, u1, u2, function_pointer); } private static native void nglMapGrid1d(int un, double u1, double u2, long function_pointer); public static void glMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2) { - long function_pointer = GLContext.getCapabilities().GL11_glMapGrid2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMapGrid2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMapGrid2f(un, u1, u2, vn, v1, v2, function_pointer); } private static native void nglMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2, long function_pointer); public static void glMapGrid2d(int un, double u1, double u2, int vn, double v1, double v2) { - long function_pointer = GLContext.getCapabilities().GL11_glMapGrid2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMapGrid2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMapGrid2d(un, u1, u2, vn, v1, v2, function_pointer); } private static native void nglMapGrid2d(int un, double u1, double u2, int vn, double v1, double v2, long function_pointer); public static void glMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points) { - long function_pointer = GLContext.getCapabilities().GL11_glMap2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMap2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(points); nglMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points, points.position(), function_pointer); @@ -1584,7 +1723,8 @@ public final class GL11 { private static native void nglMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, FloatBuffer points, int points_position, long function_pointer); public static void glMap2d(int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, DoubleBuffer points) { - long function_pointer = GLContext.getCapabilities().GL11_glMap2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMap2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(points); nglMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points, points.position(), function_pointer); @@ -1592,7 +1732,8 @@ public final class GL11 { private static native void nglMap2d(int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, DoubleBuffer points, int points_position, long function_pointer); public static void glMap1f(int target, float u1, float u2, int stride, int order, FloatBuffer points) { - long function_pointer = GLContext.getCapabilities().GL11_glMap1f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMap1f_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(points); nglMap1f(target, u1, u2, stride, order, points, points.position(), function_pointer); @@ -1600,7 +1741,8 @@ public final class GL11 { private static native void nglMap1f(int target, float u1, float u2, int stride, int order, FloatBuffer points, int points_position, long function_pointer); public static void glMap1d(int target, double u1, double u2, int stride, int order, DoubleBuffer points) { - long function_pointer = GLContext.getCapabilities().GL11_glMap1d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMap1d_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(points); nglMap1d(target, u1, u2, stride, order, points, points.position(), function_pointer); @@ -1608,21 +1750,24 @@ public final class GL11 { private static native void nglMap1d(int target, double u1, double u2, int stride, int order, DoubleBuffer points, int points_position, long function_pointer); public static void glLogicOp(int opcode) { - long function_pointer = GLContext.getCapabilities().GL11_glLogicOp_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLogicOp_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLogicOp(opcode, function_pointer); } private static native void nglLogicOp(int opcode, long function_pointer); public static void glLoadName(int name) { - long function_pointer = GLContext.getCapabilities().GL11_glLoadName_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLoadName_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLoadName(name, function_pointer); } private static native void nglLoadName(int name, long function_pointer); public static void glLoadMatrix(FloatBuffer m) { - long function_pointer = GLContext.getCapabilities().GL11_glLoadMatrixf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLoadMatrixf_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(m, 16); nglLoadMatrixf(m, m.position(), function_pointer); @@ -1630,7 +1775,8 @@ public final class GL11 { private static native void nglLoadMatrixf(FloatBuffer m, int m_position, long function_pointer); public static void glLoadMatrix(DoubleBuffer m) { - long function_pointer = GLContext.getCapabilities().GL11_glLoadMatrixd_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLoadMatrixd_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(m, 16); nglLoadMatrixd(m, m.position(), function_pointer); @@ -1638,49 +1784,56 @@ public final class GL11 { private static native void nglLoadMatrixd(DoubleBuffer m, int m_position, long function_pointer); public static void glLoadIdentity() { - long function_pointer = GLContext.getCapabilities().GL11_glLoadIdentity_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLoadIdentity_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLoadIdentity(function_pointer); } private static native void nglLoadIdentity(long function_pointer); public static void glListBase(int base) { - long function_pointer = GLContext.getCapabilities().GL11_glListBase_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glListBase_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglListBase(base, function_pointer); } private static native void nglListBase(int base, long function_pointer); public static void glLineWidth(float width) { - long function_pointer = GLContext.getCapabilities().GL11_glLineWidth_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLineWidth_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLineWidth(width, function_pointer); } private static native void nglLineWidth(float width, long function_pointer); public static void glLineStipple(int factor, short pattern) { - long function_pointer = GLContext.getCapabilities().GL11_glLineStipple_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLineStipple_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLineStipple(factor, pattern, function_pointer); } private static native void nglLineStipple(int factor, short pattern, long function_pointer); public static void glLightModelf(int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glLightModelf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLightModelf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLightModelf(pname, param, function_pointer); } private static native void nglLightModelf(int pname, float param, long function_pointer); public static void glLightModeli(int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glLightModeli_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLightModeli_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLightModeli(pname, param, function_pointer); } private static native void nglLightModeli(int pname, int param, long function_pointer); public static void glLightModel(int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glLightModelfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLightModelfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglLightModelfv(pname, params, params.position(), function_pointer); @@ -1688,7 +1841,8 @@ public final class GL11 { private static native void nglLightModelfv(int pname, FloatBuffer params, int params_position, long function_pointer); public static void glLightModel(int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glLightModeliv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLightModeliv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglLightModeliv(pname, params, params.position(), function_pointer); @@ -1696,21 +1850,24 @@ public final class GL11 { private static native void nglLightModeliv(int pname, IntBuffer params, int params_position, long function_pointer); public static void glLightf(int light, int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glLightf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLightf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLightf(light, pname, param, function_pointer); } private static native void nglLightf(int light, int pname, float param, long function_pointer); public static void glLighti(int light, int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glLighti_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLighti_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLighti(light, pname, param, function_pointer); } private static native void nglLighti(int light, int pname, int param, long function_pointer); public static void glLight(int light, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glLightfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLightfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglLightfv(light, pname, params, params.position(), function_pointer); @@ -1718,7 +1875,8 @@ public final class GL11 { private static native void nglLightfv(int light, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glLight(int light, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glLightiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glLightiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglLightiv(light, pname, params, params.position(), function_pointer); @@ -1726,7 +1884,8 @@ public final class GL11 { private static native void nglLightiv(int light, int pname, IntBuffer params, int params_position, long function_pointer); public static boolean glIsTexture(int texture) { - long function_pointer = GLContext.getCapabilities().GL11_glIsTexture_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glIsTexture_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsTexture(texture, function_pointer); return __result; @@ -1734,231 +1893,262 @@ public final class GL11 { private static native boolean nglIsTexture(int texture, long function_pointer); public static void glMatrixMode(int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glMatrixMode_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMatrixMode_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMatrixMode(mode, function_pointer); } private static native void nglMatrixMode(int mode, long function_pointer); public static void glPolygonStipple(ByteBuffer mask) { - long function_pointer = GLContext.getCapabilities().GL11_glPolygonStipple_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPolygonStipple_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(mask, 1024); nglPolygonStipple(mask, mask.position(), function_pointer); } private static native void nglPolygonStipple(ByteBuffer mask, int mask_position, long function_pointer); public static void glPolygonStipple(long mask_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glPolygonStipple_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPolygonStipple_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglPolygonStippleBO(mask_buffer_offset, function_pointer); } private static native void nglPolygonStippleBO(long mask_buffer_offset, long function_pointer); public static void glPolygonOffset(float factor, float units) { - long function_pointer = GLContext.getCapabilities().GL11_glPolygonOffset_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPolygonOffset_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPolygonOffset(factor, units, function_pointer); } private static native void nglPolygonOffset(float factor, float units, long function_pointer); public static void glPolygonMode(int face, int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glPolygonMode_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPolygonMode_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPolygonMode(face, mode, function_pointer); } private static native void nglPolygonMode(int face, int mode, long function_pointer); public static void glPointSize(float size) { - long function_pointer = GLContext.getCapabilities().GL11_glPointSize_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPointSize_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPointSize(size, function_pointer); } private static native void nglPointSize(float size, long function_pointer); public static void glPixelZoom(float xfactor, float yfactor) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelZoom_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelZoom_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPixelZoom(xfactor, yfactor, function_pointer); } private static native void nglPixelZoom(float xfactor, float yfactor, long function_pointer); public static void glPixelTransferf(int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelTransferf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelTransferf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPixelTransferf(pname, param, function_pointer); } private static native void nglPixelTransferf(int pname, float param, long function_pointer); public static void glPixelTransferi(int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelTransferi_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelTransferi_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPixelTransferi(pname, param, function_pointer); } private static native void nglPixelTransferi(int pname, int param, long function_pointer); public static void glPixelStoref(int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelStoref_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelStoref_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPixelStoref(pname, param, function_pointer); } private static native void nglPixelStoref(int pname, float param, long function_pointer); public static void glPixelStorei(int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelStorei_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelStorei_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPixelStorei(pname, param, function_pointer); } private static native void nglPixelStorei(int pname, int param, long function_pointer); public static void glPixelMap(int map, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelMapfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelMapfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(values); nglPixelMapfv(map, (values.remaining()), values, values.position(), function_pointer); } private static native void nglPixelMapfv(int map, int mapsize, FloatBuffer values, int values_position, long function_pointer); public static void glPixelMapfv(int map, int mapsize, long values_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelMapfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelMapfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglPixelMapfvBO(map, mapsize, values_buffer_offset, function_pointer); } private static native void nglPixelMapfvBO(int map, int mapsize, long values_buffer_offset, long function_pointer); public static void glPixelMapu(int map, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelMapuiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelMapuiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(values); nglPixelMapuiv(map, (values.remaining()), values, values.position(), function_pointer); } private static native void nglPixelMapuiv(int map, int mapsize, IntBuffer values, int values_position, long function_pointer); public static void glPixelMapuiv(int map, int mapsize, long values_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelMapuiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelMapuiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglPixelMapuivBO(map, mapsize, values_buffer_offset, function_pointer); } private static native void nglPixelMapuivBO(int map, int mapsize, long values_buffer_offset, long function_pointer); public static void glPixelMapu(int map, ShortBuffer values) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelMapusv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelMapusv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(values); nglPixelMapusv(map, (values.remaining()), values, values.position(), function_pointer); } private static native void nglPixelMapusv(int map, int mapsize, ShortBuffer values, int values_position, long function_pointer); public static void glPixelMapusv(int map, int mapsize, long values_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glPixelMapusv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPixelMapusv_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglPixelMapusvBO(map, mapsize, values_buffer_offset, function_pointer); } private static native void nglPixelMapusvBO(int map, int mapsize, long values_buffer_offset, long function_pointer); public static void glPassThrough(float token) { - long function_pointer = GLContext.getCapabilities().GL11_glPassThrough_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPassThrough_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPassThrough(token, function_pointer); } private static native void nglPassThrough(float token, long function_pointer); public static void glOrtho(double left, double right, double bottom, double top, double zNear, double zFar) { - long function_pointer = GLContext.getCapabilities().GL11_glOrtho_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glOrtho_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglOrtho(left, right, bottom, top, zNear, zFar, function_pointer); } private static native void nglOrtho(double left, double right, double bottom, double top, double zNear, double zFar, long function_pointer); public static void glNormalPointer(int stride, ByteBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormalPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glNormalPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glNormalPointer_pointer = pointer; nglNormalPointer(GL11.GL_BYTE, stride, pointer, pointer.position(), function_pointer); } public static void glNormalPointer(int stride, DoubleBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormalPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glNormalPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glNormalPointer_pointer = pointer; nglNormalPointer(GL11.GL_DOUBLE, stride, pointer, pointer.position() << 3, function_pointer); } public static void glNormalPointer(int stride, FloatBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormalPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glNormalPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glNormalPointer_pointer = pointer; nglNormalPointer(GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer); } public static void glNormalPointer(int stride, IntBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormalPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glNormalPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glNormalPointer_pointer = pointer; nglNormalPointer(GL11.GL_INT, stride, pointer, pointer.position() << 2, function_pointer); } private static native void nglNormalPointer(int type, int stride, Buffer pointer, int pointer_position, long function_pointer); public static void glNormalPointer(int type, int stride, long pointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glNormalPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormalPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglNormalPointerBO(type, stride, pointer_buffer_offset, function_pointer); } private static native void nglNormalPointerBO(int type, int stride, long pointer_buffer_offset, long function_pointer); public static void glNormal3b(byte nx, byte ny, byte nz) { - long function_pointer = GLContext.getCapabilities().GL11_glNormal3b_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormal3b_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormal3b(nx, ny, nz, function_pointer); } private static native void nglNormal3b(byte nx, byte ny, byte nz, long function_pointer); public static void glNormal3f(float nx, float ny, float nz) { - long function_pointer = GLContext.getCapabilities().GL11_glNormal3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormal3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormal3f(nx, ny, nz, function_pointer); } private static native void nglNormal3f(float nx, float ny, float nz, long function_pointer); public static void glNormal3d(double nx, double ny, double nz) { - long function_pointer = GLContext.getCapabilities().GL11_glNormal3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormal3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormal3d(nx, ny, nz, function_pointer); } private static native void nglNormal3d(double nx, double ny, double nz, long function_pointer); public static void glNormal3i(int nx, int ny, int nz) { - long function_pointer = GLContext.getCapabilities().GL11_glNormal3i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNormal3i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormal3i(nx, ny, nz, function_pointer); } private static native void nglNormal3i(int nx, int ny, int nz, long function_pointer); public static void glNewList(int list, int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glNewList_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glNewList_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNewList(list, mode, function_pointer); } private static native void nglNewList(int list, int mode, long function_pointer); public static void glEndList() { - long function_pointer = GLContext.getCapabilities().GL11_glEndList_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glEndList_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEndList(function_pointer); } private static native void nglEndList(long function_pointer); public static void glMultMatrix(FloatBuffer m) { - long function_pointer = GLContext.getCapabilities().GL11_glMultMatrixf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMultMatrixf_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(m, 16); nglMultMatrixf(m, m.position(), function_pointer); @@ -1966,7 +2156,8 @@ public final class GL11 { private static native void nglMultMatrixf(FloatBuffer m, int m_position, long function_pointer); public static void glMultMatrix(DoubleBuffer m) { - long function_pointer = GLContext.getCapabilities().GL11_glMultMatrixd_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glMultMatrixd_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(m, 16); nglMultMatrixd(m, m.position(), function_pointer); @@ -1974,51 +2165,58 @@ public final class GL11 { private static native void nglMultMatrixd(DoubleBuffer m, int m_position, long function_pointer); public static void glShadeModel(int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glShadeModel_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glShadeModel_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglShadeModel(mode, function_pointer); } private static native void nglShadeModel(int mode, long function_pointer); public static void glSelectBuffer(IntBuffer buffer) { - long function_pointer = GLContext.getCapabilities().GL11_glSelectBuffer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glSelectBuffer_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().GL11_glSelectBuffer_buffer = buffer; + GLChecks.getReferences(caps).GL11_glSelectBuffer_buffer = buffer; nglSelectBuffer((buffer.remaining()), buffer, buffer.position(), function_pointer); } private static native void nglSelectBuffer(int size, IntBuffer buffer, int buffer_position, long function_pointer); public static void glScissor(int x, int y, int width, int height) { - long function_pointer = GLContext.getCapabilities().GL11_glScissor_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glScissor_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglScissor(x, y, width, height, function_pointer); } private static native void nglScissor(int x, int y, int width, int height, long function_pointer); public static void glScalef(float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().GL11_glScalef_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glScalef_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglScalef(x, y, z, function_pointer); } private static native void nglScalef(float x, float y, float z, long function_pointer); public static void glScaled(double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().GL11_glScaled_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glScaled_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglScaled(x, y, z, function_pointer); } private static native void nglScaled(double x, double y, double z, long function_pointer); public static void glRotatef(float angle, float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().GL11_glRotatef_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRotatef_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRotatef(angle, x, y, z, function_pointer); } private static native void nglRotatef(float angle, float x, float y, float z, long function_pointer); public static int glRenderMode(int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glRenderMode_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRenderMode_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglRenderMode(mode, function_pointer); return __result; @@ -2026,517 +2224,587 @@ public final class GL11 { private static native int nglRenderMode(int mode, long function_pointer); public static void glRectf(float x1, float y1, float x2, float y2) { - long function_pointer = GLContext.getCapabilities().GL11_glRectf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRectf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRectf(x1, y1, x2, y2, function_pointer); } private static native void nglRectf(float x1, float y1, float x2, float y2, long function_pointer); public static void glRectd(double x1, double y1, double x2, double y2) { - long function_pointer = GLContext.getCapabilities().GL11_glRectd_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRectd_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRectd(x1, y1, x2, y2, function_pointer); } private static native void nglRectd(double x1, double y1, double x2, double y2, long function_pointer); public static void glRecti(int x1, int y1, int x2, int y2) { - long function_pointer = GLContext.getCapabilities().GL11_glRecti_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRecti_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRecti(x1, y1, x2, y2, function_pointer); } private static native void nglRecti(int x1, int y1, int x2, int y2, long function_pointer); public static void glReadPixels(int x, int y, int width, int height, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glReadPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglReadPixels(x, y, width, height, format, type, pixels, pixels.position(), function_pointer); } public static void glReadPixels(int x, int y, int width, int height, int format, int type, DoubleBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glReadPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 3, function_pointer); } public static void glReadPixels(int x, int y, int width, int height, int format, int type, FloatBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glReadPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glReadPixels(int x, int y, int width, int height, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glReadPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glReadPixels(int x, int y, int width, int height, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glReadPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglReadPixels(x, y, width, height, format, type, pixels, pixels.position() << 1, function_pointer); } private static native void nglReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glReadPixels(int x, int y, int width, int height, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glReadPixels_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glReadPixels_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglReadPixelsBO(x, y, width, height, format, type, pixels_buffer_offset, function_pointer); } private static native void nglReadPixelsBO(int x, int y, int width, int height, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glReadBuffer(int mode) { - long function_pointer = GLContext.getCapabilities().GL11_glReadBuffer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glReadBuffer_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglReadBuffer(mode, function_pointer); } private static native void nglReadBuffer(int mode, long function_pointer); public static void glRasterPos2f(float x, float y) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos2f(x, y, function_pointer); } private static native void nglRasterPos2f(float x, float y, long function_pointer); public static void glRasterPos2d(double x, double y) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos2d(x, y, function_pointer); } private static native void nglRasterPos2d(double x, double y, long function_pointer); public static void glRasterPos2i(int x, int y) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos2i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos2i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos2i(x, y, function_pointer); } private static native void nglRasterPos2i(int x, int y, long function_pointer); public static void glRasterPos3f(float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos3f(x, y, z, function_pointer); } private static native void nglRasterPos3f(float x, float y, float z, long function_pointer); public static void glRasterPos3d(double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos3d(x, y, z, function_pointer); } private static native void nglRasterPos3d(double x, double y, double z, long function_pointer); public static void glRasterPos3i(int x, int y, int z) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos3i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos3i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos3i(x, y, z, function_pointer); } private static native void nglRasterPos3i(int x, int y, int z, long function_pointer); public static void glRasterPos4f(float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos4f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos4f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos4f(x, y, z, w, function_pointer); } private static native void nglRasterPos4f(float x, float y, float z, float w, long function_pointer); public static void glRasterPos4d(double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos4d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos4d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos4d(x, y, z, w, function_pointer); } private static native void nglRasterPos4d(double x, double y, double z, double w, long function_pointer); public static void glRasterPos4i(int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().GL11_glRasterPos4i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glRasterPos4i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglRasterPos4i(x, y, z, w, function_pointer); } private static native void nglRasterPos4i(int x, int y, int z, int w, long function_pointer); public static void glPushName(int name) { - long function_pointer = GLContext.getCapabilities().GL11_glPushName_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPushName_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPushName(name, function_pointer); } private static native void nglPushName(int name, long function_pointer); public static void glPopName() { - long function_pointer = GLContext.getCapabilities().GL11_glPopName_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPopName_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPopName(function_pointer); } private static native void nglPopName(long function_pointer); public static void glPushMatrix() { - long function_pointer = GLContext.getCapabilities().GL11_glPushMatrix_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPushMatrix_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPushMatrix(function_pointer); } private static native void nglPushMatrix(long function_pointer); public static void glPopMatrix() { - long function_pointer = GLContext.getCapabilities().GL11_glPopMatrix_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPopMatrix_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPopMatrix(function_pointer); } private static native void nglPopMatrix(long function_pointer); public static void glPushClientAttrib(int mask) { - StateTracker.pushAttrib(mask); - long function_pointer = GLContext.getCapabilities().GL11_glPushClientAttrib_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPushClientAttrib_pointer; BufferChecks.checkFunctionAddress(function_pointer); + StateTracker.pushAttrib(caps, mask); nglPushClientAttrib(mask, function_pointer); } private static native void nglPushClientAttrib(int mask, long function_pointer); public static void glPopClientAttrib() { - StateTracker.popAttrib(); - long function_pointer = GLContext.getCapabilities().GL11_glPopClientAttrib_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPopClientAttrib_pointer; BufferChecks.checkFunctionAddress(function_pointer); + StateTracker.popAttrib(caps); nglPopClientAttrib(function_pointer); } private static native void nglPopClientAttrib(long function_pointer); public static void glPushAttrib(int mask) { - long function_pointer = GLContext.getCapabilities().GL11_glPushAttrib_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPushAttrib_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPushAttrib(mask, function_pointer); } private static native void nglPushAttrib(int mask, long function_pointer); public static void glPopAttrib() { - long function_pointer = GLContext.getCapabilities().GL11_glPopAttrib_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glPopAttrib_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPopAttrib(function_pointer); } private static native void nglPopAttrib(long function_pointer); public static void glStencilFunc(int func, int ref, int mask) { - long function_pointer = GLContext.getCapabilities().GL11_glStencilFunc_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glStencilFunc_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilFunc(func, ref, mask, function_pointer); } private static native void nglStencilFunc(int func, int ref, int mask, long function_pointer); public static void glVertexPointer(int size, int stride, DoubleBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertexPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glVertexPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glVertexPointer_pointer = pointer; nglVertexPointer(size, GL11.GL_DOUBLE, stride, pointer, pointer.position() << 3, function_pointer); } public static void glVertexPointer(int size, int stride, FloatBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertexPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glVertexPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glVertexPointer_pointer = pointer; nglVertexPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer); } public static void glVertexPointer(int size, int stride, IntBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertexPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glVertexPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glVertexPointer_pointer = pointer; nglVertexPointer(size, GL11.GL_INT, stride, pointer, pointer.position() << 2, function_pointer); } private static native void nglVertexPointer(int size, int type, int stride, Buffer pointer, int pointer_position, long function_pointer); public static void glVertexPointer(int size, int type, int stride, long pointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glVertexPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertexPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglVertexPointerBO(size, type, stride, pointer_buffer_offset, function_pointer); } private static native void nglVertexPointerBO(int size, int type, int stride, long pointer_buffer_offset, long function_pointer); public static void glVertex2f(float x, float y) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex2f(x, y, function_pointer); } private static native void nglVertex2f(float x, float y, long function_pointer); public static void glVertex2d(double x, double y) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex2d(x, y, function_pointer); } private static native void nglVertex2d(double x, double y, long function_pointer); public static void glVertex2i(int x, int y) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex2i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex2i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex2i(x, y, function_pointer); } private static native void nglVertex2i(int x, int y, long function_pointer); public static void glVertex3f(float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex3f(x, y, z, function_pointer); } private static native void nglVertex3f(float x, float y, float z, long function_pointer); public static void glVertex3d(double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex3d(x, y, z, function_pointer); } private static native void nglVertex3d(double x, double y, double z, long function_pointer); public static void glVertex3i(int x, int y, int z) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex3i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex3i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex3i(x, y, z, function_pointer); } private static native void nglVertex3i(int x, int y, int z, long function_pointer); public static void glVertex4f(float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex4f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex4f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex4f(x, y, z, w, function_pointer); } private static native void nglVertex4f(float x, float y, float z, float w, long function_pointer); public static void glVertex4d(double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex4d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex4d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex4d(x, y, z, w, function_pointer); } private static native void nglVertex4d(double x, double y, double z, double w, long function_pointer); public static void glVertex4i(int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().GL11_glVertex4i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glVertex4i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex4i(x, y, z, w, function_pointer); } private static native void nglVertex4i(int x, int y, int z, int w, long function_pointer); public static void glTranslatef(float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().GL11_glTranslatef_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTranslatef_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTranslatef(x, y, z, function_pointer); } private static native void nglTranslatef(float x, float y, float z, long function_pointer); public static void glTranslated(double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().GL11_glTranslated_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTranslated_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTranslated(x, y, z, function_pointer); } private static native void nglTranslated(double x, double y, double z, long function_pointer); public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage1DStorage(pixels, format, type, width, border)); nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer); } public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, DoubleBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage1DStorage(pixels, format, type, width, border)); nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 3 : 0, function_pointer); } public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, FloatBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage1DStorage(pixels, format, type, width, border)); nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer); } public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage1DStorage(pixels, format, type, width, border)); nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer); } public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage1DStorage(pixels, format, type, width, border)); nglTexImage1D(target, level, internalformat, width, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer); } private static native void nglTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glTexImage1D(int target, int level, int internalformat, int width, int border, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglTexImage1DBO(target, level, internalformat, width, border, format, type, pixels_buffer_offset, function_pointer); } private static native void nglTexImage1DBO(int target, int level, int internalformat, int width, int border, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border)); nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer); } public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, DoubleBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border)); nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 3 : 0, function_pointer); } public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, FloatBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border)); nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer); } public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border)); nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer); } public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage2DStorage(pixels, format, type, width, height, border)); nglTexImage2D(target, level, internalformat, width, height, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer); } private static native void nglTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglTexImage2DBO(target, level, internalformat, width, height, border, format, type, pixels_buffer_offset, function_pointer); } private static native void nglTexImage2DBO(int target, int level, int internalformat, int width, int height, int border, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)); nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position(), function_pointer); } public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, DoubleBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)); nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 3, function_pointer); } public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, FloatBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)); nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)); nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, 1, 1)); nglTexSubImage1D(target, level, xoffset, width, format, type, pixels, pixels.position() << 1, function_pointer); } private static native void nglTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglTexSubImage1DBO(target, level, xoffset, width, format, type, pixels_buffer_offset, function_pointer); } private static native void nglTexSubImage1DBO(int target, int level, int xoffset, int width, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position(), function_pointer); } public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, DoubleBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 3, function_pointer); } public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, FloatBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, 1)); nglTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels, pixels.position() << 1, function_pointer); } private static native void nglTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglTexSubImage2DBO(target, level, xoffset, yoffset, width, height, format, type, pixels_buffer_offset, function_pointer); } private static native void nglTexSubImage2DBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glTexParameterf(int target, int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexParameterf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexParameterf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexParameterf(target, pname, param, function_pointer); } private static native void nglTexParameterf(int target, int pname, float param, long function_pointer); public static void glTexParameteri(int target, int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexParameteri_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexParameteri_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexParameteri(target, pname, param, function_pointer); } private static native void nglTexParameteri(int target, int pname, int param, long function_pointer); public static void glTexParameter(int target, int pname, FloatBuffer param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(param, 4); nglTexParameterfv(target, pname, param, param.position(), function_pointer); @@ -2544,7 +2812,8 @@ public final class GL11 { private static native void nglTexParameterfv(int target, int pname, FloatBuffer param, int param_position, long function_pointer); public static void glTexParameter(int target, int pname, IntBuffer param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(param, 4); nglTexParameteriv(target, pname, param, param.position(), function_pointer); @@ -2552,21 +2821,24 @@ public final class GL11 { private static native void nglTexParameteriv(int target, int pname, IntBuffer param, int param_position, long function_pointer); public static void glTexGenf(int coord, int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexGenf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexGenf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexGenf(coord, pname, param, function_pointer); } private static native void nglTexGenf(int coord, int pname, float param, long function_pointer); public static void glTexGend(int coord, int pname, double param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexGend_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexGend_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexGend(coord, pname, param, function_pointer); } private static native void nglTexGend(int coord, int pname, double param, long function_pointer); public static void glTexGen(int coord, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glTexGenfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexGenfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglTexGenfv(coord, pname, params, params.position(), function_pointer); @@ -2574,7 +2846,8 @@ public final class GL11 { private static native void nglTexGenfv(int coord, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glTexGen(int coord, int pname, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glTexGendv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexGendv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglTexGendv(coord, pname, params, params.position(), function_pointer); @@ -2582,14 +2855,16 @@ public final class GL11 { private static native void nglTexGendv(int coord, int pname, DoubleBuffer params, int params_position, long function_pointer); public static void glTexGeni(int coord, int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexGeni_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexGeni_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexGeni(coord, pname, param, function_pointer); } private static native void nglTexGeni(int coord, int pname, int param, long function_pointer); public static void glTexGen(int coord, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glTexGeniv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexGeniv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglTexGeniv(coord, pname, params, params.position(), function_pointer); @@ -2597,21 +2872,24 @@ public final class GL11 { private static native void nglTexGeniv(int coord, int pname, IntBuffer params, int params_position, long function_pointer); public static void glTexEnvf(int target, int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexEnvf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexEnvf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexEnvf(target, pname, param, function_pointer); } private static native void nglTexEnvf(int target, int pname, float param, long function_pointer); public static void glTexEnvi(int target, int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL11_glTexEnvi_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexEnvi_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexEnvi(target, pname, param, function_pointer); } private static native void nglTexEnvi(int target, int pname, int param, long function_pointer); public static void glTexEnv(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glTexEnvfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexEnvfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglTexEnvfv(target, pname, params, params.position(), function_pointer); @@ -2619,7 +2897,8 @@ public final class GL11 { private static native void nglTexEnvfv(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glTexEnv(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL11_glTexEnviv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexEnviv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglTexEnviv(target, pname, params, params.position(), function_pointer); @@ -2627,102 +2906,116 @@ public final class GL11 { private static native void nglTexEnviv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glTexCoordPointer(int size, int stride, DoubleBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoordPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoordPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glTexCoordPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glTexCoordPointer_pointer = pointer; nglTexCoordPointer(size, GL11.GL_DOUBLE, stride, pointer, pointer.position() << 3, function_pointer); } public static void glTexCoordPointer(int size, int stride, FloatBuffer pointer) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoordPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoordPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(pointer); - GLChecks.getReferences().GL11_glTexCoordPointer_pointer = pointer; + GLChecks.getReferences(caps).GL11_glTexCoordPointer_pointer = pointer; nglTexCoordPointer(size, GL11.GL_FLOAT, stride, pointer, pointer.position() << 2, function_pointer); } private static native void nglTexCoordPointer(int size, int type, int stride, Buffer pointer, int pointer_position, long function_pointer); public static void glTexCoordPointer(int size, int type, int stride, long pointer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoordPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoordPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglTexCoordPointerBO(size, type, stride, pointer_buffer_offset, function_pointer); } private static native void nglTexCoordPointerBO(int size, int type, int stride, long pointer_buffer_offset, long function_pointer); public static void glTexCoord1f(float s) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoord1f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoord1f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord1f(s, function_pointer); } private static native void nglTexCoord1f(float s, long function_pointer); public static void glTexCoord1d(double s) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoord1d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoord1d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord1d(s, function_pointer); } private static native void nglTexCoord1d(double s, long function_pointer); public static void glTexCoord2f(float s, float t) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoord2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoord2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord2f(s, t, function_pointer); } private static native void nglTexCoord2f(float s, float t, long function_pointer); public static void glTexCoord2d(double s, double t) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoord2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoord2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord2d(s, t, function_pointer); } private static native void nglTexCoord2d(double s, double t, long function_pointer); public static void glTexCoord3f(float s, float t, float r) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoord3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoord3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord3f(s, t, r, function_pointer); } private static native void nglTexCoord3f(float s, float t, float r, long function_pointer); public static void glTexCoord3d(double s, double t, double r) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoord3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoord3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord3d(s, t, r, function_pointer); } private static native void nglTexCoord3d(double s, double t, double r, long function_pointer); public static void glTexCoord4f(float s, float t, float r, float q) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoord4f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoord4f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord4f(s, t, r, q, function_pointer); } private static native void nglTexCoord4f(float s, float t, float r, float q, long function_pointer); public static void glTexCoord4d(double s, double t, double r, double q) { - long function_pointer = GLContext.getCapabilities().GL11_glTexCoord4d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glTexCoord4d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord4d(s, t, r, q, function_pointer); } private static native void nglTexCoord4d(double s, double t, double r, double q, long function_pointer); public static void glStencilOp(int fail, int zfail, int zpass) { - long function_pointer = GLContext.getCapabilities().GL11_glStencilOp_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glStencilOp_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilOp(fail, zfail, zpass, function_pointer); } private static native void nglStencilOp(int fail, int zfail, int zpass, long function_pointer); public static void glStencilMask(int mask) { - long function_pointer = GLContext.getCapabilities().GL11_glStencilMask_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glStencilMask_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilMask(mask, function_pointer); } private static native void nglStencilMask(int mask, long function_pointer); public static void glViewport(int x, int y, int width, int height) { - long function_pointer = GLContext.getCapabilities().GL11_glViewport_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL11_glViewport_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglViewport(x, y, width, height, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/GL12.java b/src/generated/org/lwjgl/opengl/GL12.java index d5a0f73a..5b88586b 100644 --- a/src/generated/org/lwjgl/opengl/GL12.java +++ b/src/generated/org/lwjgl/opengl/GL12.java @@ -50,130 +50,147 @@ public final class GL12 { public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) { - long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glDrawRangeElements_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(indices); nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_BYTE, indices, indices.position(), function_pointer); } public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) { - long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glDrawRangeElements_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(indices); nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_INT, indices, indices.position() << 2, function_pointer); } public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) { - long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glDrawRangeElements_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOdisabled(); + GLChecks.ensureElementVBOdisabled(caps); BufferChecks.checkDirect(indices); nglDrawRangeElements(mode, start, end, (indices.remaining()), GL11.GL_UNSIGNED_SHORT, indices, indices.position() << 1, function_pointer); } private static native void nglDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices, int indices_position, long function_pointer); public static void glDrawRangeElements(int mode, int start, int end, int count, int type, long indices_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL12_glDrawRangeElements_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glDrawRangeElements_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureElementVBOenabled(); + GLChecks.ensureElementVBOenabled(caps); nglDrawRangeElementsBO(mode, start, end, count, type, indices_buffer_offset, function_pointer); } private static native void nglDrawRangeElementsBO(int mode, int start, int end, int count, int type, long indices_buffer_offset, long function_pointer); public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border)); nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() : 0, function_pointer); } public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, DoubleBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border)); nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 3 : 0, function_pointer); } public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, FloatBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border)); nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer); } public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border)); nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 2 : 0, function_pointer); } public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); if (pixels != null) BufferChecks.checkBuffer(pixels, GLChecks.calculateTexImage3DStorage(pixels, format, type, width, height, depth, border)); nglTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels, pixels != null ? pixels.position() << 1 : 0, function_pointer); } private static native void nglTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL12_glTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglTexImage3DBO(target, level, internalFormat, width, height, depth, border, format, type, pixels_buffer_offset, function_pointer); } private static native void nglTexImage3DBO(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ByteBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)); nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position(), function_pointer); } public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, DoubleBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)); nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 3, function_pointer); } public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, FloatBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)); nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, IntBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)); nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 2, function_pointer); } public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ShortBuffer pixels) { - long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkBuffer(pixels, GLChecks.calculateImageStorage(pixels, format, type, width, height, depth)); nglTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels, pixels.position() << 1, function_pointer); } private static native void nglTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels, int pixels_position, long function_pointer); public static void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL12_glTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglTexSubImage3DBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels_buffer_offset, function_pointer); } private static native void nglTexSubImage3DBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels_buffer_offset, long function_pointer); public static void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { - long function_pointer = GLContext.getCapabilities().GL12_glCopyTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL12_glCopyTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/GL13.java b/src/generated/org/lwjgl/opengl/GL13.java index 1b5b73c7..a01b7b84 100644 --- a/src/generated/org/lwjgl/opengl/GL13.java +++ b/src/generated/org/lwjgl/opengl/GL13.java @@ -109,371 +109,422 @@ public final class GL13 { public static void glActiveTexture(int texture) { - long function_pointer = GLContext.getCapabilities().GL13_glActiveTexture_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glActiveTexture_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglActiveTexture(texture, function_pointer); } private static native void nglActiveTexture(int texture, long function_pointer); public static void glClientActiveTexture(int texture) { - long function_pointer = GLContext.getCapabilities().GL13_glClientActiveTexture_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glClientActiveTexture_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglClientActiveTexture(texture, function_pointer); } private static native void nglClientActiveTexture(int texture, long function_pointer); public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position(), function_pointer); } public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 3, function_pointer); } public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data, data.position() << 1, function_pointer); } private static native void nglCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, Buffer data, int data_position, long function_pointer); public static void glCompressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexImage1DBO(target, level, internalformat, width, border, imageSize, data_buffer_offset, function_pointer); } private static native void nglCompressedTexImage1DBO(int target, int level, int internalformat, int width, int border, int imageSize, long data_buffer_offset, long function_pointer); public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position(), function_pointer); } public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 3, function_pointer); } public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data, data.position() << 1, function_pointer); } private static native void nglCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data, int data_position, long function_pointer); public static void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexImage2DBO(target, level, internalformat, width, height, border, imageSize, data_buffer_offset, function_pointer); } private static native void nglCompressedTexImage2DBO(int target, int level, int internalformat, int width, int height, int border, int imageSize, long data_buffer_offset, long function_pointer); public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position(), function_pointer); } public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 3, function_pointer); } public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data, data.position() << 1, function_pointer); } private static native void nglCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, Buffer data, int data_position, long function_pointer); public static void glCompressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexImage3DBO(target, level, internalformat, width, height, depth, border, imageSize, data_buffer_offset, function_pointer); } private static native void nglCompressedTexImage3DBO(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data_buffer_offset, long function_pointer); public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position(), function_pointer); } public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 3, function_pointer); } public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data, data.position() << 1, function_pointer); } private static native void nglCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, Buffer data, int data_position, long function_pointer); public static void glCompressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage1D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage1D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexSubImage1DBO(target, level, xoffset, width, format, imageSize, data_buffer_offset, function_pointer); } private static native void nglCompressedTexSubImage1DBO(int target, int level, int xoffset, int width, int format, int imageSize, long data_buffer_offset, long function_pointer); public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position(), function_pointer); } public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 3, function_pointer); } public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data, data.position() << 1, function_pointer); } private static native void nglCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data, int data_position, long function_pointer); public static void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage2D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage2D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexSubImage2DBO(target, level, xoffset, yoffset, width, height, format, imageSize, data_buffer_offset, function_pointer); } private static native void nglCompressedTexSubImage2DBO(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, long data_buffer_offset, long function_pointer); public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position(), function_pointer); } public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 3, function_pointer); } public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 2, function_pointer); } public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOdisabled(); + GLChecks.ensureUnpackPBOdisabled(caps); BufferChecks.checkDirect(data); nglCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data, data.position() << 1, function_pointer); } private static native void nglCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, Buffer data, int data_position, long function_pointer); public static void glCompressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL13_glCompressedTexSubImage3D_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glCompressedTexSubImage3D_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureUnpackPBOenabled(); + GLChecks.ensureUnpackPBOenabled(caps); nglCompressedTexSubImage3DBO(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data_buffer_offset, function_pointer); } private static native void nglCompressedTexSubImage3DBO(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data_buffer_offset, long function_pointer); public static void glGetCompressedTexImage(int target, int lod, ByteBuffer img) { - long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glGetCompressedTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(img); nglGetCompressedTexImage(target, lod, img, img.position(), function_pointer); } public static void glGetCompressedTexImage(int target, int lod, IntBuffer img) { - long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glGetCompressedTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(img); nglGetCompressedTexImage(target, lod, img, img.position() << 2, function_pointer); } public static void glGetCompressedTexImage(int target, int lod, ShortBuffer img) { - long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glGetCompressedTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOdisabled(); + GLChecks.ensurePackPBOdisabled(caps); BufferChecks.checkDirect(img); nglGetCompressedTexImage(target, lod, img, img.position() << 1, function_pointer); } private static native void nglGetCompressedTexImage(int target, int lod, Buffer img, int img_position, long function_pointer); public static void glGetCompressedTexImage(int target, int lod, long img_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL13_glGetCompressedTexImage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glGetCompressedTexImage_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensurePackPBOenabled(); + GLChecks.ensurePackPBOenabled(caps); nglGetCompressedTexImageBO(target, lod, img_buffer_offset, function_pointer); } private static native void nglGetCompressedTexImageBO(int target, int lod, long img_buffer_offset, long function_pointer); public static void glMultiTexCoord1f(int target, float s) { - long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord1f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultiTexCoord1f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord1f(target, s, function_pointer); } private static native void nglMultiTexCoord1f(int target, float s, long function_pointer); public static void glMultiTexCoord1d(int target, double s) { - long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord1d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultiTexCoord1d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord1d(target, s, function_pointer); } private static native void nglMultiTexCoord1d(int target, double s, long function_pointer); public static void glMultiTexCoord2f(int target, float s, float t) { - long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultiTexCoord2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord2f(target, s, t, function_pointer); } private static native void nglMultiTexCoord2f(int target, float s, float t, long function_pointer); public static void glMultiTexCoord2d(int target, double s, double t) { - long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultiTexCoord2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord2d(target, s, t, function_pointer); } private static native void nglMultiTexCoord2d(int target, double s, double t, long function_pointer); public static void glMultiTexCoord3f(int target, float s, float t, float r) { - long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultiTexCoord3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord3f(target, s, t, r, function_pointer); } private static native void nglMultiTexCoord3f(int target, float s, float t, float r, long function_pointer); public static void glMultiTexCoord3d(int target, double s, double t, double r) { - long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultiTexCoord3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord3d(target, s, t, r, function_pointer); } private static native void nglMultiTexCoord3d(int target, double s, double t, double r, long function_pointer); public static void glMultiTexCoord4f(int target, float s, float t, float r, float q) { - long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord4f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultiTexCoord4f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord4f(target, s, t, r, q, function_pointer); } private static native void nglMultiTexCoord4f(int target, float s, float t, float r, float q, long function_pointer); public static void glMultiTexCoord4d(int target, double s, double t, double r, double q) { - long function_pointer = GLContext.getCapabilities().GL13_glMultiTexCoord4d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultiTexCoord4d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord4d(target, s, t, r, q, function_pointer); } private static native void nglMultiTexCoord4d(int target, double s, double t, double r, double q, long function_pointer); public static void glLoadTransposeMatrix(FloatBuffer m) { - long function_pointer = GLContext.getCapabilities().GL13_glLoadTransposeMatrixf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glLoadTransposeMatrixf_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(m, 16); nglLoadTransposeMatrixf(m, m.position(), function_pointer); @@ -481,7 +532,8 @@ public final class GL13 { private static native void nglLoadTransposeMatrixf(FloatBuffer m, int m_position, long function_pointer); public static void glLoadTransposeMatrix(DoubleBuffer m) { - long function_pointer = GLContext.getCapabilities().GL13_glLoadTransposeMatrixd_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glLoadTransposeMatrixd_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(m, 16); nglLoadTransposeMatrixd(m, m.position(), function_pointer); @@ -489,7 +541,8 @@ public final class GL13 { private static native void nglLoadTransposeMatrixd(DoubleBuffer m, int m_position, long function_pointer); public static void glMultTransposeMatrix(FloatBuffer m) { - long function_pointer = GLContext.getCapabilities().GL13_glMultTransposeMatrixf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultTransposeMatrixf_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(m, 16); nglMultTransposeMatrixf(m, m.position(), function_pointer); @@ -497,7 +550,8 @@ public final class GL13 { private static native void nglMultTransposeMatrixf(FloatBuffer m, int m_position, long function_pointer); public static void glMultTransposeMatrix(DoubleBuffer m) { - long function_pointer = GLContext.getCapabilities().GL13_glMultTransposeMatrixd_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glMultTransposeMatrixd_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(m, 16); nglMultTransposeMatrixd(m, m.position(), function_pointer); @@ -505,7 +559,8 @@ public final class GL13 { private static native void nglMultTransposeMatrixd(DoubleBuffer m, int m_position, long function_pointer); public static void glSampleCoverage(float value, boolean invert) { - long function_pointer = GLContext.getCapabilities().GL13_glSampleCoverage_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL13_glSampleCoverage_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSampleCoverage(value, invert, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/GL14.java b/src/generated/org/lwjgl/opengl/GL14.java index bdae7474..c8562b6b 100644 --- a/src/generated/org/lwjgl/opengl/GL14.java +++ b/src/generated/org/lwjgl/opengl/GL14.java @@ -52,64 +52,72 @@ public final class GL14 { public static void glBlendEquation(int mode) { - long function_pointer = GLContext.getCapabilities().GL14_glBlendEquation_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glBlendEquation_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendEquation(mode, function_pointer); } private static native void nglBlendEquation(int mode, long function_pointer); public static void glBlendColor(float red, float green, float blue, float alpha) { - long function_pointer = GLContext.getCapabilities().GL14_glBlendColor_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glBlendColor_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendColor(red, green, blue, alpha, function_pointer); } private static native void nglBlendColor(float red, float green, float blue, float alpha, long function_pointer); public static void glFogCoordf(float coord) { - long function_pointer = GLContext.getCapabilities().GL14_glFogCoordf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glFogCoordf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFogCoordf(coord, function_pointer); } private static native void nglFogCoordf(float coord, long function_pointer); public static void glFogCoordd(double coord) { - long function_pointer = GLContext.getCapabilities().GL14_glFogCoordd_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glFogCoordd_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFogCoordd(coord, function_pointer); } private static native void nglFogCoordd(double coord, long function_pointer); public static void glFogCoordPointer(int stride, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL14_glFogCoordPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glFogCoordPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(data); - GLChecks.getReferences().GL14_glFogCoordPointer_data = data; + GLChecks.getReferences(caps).GL14_glFogCoordPointer_data = data; nglFogCoordPointer(GL11.GL_DOUBLE, stride, data, data.position() << 3, function_pointer); } public static void glFogCoordPointer(int stride, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL14_glFogCoordPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glFogCoordPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(data); - GLChecks.getReferences().GL14_glFogCoordPointer_data = data; + GLChecks.getReferences(caps).GL14_glFogCoordPointer_data = data; nglFogCoordPointer(GL11.GL_FLOAT, stride, data, data.position() << 2, function_pointer); } private static native void nglFogCoordPointer(int type, int stride, Buffer data, int data_position, long function_pointer); public static void glFogCoordPointer(int type, int stride, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL14_glFogCoordPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glFogCoordPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglFogCoordPointerBO(type, stride, data_buffer_offset, function_pointer); } private static native void nglFogCoordPointerBO(int type, int stride, long data_buffer_offset, long function_pointer); public static void glMultiDrawArrays(int mode, IntBuffer piFirst, IntBuffer piCount) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glMultiDrawArrays_pointer; + BufferChecks.checkFunctionAddress(function_pointer); if (piFirst.remaining() != piCount.remaining()) { throw new IllegalArgumentException("piFirst.remaining() != piCount.remaining()"); } - long function_pointer = GLContext.getCapabilities().GL14_glMultiDrawArrays_pointer; - BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(piFirst); BufferChecks.checkDirect(piCount); nglMultiDrawArrays(mode, piFirst, piFirst.position(), piCount, piCount.position(), (piFirst.remaining()), function_pointer); @@ -117,21 +125,24 @@ public final class GL14 { private static native void nglMultiDrawArrays(int mode, IntBuffer piFirst, int piFirst_position, IntBuffer piCount, int piCount_position, int primcount, long function_pointer); public static void glPointParameteri(int pname, int param) { - long function_pointer = GLContext.getCapabilities().GL14_glPointParameteri_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glPointParameteri_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPointParameteri(pname, param, function_pointer); } private static native void nglPointParameteri(int pname, int param, long function_pointer); public static void glPointParameterf(int pname, float param) { - long function_pointer = GLContext.getCapabilities().GL14_glPointParameterf_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glPointParameterf_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPointParameterf(pname, param, function_pointer); } private static native void nglPointParameterf(int pname, float param, long function_pointer); public static void glPointParameter(int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL14_glPointParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glPointParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglPointParameteriv(pname, params, params.position(), function_pointer); @@ -139,7 +150,8 @@ public final class GL14 { private static native void nglPointParameteriv(int pname, IntBuffer params, int params_position, long function_pointer); public static void glPointParameter(int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL14_glPointParameterfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glPointParameterfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglPointParameterfv(pname, params, params.position(), function_pointer); @@ -147,107 +159,122 @@ public final class GL14 { private static native void nglPointParameterfv(int pname, FloatBuffer params, int params_position, long function_pointer); public static void glSecondaryColor3b(byte red, byte green, byte blue) { - long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3b_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glSecondaryColor3b_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3b(red, green, blue, function_pointer); } private static native void nglSecondaryColor3b(byte red, byte green, byte blue, long function_pointer); public static void glSecondaryColor3f(float red, float green, float blue) { - long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glSecondaryColor3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3f(red, green, blue, function_pointer); } private static native void nglSecondaryColor3f(float red, float green, float blue, long function_pointer); public static void glSecondaryColor3d(double red, double green, double blue) { - long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glSecondaryColor3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3d(red, green, blue, function_pointer); } private static native void nglSecondaryColor3d(double red, double green, double blue, long function_pointer); public static void glSecondaryColor3ub(byte red, byte green, byte blue) { - long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColor3ub_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glSecondaryColor3ub_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3ub(red, green, blue, function_pointer); } private static native void nglSecondaryColor3ub(byte red, byte green, byte blue, long function_pointer); public static void glSecondaryColorPointer(int size, int stride, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColorPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glSecondaryColorPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(data); nglSecondaryColorPointer(size, GL11.GL_DOUBLE, stride, data, data.position() << 3, function_pointer); } public static void glSecondaryColorPointer(int size, int stride, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColorPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glSecondaryColorPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(data); nglSecondaryColorPointer(size, GL11.GL_FLOAT, stride, data, data.position() << 2, function_pointer); } public static void glSecondaryColorPointer(int size, boolean unsigned, int stride, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColorPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glSecondaryColorPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(data); nglSecondaryColorPointer(size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, stride, data, data.position(), function_pointer); } private static native void nglSecondaryColorPointer(int size, int type, int stride, Buffer data, int data_position, long function_pointer); public static void glSecondaryColorPointer(int size, int type, int stride, long data_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL14_glSecondaryColorPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glSecondaryColorPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglSecondaryColorPointerBO(size, type, stride, data_buffer_offset, function_pointer); } private static native void nglSecondaryColorPointerBO(int size, int type, int stride, long data_buffer_offset, long function_pointer); public static void glBlendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha) { - long function_pointer = GLContext.getCapabilities().GL14_glBlendFuncSeparate_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glBlendFuncSeparate_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha, function_pointer); } private static native void nglBlendFuncSeparate(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha, long function_pointer); public static void glWindowPos2f(float x, float y) { - long function_pointer = GLContext.getCapabilities().GL14_glWindowPos2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glWindowPos2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos2f(x, y, function_pointer); } private static native void nglWindowPos2f(float x, float y, long function_pointer); public static void glWindowPos2d(double x, double y) { - long function_pointer = GLContext.getCapabilities().GL14_glWindowPos2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glWindowPos2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos2d(x, y, function_pointer); } private static native void nglWindowPos2d(double x, double y, long function_pointer); public static void glWindowPos2i(int x, int y) { - long function_pointer = GLContext.getCapabilities().GL14_glWindowPos2i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glWindowPos2i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos2i(x, y, function_pointer); } private static native void nglWindowPos2i(int x, int y, long function_pointer); public static void glWindowPos3f(float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().GL14_glWindowPos3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glWindowPos3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos3f(x, y, z, function_pointer); } private static native void nglWindowPos3f(float x, float y, float z, long function_pointer); public static void glWindowPos3d(double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().GL14_glWindowPos3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glWindowPos3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos3d(x, y, z, function_pointer); } private static native void nglWindowPos3d(double x, double y, double z, long function_pointer); public static void glWindowPos3i(int x, int y, int z) { - long function_pointer = GLContext.getCapabilities().GL14_glWindowPos3i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL14_glWindowPos3i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglWindowPos3i(x, y, z, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/GL15.java b/src/generated/org/lwjgl/opengl/GL15.java index cdbe1a0d..d57b755e 100644 --- a/src/generated/org/lwjgl/opengl/GL15.java +++ b/src/generated/org/lwjgl/opengl/GL15.java @@ -60,14 +60,16 @@ public final class GL15 { public static void glBindBuffer(int target, int buffer) { - long function_pointer = GLContext.getCapabilities().GL15_glBindBuffer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBindBuffer_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindBuffer(target, buffer, function_pointer); } private static native void nglBindBuffer(int target, int buffer, long function_pointer); public static void glDeleteBuffers(IntBuffer buffers) { - long function_pointer = GLContext.getCapabilities().GL15_glDeleteBuffers_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glDeleteBuffers_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffers); nglDeleteBuffers((buffers.remaining()), buffers, buffers.position(), function_pointer); @@ -75,7 +77,8 @@ public final class GL15 { private static native void nglDeleteBuffers(int n, IntBuffer buffers, int buffers_position, long function_pointer); public static void glGenBuffers(IntBuffer buffers) { - long function_pointer = GLContext.getCapabilities().GL15_glGenBuffers_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGenBuffers_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffers); nglGenBuffers((buffers.remaining()), buffers, buffers.position(), function_pointer); @@ -83,7 +86,8 @@ public final class GL15 { private static native void nglGenBuffers(int n, IntBuffer buffers, int buffers_position, long function_pointer); public static boolean glIsBuffer(int buffer) { - long function_pointer = GLContext.getCapabilities().GL15_glIsBuffer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glIsBuffer_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsBuffer(buffer, function_pointer); return __result; @@ -91,36 +95,42 @@ public final class GL15 { private static native boolean nglIsBuffer(int buffer, long function_pointer); public static void glBufferData(int target, long size, int usage) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferData_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBufferData(target, size, null, 0, usage, function_pointer); } public static void glBufferData(int target, ByteBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferData(target, (data.remaining()), data, data.position(), usage, function_pointer); } public static void glBufferData(int target, DoubleBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferData(target, (data.remaining() << 3), data, data.position() << 3, usage, function_pointer); } public static void glBufferData(int target, FloatBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferData(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer); } public static void glBufferData(int target, IntBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferData(target, (data.remaining() << 2), data, data.position() << 2, usage, function_pointer); } public static void glBufferData(int target, ShortBuffer data, int usage) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferData(target, (data.remaining() << 1), data, data.position() << 1, usage, function_pointer); @@ -128,31 +138,36 @@ public final class GL15 { private static native void nglBufferData(int target, long size, Buffer data, int data_position, int usage, long function_pointer); public static void glBufferSubData(int target, long offset, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubData(target, offset, (data.remaining()), data, data.position(), function_pointer); } public static void glBufferSubData(int target, long offset, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubData(target, offset, (data.remaining() << 3), data, data.position() << 3, function_pointer); } public static void glBufferSubData(int target, long offset, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glBufferSubData(int target, long offset, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glBufferSubData(int target, long offset, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer); @@ -160,31 +175,36 @@ public final class GL15 { private static native void nglBufferSubData(int target, long offset, long size, Buffer data, int data_position, long function_pointer); public static void glGetBufferSubData(int target, long offset, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubData(target, offset, (data.remaining()), data, data.position(), function_pointer); } public static void glGetBufferSubData(int target, long offset, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubData(target, offset, (data.remaining() << 3), data, data.position() << 3, function_pointer); } public static void glGetBufferSubData(int target, long offset, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glGetBufferSubData(int target, long offset, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubData(target, offset, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glGetBufferSubData(int target, long offset, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().GL15_glGetBufferSubData_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetBufferSubData_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglGetBufferSubData(target, offset, (data.remaining() << 1), data, data.position() << 1, function_pointer); @@ -205,7 +225,8 @@ public final class GL15 { * @return A ByteBuffer representing the mapped buffer memory. */ public static java.nio.ByteBuffer glMapBuffer(int target, int access, int result_size, java.nio.ByteBuffer old_buffer) { - long function_pointer = GLContext.getCapabilities().GL15_glMapBuffer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glMapBuffer_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (old_buffer != null) BufferChecks.checkDirect(old_buffer); @@ -215,7 +236,8 @@ public final class GL15 { private static native java.nio.ByteBuffer nglMapBuffer(int target, int access, int result_size, java.nio.ByteBuffer old_buffer, long function_pointer); public static boolean glUnmapBuffer(int target) { - long function_pointer = GLContext.getCapabilities().GL15_glUnmapBuffer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glUnmapBuffer_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglUnmapBuffer(target, function_pointer); return __result; @@ -223,7 +245,8 @@ public final class GL15 { private static native boolean nglUnmapBuffer(int target, long function_pointer); public static void glGetBufferParameter(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL15_glGetBufferParameteriv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetBufferParameteriv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetBufferParameteriv(target, pname, params, params.position(), function_pointer); @@ -231,7 +254,8 @@ public final class GL15 { private static native void nglGetBufferParameteriv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static java.nio.ByteBuffer glGetBufferPointer(int target, int pname, int result_size) { - long function_pointer = GLContext.getCapabilities().GL15_glGetBufferPointerv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetBufferPointerv_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglGetBufferPointerv(target, pname, result_size, function_pointer); return __result; @@ -239,7 +263,8 @@ public final class GL15 { private static native java.nio.ByteBuffer nglGetBufferPointerv(int target, int pname, int result_size, long function_pointer); public static void glGenQueries(IntBuffer ids) { - long function_pointer = GLContext.getCapabilities().GL15_glGenQueries_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGenQueries_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(ids); nglGenQueries((ids.remaining()), ids, ids.position(), function_pointer); @@ -247,7 +272,8 @@ public final class GL15 { private static native void nglGenQueries(int n, IntBuffer ids, int ids_position, long function_pointer); public static void glDeleteQueries(IntBuffer ids) { - long function_pointer = GLContext.getCapabilities().GL15_glDeleteQueries_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glDeleteQueries_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(ids); nglDeleteQueries((ids.remaining()), ids, ids.position(), function_pointer); @@ -255,7 +281,8 @@ public final class GL15 { private static native void nglDeleteQueries(int n, IntBuffer ids, int ids_position, long function_pointer); public static boolean glIsQuery(int id) { - long function_pointer = GLContext.getCapabilities().GL15_glIsQuery_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glIsQuery_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsQuery(id, function_pointer); return __result; @@ -263,21 +290,24 @@ public final class GL15 { private static native boolean nglIsQuery(int id, long function_pointer); public static void glBeginQuery(int target, int id) { - long function_pointer = GLContext.getCapabilities().GL15_glBeginQuery_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glBeginQuery_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBeginQuery(target, id, function_pointer); } private static native void nglBeginQuery(int target, int id, long function_pointer); public static void glEndQuery(int target) { - long function_pointer = GLContext.getCapabilities().GL15_glEndQuery_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glEndQuery_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEndQuery(target, function_pointer); } private static native void nglEndQuery(int target, long function_pointer); public static void glGetQuery(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL15_glGetQueryiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetQueryiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetQueryiv(target, pname, params, params.position(), function_pointer); @@ -285,7 +315,8 @@ public final class GL15 { private static native void nglGetQueryiv(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetQueryObject(int id, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL15_glGetQueryObjectiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetQueryObjectiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetQueryObjectiv(id, pname, params, params.position(), function_pointer); @@ -293,7 +324,8 @@ public final class GL15 { private static native void nglGetQueryObjectiv(int id, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetQueryObjectu(int id, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL15_glGetQueryObjectuiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL15_glGetQueryObjectuiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetQueryObjectuiv(id, pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/GL20.java b/src/generated/org/lwjgl/opengl/GL20.java index 29daec31..ba375379 100644 --- a/src/generated/org/lwjgl/opengl/GL20.java +++ b/src/generated/org/lwjgl/opengl/GL20.java @@ -173,7 +173,8 @@ public final class GL20 { * @param string */ public static void glShaderSource(int shader, ByteBuffer string) { - long function_pointer = GLContext.getCapabilities().GL20_glShaderSource_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glShaderSource_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(string); nglShaderSource(shader, 1, string, string.position(), (string.remaining()), function_pointer); @@ -181,7 +182,8 @@ public final class GL20 { private static native void nglShaderSource(int shader, int count, ByteBuffer string, int string_position, int length, long function_pointer); public static int glCreateShader(int type) { - long function_pointer = GLContext.getCapabilities().GL20_glCreateShader_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glCreateShader_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglCreateShader(type, function_pointer); return __result; @@ -189,7 +191,8 @@ public final class GL20 { private static native int nglCreateShader(int type, long function_pointer); public static boolean glIsShader(int shader) { - long function_pointer = GLContext.getCapabilities().GL20_glIsShader_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glIsShader_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsShader(shader, function_pointer); return __result; @@ -197,21 +200,24 @@ public final class GL20 { private static native boolean nglIsShader(int shader, long function_pointer); public static void glCompileShader(int shader) { - long function_pointer = GLContext.getCapabilities().GL20_glCompileShader_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glCompileShader_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCompileShader(shader, function_pointer); } private static native void nglCompileShader(int shader, long function_pointer); public static void glDeleteShader(int shader) { - long function_pointer = GLContext.getCapabilities().GL20_glDeleteShader_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glDeleteShader_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDeleteShader(shader, function_pointer); } private static native void nglDeleteShader(int shader, long function_pointer); public static int glCreateProgram() { - long function_pointer = GLContext.getCapabilities().GL20_glCreateProgram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glCreateProgram_pointer; BufferChecks.checkFunctionAddress(function_pointer); int __result = nglCreateProgram(function_pointer); return __result; @@ -219,7 +225,8 @@ public final class GL20 { private static native int nglCreateProgram(long function_pointer); public static boolean glIsProgram(int program) { - long function_pointer = GLContext.getCapabilities().GL20_glIsProgram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glIsProgram_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsProgram(program, function_pointer); return __result; @@ -227,105 +234,120 @@ public final class GL20 { private static native boolean nglIsProgram(int program, long function_pointer); public static void glAttachShader(int program, int shader) { - long function_pointer = GLContext.getCapabilities().GL20_glAttachShader_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glAttachShader_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglAttachShader(program, shader, function_pointer); } private static native void nglAttachShader(int program, int shader, long function_pointer); public static void glDetachShader(int program, int shader) { - long function_pointer = GLContext.getCapabilities().GL20_glDetachShader_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glDetachShader_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDetachShader(program, shader, function_pointer); } private static native void nglDetachShader(int program, int shader, long function_pointer); public static void glLinkProgram(int program) { - long function_pointer = GLContext.getCapabilities().GL20_glLinkProgram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glLinkProgram_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglLinkProgram(program, function_pointer); } private static native void nglLinkProgram(int program, long function_pointer); public static void glUseProgram(int program) { - long function_pointer = GLContext.getCapabilities().GL20_glUseProgram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUseProgram_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUseProgram(program, function_pointer); } private static native void nglUseProgram(int program, long function_pointer); public static void glValidateProgram(int program) { - long function_pointer = GLContext.getCapabilities().GL20_glValidateProgram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glValidateProgram_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglValidateProgram(program, function_pointer); } private static native void nglValidateProgram(int program, long function_pointer); public static void glDeleteProgram(int program) { - long function_pointer = GLContext.getCapabilities().GL20_glDeleteProgram_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glDeleteProgram_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDeleteProgram(program, function_pointer); } private static native void nglDeleteProgram(int program, long function_pointer); public static void glUniform1f(int location, float v0) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform1f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform1f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform1f(location, v0, function_pointer); } private static native void nglUniform1f(int location, float v0, long function_pointer); public static void glUniform2f(int location, float v0, float v1) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform2f(location, v0, v1, function_pointer); } private static native void nglUniform2f(int location, float v0, float v1, long function_pointer); public static void glUniform3f(int location, float v0, float v1, float v2) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform3f(location, v0, v1, v2, function_pointer); } private static native void nglUniform3f(int location, float v0, float v1, float v2, long function_pointer); public static void glUniform4f(int location, float v0, float v1, float v2, float v3) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform4f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform4f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform4f(location, v0, v1, v2, v3, function_pointer); } private static native void nglUniform4f(int location, float v0, float v1, float v2, float v3, long function_pointer); public static void glUniform1i(int location, int v0) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform1i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform1i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform1i(location, v0, function_pointer); } private static native void nglUniform1i(int location, int v0, long function_pointer); public static void glUniform2i(int location, int v0, int v1) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform2i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform2i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform2i(location, v0, v1, function_pointer); } private static native void nglUniform2i(int location, int v0, int v1, long function_pointer); public static void glUniform3i(int location, int v0, int v1, int v2) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform3i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform3i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform3i(location, v0, v1, v2, function_pointer); } private static native void nglUniform3i(int location, int v0, int v1, int v2, long function_pointer); public static void glUniform4i(int location, int v0, int v1, int v2, int v3) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform4i_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform4i_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglUniform4i(location, v0, v1, v2, v3, function_pointer); } private static native void nglUniform4i(int location, int v0, int v1, int v2, int v3, long function_pointer); public static void glUniform1(int location, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform1fv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform1fv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform1fv(location, (values.remaining()), values, values.position(), function_pointer); @@ -333,7 +355,8 @@ public final class GL20 { private static native void nglUniform1fv(int location, int count, FloatBuffer values, int values_position, long function_pointer); public static void glUniform2(int location, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform2fv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform2fv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform2fv(location, (values.remaining()) >> 1, values, values.position(), function_pointer); @@ -341,7 +364,8 @@ public final class GL20 { private static native void nglUniform2fv(int location, int count, FloatBuffer values, int values_position, long function_pointer); public static void glUniform3(int location, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform3fv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform3fv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform3fv(location, (values.remaining()) / 3, values, values.position(), function_pointer); @@ -349,7 +373,8 @@ public final class GL20 { private static native void nglUniform3fv(int location, int count, FloatBuffer values, int values_position, long function_pointer); public static void glUniform4(int location, FloatBuffer values) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform4fv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform4fv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform4fv(location, (values.remaining()) >> 2, values, values.position(), function_pointer); @@ -357,7 +382,8 @@ public final class GL20 { private static native void nglUniform4fv(int location, int count, FloatBuffer values, int values_position, long function_pointer); public static void glUniform1(int location, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform1iv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform1iv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform1iv(location, (values.remaining()), values, values.position(), function_pointer); @@ -365,7 +391,8 @@ public final class GL20 { private static native void nglUniform1iv(int location, int count, IntBuffer values, int values_position, long function_pointer); public static void glUniform2(int location, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform2iv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform2iv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform2iv(location, (values.remaining()) >> 1, values, values.position(), function_pointer); @@ -373,7 +400,8 @@ public final class GL20 { private static native void nglUniform2iv(int location, int count, IntBuffer values, int values_position, long function_pointer); public static void glUniform3(int location, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform3iv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform3iv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform3iv(location, (values.remaining()) / 3, values, values.position(), function_pointer); @@ -381,7 +409,8 @@ public final class GL20 { private static native void nglUniform3iv(int location, int count, IntBuffer values, int values_position, long function_pointer); public static void glUniform4(int location, IntBuffer values) { - long function_pointer = GLContext.getCapabilities().GL20_glUniform4iv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniform4iv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(values); nglUniform4iv(location, (values.remaining()) >> 2, values, values.position(), function_pointer); @@ -389,7 +418,8 @@ public final class GL20 { private static native void nglUniform4iv(int location, int count, IntBuffer values, int values_position, long function_pointer); public static void glUniformMatrix2(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL20_glUniformMatrix2fv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniformMatrix2fv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix2fv(location, (matrices.remaining()) >> 2, transpose, matrices, matrices.position(), function_pointer); @@ -397,7 +427,8 @@ public final class GL20 { private static native void nglUniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); public static void glUniformMatrix3(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL20_glUniformMatrix3fv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniformMatrix3fv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix3fv(location, (matrices.remaining()) / (3 * 3), transpose, matrices, matrices.position(), function_pointer); @@ -405,7 +436,8 @@ public final class GL20 { private static native void nglUniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); public static void glUniformMatrix4(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL20_glUniformMatrix4fv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glUniformMatrix4fv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(matrices); nglUniformMatrix4fv(location, (matrices.remaining()) >> 4, transpose, matrices, matrices.position(), function_pointer); @@ -413,7 +445,8 @@ public final class GL20 { private static native void nglUniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); public static void glGetShader(int shader, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL20_glGetShaderiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetShaderiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetShaderiv(shader, pname, params, params.position(), function_pointer); @@ -421,7 +454,8 @@ public final class GL20 { private static native void nglGetShaderiv(int shader, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetProgram(int program, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL20_glGetProgramiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetProgramiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetProgramiv(program, pname, params, params.position(), function_pointer); @@ -429,7 +463,8 @@ public final class GL20 { private static native void nglGetProgramiv(int program, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetShaderInfoLog(int shader, IntBuffer length, ByteBuffer infoLog) { - long function_pointer = GLContext.getCapabilities().GL20_glGetShaderInfoLog_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetShaderInfoLog_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); @@ -439,7 +474,8 @@ public final class GL20 { private static native void nglGetShaderInfoLog(int shader, int maxLength, IntBuffer length, int length_position, ByteBuffer infoLog, int infoLog_position, long function_pointer); public static void glGetProgramInfoLog(int program, IntBuffer length, ByteBuffer infoLog) { - long function_pointer = GLContext.getCapabilities().GL20_glGetProgramInfoLog_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetProgramInfoLog_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); @@ -449,7 +485,8 @@ public final class GL20 { private static native void nglGetProgramInfoLog(int program, int maxLength, IntBuffer length, int length_position, ByteBuffer infoLog, int infoLog_position, long function_pointer); public static void glGetAttachedShaders(int program, IntBuffer count, IntBuffer shaders) { - long function_pointer = GLContext.getCapabilities().GL20_glGetAttachedShaders_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetAttachedShaders_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (count != null) BufferChecks.checkBuffer(count, 1); @@ -466,7 +503,8 @@ public final class GL20 { * @return */ public static int glGetUniformLocation(int program, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().GL20_glGetUniformLocation_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetUniformLocation_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(name, 1); BufferChecks.checkNullTerminated(name); @@ -476,7 +514,8 @@ public final class GL20 { private static native int nglGetUniformLocation(int program, ByteBuffer name, int name_position, long function_pointer); public static void glGetActiveUniform(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().GL20_glGetActiveUniform_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetActiveUniform_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); @@ -488,7 +527,8 @@ public final class GL20 { private static native void nglGetActiveUniform(int program, int index, int maxLength, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer); public static void glGetUniform(int program, int location, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL20_glGetUniformfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetUniformfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetUniformfv(program, location, params, params.position(), function_pointer); @@ -496,7 +536,8 @@ public final class GL20 { private static native void nglGetUniformfv(int program, int location, FloatBuffer params, int params_position, long function_pointer); public static void glGetUniform(int program, int location, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL20_glGetUniformiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetUniformiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetUniformiv(program, location, params, params.position(), function_pointer); @@ -504,7 +545,8 @@ public final class GL20 { private static native void nglGetUniformiv(int program, int location, IntBuffer params, int params_position, long function_pointer); public static void glGetShaderSource(int shader, IntBuffer length, ByteBuffer source) { - long function_pointer = GLContext.getCapabilities().GL20_glGetShaderSource_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetShaderSource_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); @@ -514,161 +556,183 @@ public final class GL20 { private static native void nglGetShaderSource(int shader, int maxLength, IntBuffer length, int length_position, ByteBuffer source, int source_position, long function_pointer); public static void glVertexAttrib1s(int index, short x) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib1s_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib1s_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1s(index, x, function_pointer); } private static native void nglVertexAttrib1s(int index, short x, long function_pointer); public static void glVertexAttrib1f(int index, float x) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib1f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib1f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1f(index, x, function_pointer); } private static native void nglVertexAttrib1f(int index, float x, long function_pointer); public static void glVertexAttrib1d(int index, double x) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib1d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib1d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1d(index, x, function_pointer); } private static native void nglVertexAttrib1d(int index, double x, long function_pointer); public static void glVertexAttrib2s(int index, short x, short y) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib2s_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib2s_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2s(index, x, y, function_pointer); } private static native void nglVertexAttrib2s(int index, short x, short y, long function_pointer); public static void glVertexAttrib2f(int index, float x, float y) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib2f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib2f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2f(index, x, y, function_pointer); } private static native void nglVertexAttrib2f(int index, float x, float y, long function_pointer); public static void glVertexAttrib2d(int index, double x, double y) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib2d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib2d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2d(index, x, y, function_pointer); } private static native void nglVertexAttrib2d(int index, double x, double y, long function_pointer); public static void glVertexAttrib3s(int index, short x, short y, short z) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib3s_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib3s_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3s(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3s(int index, short x, short y, short z, long function_pointer); public static void glVertexAttrib3f(int index, float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib3f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib3f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3f(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3f(int index, float x, float y, float z, long function_pointer); public static void glVertexAttrib3d(int index, double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib3d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib3d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3d(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3d(int index, double x, double y, double z, long function_pointer); public static void glVertexAttrib4s(int index, short x, short y, short z, short w) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib4s_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib4s_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4s(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4s(int index, short x, short y, short z, short w, long function_pointer); public static void glVertexAttrib4f(int index, float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib4f_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib4f_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4f(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4f(int index, float x, float y, float z, float w, long function_pointer); public static void glVertexAttrib4d(int index, double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib4d_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib4d_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4d(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4d(int index, double x, double y, double z, double w, long function_pointer); public static void glVertexAttrib4Nub(int index, byte x, byte y, byte z, byte w) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttrib4Nub_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttrib4Nub_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4Nub(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4Nub(int index, byte x, byte y, byte z, byte w, long function_pointer); public static void glVertexAttribPointer(int index, int size, boolean normalized, int stride, DoubleBuffer buffer) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttribPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().GL20_glVertexAttribPointer_buffer = buffer; + GLChecks.getReferences(caps).GL20_glVertexAttribPointer_buffer = buffer; nglVertexAttribPointer(index, size, GL11.GL_DOUBLE, normalized, stride, buffer, buffer.position() << 3, function_pointer); } public static void glVertexAttribPointer(int index, int size, boolean normalized, int stride, FloatBuffer buffer) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttribPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().GL20_glVertexAttribPointer_buffer = buffer; + GLChecks.getReferences(caps).GL20_glVertexAttribPointer_buffer = buffer; nglVertexAttribPointer(index, size, GL11.GL_FLOAT, normalized, stride, buffer, buffer.position() << 2, function_pointer); } public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttribPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().GL20_glVertexAttribPointer_buffer = buffer; + GLChecks.getReferences(caps).GL20_glVertexAttribPointer_buffer = buffer; nglVertexAttribPointer(index, size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, normalized, stride, buffer, buffer.position(), function_pointer); } public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, IntBuffer buffer) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttribPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().GL20_glVertexAttribPointer_buffer = buffer; + GLChecks.getReferences(caps).GL20_glVertexAttribPointer_buffer = buffer; nglVertexAttribPointer(index, size, unsigned ? GL11.GL_UNSIGNED_INT : GL11.GL_INT, normalized, stride, buffer, buffer.position() << 2, function_pointer); } public static void glVertexAttribPointer(int index, int size, boolean unsigned, boolean normalized, int stride, ShortBuffer buffer) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttribPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().GL20_glVertexAttribPointer_buffer = buffer; + GLChecks.getReferences(caps).GL20_glVertexAttribPointer_buffer = buffer; nglVertexAttribPointer(index, size, unsigned ? GL11.GL_UNSIGNED_SHORT : GL11.GL_SHORT, normalized, stride, buffer, buffer.position() << 1, function_pointer); } private static native void nglVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, Buffer buffer, int buffer_position, long function_pointer); public static void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, long buffer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().GL20_glVertexAttribPointer_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glVertexAttribPointer_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglVertexAttribPointerBO(index, size, type, normalized, stride, buffer_buffer_offset, function_pointer); } private static native void nglVertexAttribPointerBO(int index, int size, int type, boolean normalized, int stride, long buffer_buffer_offset, long function_pointer); public static void glEnableVertexAttribArray(int index) { - long function_pointer = GLContext.getCapabilities().GL20_glEnableVertexAttribArray_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glEnableVertexAttribArray_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEnableVertexAttribArray(index, function_pointer); } private static native void nglEnableVertexAttribArray(int index, long function_pointer); public static void glDisableVertexAttribArray(int index) { - long function_pointer = GLContext.getCapabilities().GL20_glDisableVertexAttribArray_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glDisableVertexAttribArray_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglDisableVertexAttribArray(index, function_pointer); } private static native void nglDisableVertexAttribArray(int index, long function_pointer); public static void glGetVertexAttrib(int index, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().GL20_glGetVertexAttribfv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetVertexAttribfv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribfv(index, pname, params, params.position(), function_pointer); @@ -676,7 +740,8 @@ public final class GL20 { private static native void nglGetVertexAttribfv(int index, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetVertexAttrib(int index, int pname, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().GL20_glGetVertexAttribdv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetVertexAttribdv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribdv(index, pname, params, params.position(), function_pointer); @@ -684,7 +749,8 @@ public final class GL20 { private static native void nglGetVertexAttribdv(int index, int pname, DoubleBuffer params, int params_position, long function_pointer); public static void glGetVertexAttrib(int index, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().GL20_glGetVertexAttribiv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetVertexAttribiv_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribiv(index, pname, params, params.position(), function_pointer); @@ -692,7 +758,8 @@ public final class GL20 { private static native void nglGetVertexAttribiv(int index, int pname, IntBuffer params, int params_position, long function_pointer); public static java.nio.ByteBuffer glGetVertexAttribPointer(int index, int pname, int result_size) { - long function_pointer = GLContext.getCapabilities().GL20_glGetVertexAttribPointerv_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetVertexAttribPointerv_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglGetVertexAttribPointerv(index, pname, result_size, function_pointer); return __result; @@ -700,7 +767,8 @@ public final class GL20 { private static native java.nio.ByteBuffer nglGetVertexAttribPointerv(int index, int pname, int result_size, long function_pointer); public static void glBindAttribLocation(int program, int index, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().GL20_glBindAttribLocation_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glBindAttribLocation_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); BufferChecks.checkNullTerminated(name); @@ -709,7 +777,8 @@ public final class GL20 { private static native void nglBindAttribLocation(int program, int index, ByteBuffer name, int name_position, long function_pointer); public static void glGetActiveAttrib(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().GL20_glGetActiveAttrib_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetActiveAttrib_pointer; BufferChecks.checkFunctionAddress(function_pointer); if (length != null) BufferChecks.checkBuffer(length, 1); @@ -721,7 +790,8 @@ public final class GL20 { private static native void nglGetActiveAttrib(int program, int index, int maxLength, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer); public static int glGetAttribLocation(int program, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().GL20_glGetAttribLocation_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glGetAttribLocation_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); BufferChecks.checkNullTerminated(name); @@ -731,7 +801,8 @@ public final class GL20 { private static native int nglGetAttribLocation(int program, ByteBuffer name, int name_position, long function_pointer); public static void glDrawBuffers(IntBuffer buffers) { - long function_pointer = GLContext.getCapabilities().GL20_glDrawBuffers_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glDrawBuffers_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(buffers); nglDrawBuffers((buffers.remaining()), buffers, buffers.position(), function_pointer); @@ -739,28 +810,32 @@ public final class GL20 { private static native void nglDrawBuffers(int size, IntBuffer buffers, int buffers_position, long function_pointer); public static void glStencilOpSeparate(int face, int sfail, int dpfail, int dppass) { - long function_pointer = GLContext.getCapabilities().GL20_glStencilOpSeparate_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glStencilOpSeparate_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilOpSeparate(face, sfail, dpfail, dppass, function_pointer); } private static native void nglStencilOpSeparate(int face, int sfail, int dpfail, int dppass, long function_pointer); public static void glStencilFuncSeparate(int face, int func, int ref, int mask) { - long function_pointer = GLContext.getCapabilities().GL20_glStencilFuncSeparate_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glStencilFuncSeparate_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilFuncSeparate(face, func, ref, mask, function_pointer); } private static native void nglStencilFuncSeparate(int face, int func, int ref, int mask, long function_pointer); public static void glStencilMaskSeparate(int face, int mask) { - long function_pointer = GLContext.getCapabilities().GL20_glStencilMaskSeparate_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glStencilMaskSeparate_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglStencilMaskSeparate(face, mask, function_pointer); } private static native void nglStencilMaskSeparate(int face, int mask, long function_pointer); public static void glBlendEquationSeparate(int modeRGB, int modeAlpha) { - long function_pointer = GLContext.getCapabilities().GL20_glBlendEquationSeparate_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL20_glBlendEquationSeparate_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBlendEquationSeparate(modeRGB, modeAlpha, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/GL21.java b/src/generated/org/lwjgl/opengl/GL21.java index fb63f269..10291850 100644 --- a/src/generated/org/lwjgl/opengl/GL21.java +++ b/src/generated/org/lwjgl/opengl/GL21.java @@ -1,95 +1,101 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class GL21 { - /** - * Accepted by the <target> parameters of BindBuffer, BufferData, - * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, - * GetBufferParameteriv, and GetBufferPointerv: - */ - public static final int GL_PIXEL_PACK_BUFFER = 0x88eb; - public static final int GL_PIXEL_UNPACK_BUFFER = 0x88ec; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, - * GetFloatv, and GetDoublev: - */ - public static final int GL_PIXEL_PACK_BUFFER_BINDING = 0x88ed; - public static final int GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88ef; - /** - * Accepted by the <internalformat> parameter of TexImage1D, TexImage2D, - * TexImage3D, CopyTexImage1D, CopyTexImage2D. - */ - public static final int GL_SRGB = 0x8c40; - public static final int GL_SRGB8 = 0x8c41; - public static final int GL_SRGB_ALPHA = 0x8c42; - public static final int GL_SRGB8_ALPHA8 = 0x8c43; - public static final int GL_SLUMINANCE_ALPHA = 0x8c44; - public static final int GL_SLUMINANCE8_ALPHA8 = 0x8c45; - public static final int GL_SLUMINANCE = 0x8c46; - public static final int GL_SLUMINANCE8 = 0x8c47; - public static final int GL_COMPRESSED_SRGB = 0x8c48; - public static final int GL_COMPRESSED_SRGB_ALPHA = 0x8c49; - public static final int GL_COMPRESSED_SLUMINANCE = 0x8c4a; - public static final int GL_COMPRESSED_SLUMINANCE_ALPHA = 0x8c4b; - /** - * Accepted by the <pname> parameter of GetIntegerv and GetFloatv. - */ - public static final int GL_CURRENT_RASTER_SECONDARY_COLOR = 0x845f; - - private GL21() { - } - - - public static void glUniformMatrix2x3(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL21_glUniformMatrix2x3fv_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(matrices); - nglUniformMatrix2x3fv(location, (matrices.remaining()) / (2 * 3), transpose, matrices, matrices.position(), function_pointer); - } - private static native void nglUniformMatrix2x3fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); - - public static void glUniformMatrix3x2(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL21_glUniformMatrix3x2fv_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(matrices); - nglUniformMatrix3x2fv(location, (matrices.remaining()) / (3 * 2), transpose, matrices, matrices.position(), function_pointer); - } - private static native void nglUniformMatrix3x2fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); - - public static void glUniformMatrix2x4(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL21_glUniformMatrix2x4fv_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(matrices); - nglUniformMatrix2x4fv(location, (matrices.remaining()) >> 3, transpose, matrices, matrices.position(), function_pointer); - } - private static native void nglUniformMatrix2x4fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); - - public static void glUniformMatrix4x2(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL21_glUniformMatrix4x2fv_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(matrices); - nglUniformMatrix4x2fv(location, (matrices.remaining()) >> 3, transpose, matrices, matrices.position(), function_pointer); - } - private static native void nglUniformMatrix4x2fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); - - public static void glUniformMatrix3x4(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL21_glUniformMatrix3x4fv_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(matrices); - nglUniformMatrix3x4fv(location, (matrices.remaining()) / (3 * 4), transpose, matrices, matrices.position(), function_pointer); - } - private static native void nglUniformMatrix3x4fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); - - public static void glUniformMatrix4x3(int location, boolean transpose, FloatBuffer matrices) { - long function_pointer = GLContext.getCapabilities().GL21_glUniformMatrix4x3fv_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(matrices); - nglUniformMatrix4x3fv(location, (matrices.remaining()) / (4 * 3), transpose, matrices, matrices.position(), function_pointer); - } - private static native void nglUniformMatrix4x3fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class GL21 { + /** + * Accepted by the <target> parameters of BindBuffer, BufferData, + * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, + * GetBufferParameteriv, and GetBufferPointerv: + */ + public static final int GL_PIXEL_PACK_BUFFER = 0x88eb; + public static final int GL_PIXEL_UNPACK_BUFFER = 0x88ec; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, + * GetFloatv, and GetDoublev: + */ + public static final int GL_PIXEL_PACK_BUFFER_BINDING = 0x88ed; + public static final int GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88ef; + /** + * Accepted by the <internalformat> parameter of TexImage1D, TexImage2D, + * TexImage3D, CopyTexImage1D, CopyTexImage2D. + */ + public static final int GL_SRGB = 0x8c40; + public static final int GL_SRGB8 = 0x8c41; + public static final int GL_SRGB_ALPHA = 0x8c42; + public static final int GL_SRGB8_ALPHA8 = 0x8c43; + public static final int GL_SLUMINANCE_ALPHA = 0x8c44; + public static final int GL_SLUMINANCE8_ALPHA8 = 0x8c45; + public static final int GL_SLUMINANCE = 0x8c46; + public static final int GL_SLUMINANCE8 = 0x8c47; + public static final int GL_COMPRESSED_SRGB = 0x8c48; + public static final int GL_COMPRESSED_SRGB_ALPHA = 0x8c49; + public static final int GL_COMPRESSED_SLUMINANCE = 0x8c4a; + public static final int GL_COMPRESSED_SLUMINANCE_ALPHA = 0x8c4b; + /** + * Accepted by the <pname> parameter of GetIntegerv and GetFloatv. + */ + public static final int GL_CURRENT_RASTER_SECONDARY_COLOR = 0x845f; + + private GL21() { + } + + + public static void glUniformMatrix2x3(int location, boolean transpose, FloatBuffer matrices) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL21_glUniformMatrix2x3fv_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(matrices); + nglUniformMatrix2x3fv(location, (matrices.remaining()) / (2 * 3), transpose, matrices, matrices.position(), function_pointer); + } + private static native void nglUniformMatrix2x3fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); + + public static void glUniformMatrix3x2(int location, boolean transpose, FloatBuffer matrices) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL21_glUniformMatrix3x2fv_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(matrices); + nglUniformMatrix3x2fv(location, (matrices.remaining()) / (3 * 2), transpose, matrices, matrices.position(), function_pointer); + } + private static native void nglUniformMatrix3x2fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); + + public static void glUniformMatrix2x4(int location, boolean transpose, FloatBuffer matrices) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL21_glUniformMatrix2x4fv_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(matrices); + nglUniformMatrix2x4fv(location, (matrices.remaining()) >> 3, transpose, matrices, matrices.position(), function_pointer); + } + private static native void nglUniformMatrix2x4fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); + + public static void glUniformMatrix4x2(int location, boolean transpose, FloatBuffer matrices) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL21_glUniformMatrix4x2fv_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(matrices); + nglUniformMatrix4x2fv(location, (matrices.remaining()) >> 3, transpose, matrices, matrices.position(), function_pointer); + } + private static native void nglUniformMatrix4x2fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); + + public static void glUniformMatrix3x4(int location, boolean transpose, FloatBuffer matrices) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL21_glUniformMatrix3x4fv_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(matrices); + nglUniformMatrix3x4fv(location, (matrices.remaining()) / (3 * 4), transpose, matrices, matrices.position(), function_pointer); + } + private static native void nglUniformMatrix3x4fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); + + public static void glUniformMatrix4x3(int location, boolean transpose, FloatBuffer matrices) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.GL21_glUniformMatrix4x3fv_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(matrices); + nglUniformMatrix4x3fv(location, (matrices.remaining()) / (4 * 3), transpose, matrices, matrices.position(), function_pointer); + } + private static native void nglUniformMatrix4x3fv(int location, int count, boolean transpose, FloatBuffer matrices, int matrices_position, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/NVDepthBufferFloat.java b/src/generated/org/lwjgl/opengl/NVDepthBufferFloat.java index 29afeeca..56e74fdd 100644 --- a/src/generated/org/lwjgl/opengl/NVDepthBufferFloat.java +++ b/src/generated/org/lwjgl/opengl/NVDepthBufferFloat.java @@ -1,54 +1,57 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class NVDepthBufferFloat { - /** - * Accepted by the <internalformat> parameter of TexImage1D, TexImage2D, - * TexImage3D, CopyTexImage1D, CopyTexImage2D, and RenderbufferStorageEXT, - * and returned in the <data> parameter of GetTexLevelParameter and - * GetRenderbufferParameterivEXT: - */ - public static final int GL_DEPTH_COMPONENT32F_NV = 0x8dab; - public static final int GL_DEPTH32F_STENCIL8_NV = 0x8dac; - /** - * Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D, - * TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and - * GetTexImage: - */ - public static final int GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8dad; - /** - * Accepted by the <pname> parameters of GetBooleanv, GetIntegerv, - * GetFloatv, and GetDoublev: - */ - public static final int GL_DEPTH_BUFFER_FLOAT_MODE_NV = 0x8daf; - - private NVDepthBufferFloat() { - } - - - public static void glDepthRangedNV(double n, double f) { - long function_pointer = GLContext.getCapabilities().NV_depth_buffer_float_glDepthRangedNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglDepthRangedNV(n, f, function_pointer); - } - private static native void nglDepthRangedNV(double n, double f, long function_pointer); - - public static void glClearDepthdNV(double d) { - long function_pointer = GLContext.getCapabilities().NV_depth_buffer_float_glClearDepthdNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglClearDepthdNV(d, function_pointer); - } - private static native void nglClearDepthdNV(double d, long function_pointer); - - public static void glDepthBoundsdNV(double zmin, double zmax) { - long function_pointer = GLContext.getCapabilities().NV_depth_buffer_float_glDepthBoundsdNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglDepthBoundsdNV(zmin, zmax, function_pointer); - } - private static native void nglDepthBoundsdNV(double zmin, double zmax, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class NVDepthBufferFloat { + /** + * Accepted by the <internalformat> parameter of TexImage1D, TexImage2D, + * TexImage3D, CopyTexImage1D, CopyTexImage2D, and RenderbufferStorageEXT, + * and returned in the <data> parameter of GetTexLevelParameter and + * GetRenderbufferParameterivEXT: + */ + public static final int GL_DEPTH_COMPONENT32F_NV = 0x8dab; + public static final int GL_DEPTH32F_STENCIL8_NV = 0x8dac; + /** + * Accepted by the <type> parameter of DrawPixels, ReadPixels, TexImage1D, + * TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and + * GetTexImage: + */ + public static final int GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8dad; + /** + * Accepted by the <pname> parameters of GetBooleanv, GetIntegerv, + * GetFloatv, and GetDoublev: + */ + public static final int GL_DEPTH_BUFFER_FLOAT_MODE_NV = 0x8daf; + + private NVDepthBufferFloat() { + } + + + public static void glDepthRangedNV(double n, double f) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_depth_buffer_float_glDepthRangedNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglDepthRangedNV(n, f, function_pointer); + } + private static native void nglDepthRangedNV(double n, double f, long function_pointer); + + public static void glClearDepthdNV(double d) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_depth_buffer_float_glClearDepthdNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglClearDepthdNV(d, function_pointer); + } + private static native void nglClearDepthdNV(double d, long function_pointer); + + public static void glDepthBoundsdNV(double zmin, double zmax) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_depth_buffer_float_glDepthBoundsdNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglDepthBoundsdNV(zmin, zmax, function_pointer); + } + private static native void nglDepthBoundsdNV(double zmin, double zmax, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/NVEvaluators.java b/src/generated/org/lwjgl/opengl/NVEvaluators.java index df5c1747..d876e206 100644 --- a/src/generated/org/lwjgl/opengl/NVEvaluators.java +++ b/src/generated/org/lwjgl/opengl/NVEvaluators.java @@ -37,7 +37,8 @@ public final class NVEvaluators { public static void glGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, FloatBuffer pPoints) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapControlPointsNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glGetMapControlPointsNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPoints); nglGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints, pPoints.position() << 2, function_pointer); @@ -45,7 +46,8 @@ public final class NVEvaluators { private static native void nglGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, Buffer pPoints, int pPoints_position, long function_pointer); public static void glMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, FloatBuffer pPoints) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapControlPointsNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glMapControlPointsNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPoints); nglMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints, pPoints.position() << 2, function_pointer); @@ -53,7 +55,8 @@ public final class NVEvaluators { private static native void nglMapControlPointsNV(int target, int index, int type, int ustride, int vstride, int uorder, int vorder, boolean packed, Buffer pPoints, int pPoints_position, long function_pointer); public static void glMapParameterNV(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glMapParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglMapParameterfvNV(target, pname, params, params.position(), function_pointer); @@ -61,7 +64,8 @@ public final class NVEvaluators { private static native void nglMapParameterfvNV(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glMapParameterNV(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glMapParameterivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glMapParameterivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglMapParameterivNV(target, pname, params, params.position(), function_pointer); @@ -69,7 +73,8 @@ public final class NVEvaluators { private static native void nglMapParameterivNV(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetMapParameterNV(int target, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glGetMapParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetMapParameterfvNV(target, pname, params, params.position(), function_pointer); @@ -77,7 +82,8 @@ public final class NVEvaluators { private static native void nglGetMapParameterfvNV(int target, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetMapParameterNV(int target, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapParameterivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glGetMapParameterivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetMapParameterivNV(target, pname, params, params.position(), function_pointer); @@ -85,7 +91,8 @@ public final class NVEvaluators { private static native void nglGetMapParameterivNV(int target, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetMapAttribParameterNV(int target, int index, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapAttribParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glGetMapAttribParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetMapAttribParameterfvNV(target, index, pname, params, params.position(), function_pointer); @@ -93,7 +100,8 @@ public final class NVEvaluators { private static native void nglGetMapAttribParameterfvNV(int target, int index, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetMapAttribParameterNV(int target, int index, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glGetMapAttribParameterivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glGetMapAttribParameterivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetMapAttribParameterivNV(target, index, pname, params, params.position(), function_pointer); @@ -101,7 +109,8 @@ public final class NVEvaluators { private static native void nglGetMapAttribParameterivNV(int target, int index, int pname, IntBuffer params, int params_position, long function_pointer); public static void glEvalMapsNV(int target, int mode) { - long function_pointer = GLContext.getCapabilities().NV_evaluators_glEvalMapsNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_evaluators_glEvalMapsNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEvalMapsNV(target, mode, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/NVFence.java b/src/generated/org/lwjgl/opengl/NVFence.java index b770ecf2..adf8ccdb 100644 --- a/src/generated/org/lwjgl/opengl/NVFence.java +++ b/src/generated/org/lwjgl/opengl/NVFence.java @@ -16,7 +16,8 @@ public final class NVFence { public static void glGenFencesNV(IntBuffer piFences) { - long function_pointer = GLContext.getCapabilities().NV_fence_glGenFencesNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fence_glGenFencesNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(piFences); nglGenFencesNV((piFences.remaining()), piFences, piFences.position(), function_pointer); @@ -24,7 +25,8 @@ public final class NVFence { private static native void nglGenFencesNV(int n, IntBuffer piFences, int piFences_position, long function_pointer); public static void glDeleteFencesNV(IntBuffer piFences) { - long function_pointer = GLContext.getCapabilities().NV_fence_glDeleteFencesNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fence_glDeleteFencesNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(piFences); nglDeleteFencesNV((piFences.remaining()), piFences, piFences.position(), function_pointer); @@ -32,14 +34,16 @@ public final class NVFence { private static native void nglDeleteFencesNV(int n, IntBuffer piFences, int piFences_position, long function_pointer); public static void glSetFenceNV(int fence, int condition) { - long function_pointer = GLContext.getCapabilities().NV_fence_glSetFenceNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fence_glSetFenceNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSetFenceNV(fence, condition, function_pointer); } private static native void nglSetFenceNV(int fence, int condition, long function_pointer); public static boolean glTestFenceNV(int fence) { - long function_pointer = GLContext.getCapabilities().NV_fence_glTestFenceNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fence_glTestFenceNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglTestFenceNV(fence, function_pointer); return __result; @@ -47,14 +51,16 @@ public final class NVFence { private static native boolean nglTestFenceNV(int fence, long function_pointer); public static void glFinishFenceNV(int fence) { - long function_pointer = GLContext.getCapabilities().NV_fence_glFinishFenceNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fence_glFinishFenceNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFinishFenceNV(fence, function_pointer); } private static native void nglFinishFenceNV(int fence, long function_pointer); public static boolean glIsFenceNV(int fence) { - long function_pointer = GLContext.getCapabilities().NV_fence_glIsFenceNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fence_glIsFenceNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsFenceNV(fence, function_pointer); return __result; @@ -62,7 +68,8 @@ public final class NVFence { private static native boolean nglIsFenceNV(int fence, long function_pointer); public static void glGetFenceivNV(int fence, int pname, IntBuffer piParams) { - long function_pointer = GLContext.getCapabilities().NV_fence_glGetFenceivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fence_glGetFenceivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(piParams, 4); nglGetFenceivNV(fence, pname, piParams, piParams.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/NVFragmentProgram.java b/src/generated/org/lwjgl/opengl/NVFragmentProgram.java index 53e1e063..96397b5e 100644 --- a/src/generated/org/lwjgl/opengl/NVFragmentProgram.java +++ b/src/generated/org/lwjgl/opengl/NVFragmentProgram.java @@ -30,7 +30,8 @@ public final class NVFragmentProgram extends NVProgram { public static void glProgramNamedParameter4fNV(int id, ByteBuffer name, float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().NV_fragment_program_glProgramNamedParameter4fNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fragment_program_glProgramNamedParameter4fNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); nglProgramNamedParameter4fNV(id, (name.remaining()), name, name.position(), x, y, z, w, function_pointer); @@ -38,7 +39,8 @@ public final class NVFragmentProgram extends NVProgram { private static native void nglProgramNamedParameter4fNV(int id, int length, ByteBuffer name, int name_position, float x, float y, float z, float w, long function_pointer); public static void glProgramNamedParameter4dNV(int id, ByteBuffer name, double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().NV_fragment_program_glProgramNamedParameter4dNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fragment_program_glProgramNamedParameter4dNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); nglProgramNamedParameter4dNV(id, (name.remaining()), name, name.position(), x, y, z, w, function_pointer); @@ -46,7 +48,8 @@ public final class NVFragmentProgram extends NVProgram { private static native void nglProgramNamedParameter4dNV(int id, int length, ByteBuffer name, int name_position, double x, double y, double z, double w, long function_pointer); public static void glGetProgramNamedParameterNV(int id, ByteBuffer name, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_fragment_program_glGetProgramNamedParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fragment_program_glGetProgramNamedParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); BufferChecks.checkBuffer(params, 4); @@ -55,7 +58,8 @@ public final class NVFragmentProgram extends NVProgram { private static native void nglGetProgramNamedParameterfvNV(int id, int length, ByteBuffer name, int name_position, FloatBuffer params, int params_position, long function_pointer); public static void glGetProgramNamedParameterNV(int id, ByteBuffer name, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_fragment_program_glGetProgramNamedParameterdvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_fragment_program_glGetProgramNamedParameterdvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(name); BufferChecks.checkBuffer(params, 4); diff --git a/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java b/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java index 5fed3110..6a2e0e4c 100644 --- a/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java +++ b/src/generated/org/lwjgl/opengl/NVFramebufferMultisampleCoverage.java @@ -1,26 +1,27 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class NVFramebufferMultisampleCoverage { - /** - *Accepted by the <pname> parameter of GetRenderbufferParameterivEXT: - */ - public static final int GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8cab; - public static final int GL_RENDERBUFFER_COLOR_SAMPLES_NV = 0x8e10; - - private NVFramebufferMultisampleCoverage() { - } - - - public static void glRenderbufferStorageMultsampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height) { - long function_pointer = GLContext.getCapabilities().NV_framebuffer_multisample_coverage_glRenderbufferStorageMultsampleCoverageNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglRenderbufferStorageMultsampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height, function_pointer); - } - private static native void nglRenderbufferStorageMultsampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class NVFramebufferMultisampleCoverage { + /** + *Accepted by the <pname> parameter of GetRenderbufferParameterivEXT: + */ + public static final int GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8cab; + public static final int GL_RENDERBUFFER_COLOR_SAMPLES_NV = 0x8e10; + + private NVFramebufferMultisampleCoverage() { + } + + + public static void glRenderbufferStorageMultsampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_framebuffer_multisample_coverage_glRenderbufferStorageMultsampleCoverageNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglRenderbufferStorageMultsampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height, function_pointer); + } + private static native void nglRenderbufferStorageMultsampleCoverageNV(int target, int coverageSamples, int colorSamples, int internalformat, int width, int height, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/NVGeometryProgram4.java b/src/generated/org/lwjgl/opengl/NVGeometryProgram4.java index 918e954e..4d4e53b6 100644 --- a/src/generated/org/lwjgl/opengl/NVGeometryProgram4.java +++ b/src/generated/org/lwjgl/opengl/NVGeometryProgram4.java @@ -1,46 +1,49 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class NVGeometryProgram4 { - /** - * Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, and by - * the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and - * GetDoublev: - */ - public static final int GL_GEOMETRY_PROGRAM_NV = 0x8c26; - /** - *Accepted by the <pname> parameter of GetProgramivARB: - */ - public static final int GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8c27; - public static final int GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8c28; - - private NVGeometryProgram4() { - } - - - public static void glProgramVertexLimitNV(int target, int limit) { - long function_pointer = GLContext.getCapabilities().NV_geometry_program4_glProgramVertexLimitNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglProgramVertexLimitNV(target, limit, function_pointer); - } - private static native void nglProgramVertexLimitNV(int target, int limit, long function_pointer); - - public static void glFramebufferTextureEXT(int target, int attachment, int texture, int level) { - long function_pointer = GLContext.getCapabilities().NV_geometry_program4_glFramebufferTextureEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglFramebufferTextureEXT(target, attachment, texture, level, function_pointer); - } - private static native void nglFramebufferTextureEXT(int target, int attachment, int texture, int level, long function_pointer); - - public static void glFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) { - long function_pointer = GLContext.getCapabilities().NV_geometry_program4_glFramebufferTextureLayerEXT_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglFramebufferTextureLayerEXT(target, attachment, texture, level, layer, function_pointer); - } - private static native void nglFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class NVGeometryProgram4 { + /** + * Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, and by + * the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and + * GetDoublev: + */ + public static final int GL_GEOMETRY_PROGRAM_NV = 0x8c26; + /** + *Accepted by the <pname> parameter of GetProgramivARB: + */ + public static final int GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8c27; + public static final int GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8c28; + + private NVGeometryProgram4() { + } + + + public static void glProgramVertexLimitNV(int target, int limit) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_geometry_program4_glProgramVertexLimitNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglProgramVertexLimitNV(target, limit, function_pointer); + } + private static native void nglProgramVertexLimitNV(int target, int limit, long function_pointer); + + public static void glFramebufferTextureEXT(int target, int attachment, int texture, int level) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_geometry_program4_glFramebufferTextureEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglFramebufferTextureEXT(target, attachment, texture, level, function_pointer); + } + private static native void nglFramebufferTextureEXT(int target, int attachment, int texture, int level, long function_pointer); + + public static void glFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_geometry_program4_glFramebufferTextureLayerEXT_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglFramebufferTextureLayerEXT(target, attachment, texture, level, layer, function_pointer); + } + private static native void nglFramebufferTextureLayerEXT(int target, int attachment, int texture, int level, int layer, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/NVGpuProgram4.java b/src/generated/org/lwjgl/opengl/NVGpuProgram4.java index 46d1d190..5a975396 100644 --- a/src/generated/org/lwjgl/opengl/NVGpuProgram4.java +++ b/src/generated/org/lwjgl/opengl/NVGpuProgram4.java @@ -1,147 +1,163 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class NVGpuProgram4 { - /** - *Accepted by the <pname> parameter of GetProgramivARB: - */ - public static final int GL_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906; - public static final int GL_PROGRAM_RESULT_COMPONENTS_NV = 0x8907; - public static final int GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908; - public static final int GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909; - public static final int GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8da5; - public static final int GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8da6; - - private NVGpuProgram4() { - } - - - public static void glProgramLocalParameterI4iNV(int target, int index, int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramLocalParameterI4iNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglProgramLocalParameterI4iNV(target, index, x, y, z, w, function_pointer); - } - private static native void nglProgramLocalParameterI4iNV(int target, int index, int x, int y, int z, int w, long function_pointer); - - public static void glProgramLocalParameterI4NV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramLocalParameterI4ivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglProgramLocalParameterI4ivNV(target, index, params, params.position(), function_pointer); - } - private static native void nglProgramLocalParameterI4ivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); - - public static void glProgramLocalParametersI4NV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramLocalParametersI4ivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(params); - nglProgramLocalParametersI4ivNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); - } - private static native void nglProgramLocalParametersI4ivNV(int target, int index, int count, IntBuffer params, int params_position, long function_pointer); - - public static void glProgramLocalParameterI4uiNV(int target, int index, int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramLocalParameterI4uiNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglProgramLocalParameterI4uiNV(target, index, x, y, z, w, function_pointer); - } - private static native void nglProgramLocalParameterI4uiNV(int target, int index, int x, int y, int z, int w, long function_pointer); - - public static void glProgramLocalParameterI4uNV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramLocalParameterI4uivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglProgramLocalParameterI4uivNV(target, index, params, params.position(), function_pointer); - } - private static native void nglProgramLocalParameterI4uivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); - - public static void glProgramLocalParametersI4uNV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramLocalParametersI4uivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(params); - nglProgramLocalParametersI4uivNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); - } - private static native void nglProgramLocalParametersI4uivNV(int target, int index, int count, IntBuffer params, int params_position, long function_pointer); - - public static void glProgramEnvParameterI4iNV(int target, int index, int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramEnvParameterI4iNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglProgramEnvParameterI4iNV(target, index, x, y, z, w, function_pointer); - } - private static native void nglProgramEnvParameterI4iNV(int target, int index, int x, int y, int z, int w, long function_pointer); - - public static void glProgramEnvParameterI4NV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramEnvParameterI4ivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglProgramEnvParameterI4ivNV(target, index, params, params.position(), function_pointer); - } - private static native void nglProgramEnvParameterI4ivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); - - public static void glProgramEnvParametersI4NV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramEnvParametersI4ivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(params); - nglProgramEnvParametersI4ivNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); - } - private static native void nglProgramEnvParametersI4ivNV(int target, int index, int count, IntBuffer params, int params_position, long function_pointer); - - public static void glProgramEnvParameterI4uiNV(int target, int index, int x, int y, int z, int w) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramEnvParameterI4uiNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglProgramEnvParameterI4uiNV(target, index, x, y, z, w, function_pointer); - } - private static native void nglProgramEnvParameterI4uiNV(int target, int index, int x, int y, int z, int w, long function_pointer); - - public static void glProgramEnvParameterI4uNV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramEnvParameterI4uivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglProgramEnvParameterI4uivNV(target, index, params, params.position(), function_pointer); - } - private static native void nglProgramEnvParameterI4uivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); - - public static void glProgramEnvParametersI4uNV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glProgramEnvParametersI4uivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(params); - nglProgramEnvParametersI4uivNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); - } - private static native void nglProgramEnvParametersI4uivNV(int target, int index, int count, IntBuffer params, int params_position, long function_pointer); - - public static void glGetProgramLocalParameterINV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glGetProgramLocalParameterIivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglGetProgramLocalParameterIivNV(target, index, params, params.position(), function_pointer); - } - private static native void nglGetProgramLocalParameterIivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); - - public static void glGetProgramLocalParameterIuNV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glGetProgramLocalParameterIuivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglGetProgramLocalParameterIuivNV(target, index, params, params.position(), function_pointer); - } - private static native void nglGetProgramLocalParameterIuivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); - - public static void glGetProgramEnvParameterINV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glGetProgramEnvParameterIivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglGetProgramEnvParameterIivNV(target, index, params, params.position(), function_pointer); - } - private static native void nglGetProgramEnvParameterIivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); - - public static void glGetProgramEnvParameterIuNV(int target, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_gpu_program4_glGetProgramEnvParameterIuivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(params, 4); - nglGetProgramEnvParameterIuivNV(target, index, params, params.position(), function_pointer); - } - private static native void nglGetProgramEnvParameterIuivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class NVGpuProgram4 { + /** + *Accepted by the <pname> parameter of GetProgramivARB: + */ + public static final int GL_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906; + public static final int GL_PROGRAM_RESULT_COMPONENTS_NV = 0x8907; + public static final int GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908; + public static final int GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909; + public static final int GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8da5; + public static final int GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8da6; + + private NVGpuProgram4() { + } + + + public static void glProgramLocalParameterI4iNV(int target, int index, int x, int y, int z, int w) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramLocalParameterI4iNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglProgramLocalParameterI4iNV(target, index, x, y, z, w, function_pointer); + } + private static native void nglProgramLocalParameterI4iNV(int target, int index, int x, int y, int z, int w, long function_pointer); + + public static void glProgramLocalParameterI4NV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramLocalParameterI4ivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglProgramLocalParameterI4ivNV(target, index, params, params.position(), function_pointer); + } + private static native void nglProgramLocalParameterI4ivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); + + public static void glProgramLocalParametersI4NV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramLocalParametersI4ivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(params); + nglProgramLocalParametersI4ivNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); + } + private static native void nglProgramLocalParametersI4ivNV(int target, int index, int count, IntBuffer params, int params_position, long function_pointer); + + public static void glProgramLocalParameterI4uiNV(int target, int index, int x, int y, int z, int w) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramLocalParameterI4uiNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglProgramLocalParameterI4uiNV(target, index, x, y, z, w, function_pointer); + } + private static native void nglProgramLocalParameterI4uiNV(int target, int index, int x, int y, int z, int w, long function_pointer); + + public static void glProgramLocalParameterI4uNV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramLocalParameterI4uivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglProgramLocalParameterI4uivNV(target, index, params, params.position(), function_pointer); + } + private static native void nglProgramLocalParameterI4uivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); + + public static void glProgramLocalParametersI4uNV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramLocalParametersI4uivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(params); + nglProgramLocalParametersI4uivNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); + } + private static native void nglProgramLocalParametersI4uivNV(int target, int index, int count, IntBuffer params, int params_position, long function_pointer); + + public static void glProgramEnvParameterI4iNV(int target, int index, int x, int y, int z, int w) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramEnvParameterI4iNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglProgramEnvParameterI4iNV(target, index, x, y, z, w, function_pointer); + } + private static native void nglProgramEnvParameterI4iNV(int target, int index, int x, int y, int z, int w, long function_pointer); + + public static void glProgramEnvParameterI4NV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramEnvParameterI4ivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglProgramEnvParameterI4ivNV(target, index, params, params.position(), function_pointer); + } + private static native void nglProgramEnvParameterI4ivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); + + public static void glProgramEnvParametersI4NV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramEnvParametersI4ivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(params); + nglProgramEnvParametersI4ivNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); + } + private static native void nglProgramEnvParametersI4ivNV(int target, int index, int count, IntBuffer params, int params_position, long function_pointer); + + public static void glProgramEnvParameterI4uiNV(int target, int index, int x, int y, int z, int w) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramEnvParameterI4uiNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglProgramEnvParameterI4uiNV(target, index, x, y, z, w, function_pointer); + } + private static native void nglProgramEnvParameterI4uiNV(int target, int index, int x, int y, int z, int w, long function_pointer); + + public static void glProgramEnvParameterI4uNV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramEnvParameterI4uivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglProgramEnvParameterI4uivNV(target, index, params, params.position(), function_pointer); + } + private static native void nglProgramEnvParameterI4uivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); + + public static void glProgramEnvParametersI4uNV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glProgramEnvParametersI4uivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(params); + nglProgramEnvParametersI4uivNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); + } + private static native void nglProgramEnvParametersI4uivNV(int target, int index, int count, IntBuffer params, int params_position, long function_pointer); + + public static void glGetProgramLocalParameterINV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glGetProgramLocalParameterIivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglGetProgramLocalParameterIivNV(target, index, params, params.position(), function_pointer); + } + private static native void nglGetProgramLocalParameterIivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); + + public static void glGetProgramLocalParameterIuNV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glGetProgramLocalParameterIuivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglGetProgramLocalParameterIuivNV(target, index, params, params.position(), function_pointer); + } + private static native void nglGetProgramLocalParameterIuivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); + + public static void glGetProgramEnvParameterINV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glGetProgramEnvParameterIivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglGetProgramEnvParameterIivNV(target, index, params, params.position(), function_pointer); + } + private static native void nglGetProgramEnvParameterIivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); + + public static void glGetProgramEnvParameterIuNV(int target, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_gpu_program4_glGetProgramEnvParameterIuivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(params, 4); + nglGetProgramEnvParameterIuivNV(target, index, params, params.position(), function_pointer); + } + private static native void nglGetProgramEnvParameterIuivNV(int target, int index, IntBuffer params, int params_position, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/NVHalfFloat.java b/src/generated/org/lwjgl/opengl/NVHalfFloat.java index 5e12f099..99bb106e 100644 --- a/src/generated/org/lwjgl/opengl/NVHalfFloat.java +++ b/src/generated/org/lwjgl/opengl/NVHalfFloat.java @@ -21,147 +21,168 @@ public final class NVHalfFloat { public static void glVertex2hNV(short x, short y) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex2hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertex2hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex2hNV(x, y, function_pointer); } private static native void nglVertex2hNV(short x, short y, long function_pointer); public static void glVertex3hNV(short x, short y, short z) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex3hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertex3hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex3hNV(x, y, z, function_pointer); } private static native void nglVertex3hNV(short x, short y, short z, long function_pointer); public static void glVertex4hNV(short x, short y, short z, short w) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertex4hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertex4hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertex4hNV(x, y, z, w, function_pointer); } private static native void nglVertex4hNV(short x, short y, short z, short w, long function_pointer); public static void glNormal3hNV(short nx, short ny, short nz) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glNormal3hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glNormal3hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglNormal3hNV(nx, ny, nz, function_pointer); } private static native void nglNormal3hNV(short nx, short ny, short nz, long function_pointer); public static void glColor3hNV(short red, short green, short blue) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glColor3hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glColor3hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor3hNV(red, green, blue, function_pointer); } private static native void nglColor3hNV(short red, short green, short blue, long function_pointer); public static void glColor4hNV(short red, short green, short blue, short alpha) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glColor4hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glColor4hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglColor4hNV(red, green, blue, alpha, function_pointer); } private static native void nglColor4hNV(short red, short green, short blue, short alpha, long function_pointer); public static void glTexCoord1hNV(short s) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord1hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glTexCoord1hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord1hNV(s, function_pointer); } private static native void nglTexCoord1hNV(short s, long function_pointer); public static void glTexCoord2hNV(short s, short t) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord2hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glTexCoord2hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord2hNV(s, t, function_pointer); } private static native void nglTexCoord2hNV(short s, short t, long function_pointer); public static void glTexCoord3hNV(short s, short t, short r) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord3hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glTexCoord3hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord3hNV(s, t, r, function_pointer); } private static native void nglTexCoord3hNV(short s, short t, short r, long function_pointer); public static void glTexCoord4hNV(short s, short t, short r, short q) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glTexCoord4hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glTexCoord4hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTexCoord4hNV(s, t, r, q, function_pointer); } private static native void nglTexCoord4hNV(short s, short t, short r, short q, long function_pointer); public static void glMultiTexCoord1hNV(int target, short s) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord1hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glMultiTexCoord1hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord1hNV(target, s, function_pointer); } private static native void nglMultiTexCoord1hNV(int target, short s, long function_pointer); public static void glMultiTexCoord2hNV(int target, short s, short t) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord2hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glMultiTexCoord2hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord2hNV(target, s, t, function_pointer); } private static native void nglMultiTexCoord2hNV(int target, short s, short t, long function_pointer); public static void glMultiTexCoord3hNV(int target, short s, short t, short r) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord3hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glMultiTexCoord3hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord3hNV(target, s, t, r, function_pointer); } private static native void nglMultiTexCoord3hNV(int target, short s, short t, short r, long function_pointer); public static void glMultiTexCoord4hNV(int target, short s, short t, short r, short q) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glMultiTexCoord4hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glMultiTexCoord4hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglMultiTexCoord4hNV(target, s, t, r, q, function_pointer); } private static native void nglMultiTexCoord4hNV(int target, short s, short t, short r, short q, long function_pointer); public static void glFogCoordhNV(short fog) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glFogCoordhNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glFogCoordhNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFogCoordhNV(fog, function_pointer); } private static native void nglFogCoordhNV(short fog, long function_pointer); public static void glSecondaryColor3hNV(short red, short green, short blue) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glSecondaryColor3hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glSecondaryColor3hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglSecondaryColor3hNV(red, green, blue, function_pointer); } private static native void nglSecondaryColor3hNV(short red, short green, short blue, long function_pointer); public static void glVertexAttrib1hNV(int index, short x) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib1hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertexAttrib1hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1hNV(index, x, function_pointer); } private static native void nglVertexAttrib1hNV(int index, short x, long function_pointer); public static void glVertexAttrib2hNV(int index, short x, short y) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib2hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertexAttrib2hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2hNV(index, x, y, function_pointer); } private static native void nglVertexAttrib2hNV(int index, short x, short y, long function_pointer); public static void glVertexAttrib3hNV(int index, short x, short y, short z) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib3hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertexAttrib3hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3hNV(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3hNV(int index, short x, short y, short z, long function_pointer); public static void glVertexAttrib4hNV(int index, short x, short y, short z, short w) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttrib4hNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertexAttrib4hNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4hNV(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4hNV(int index, short x, short y, short z, short w, long function_pointer); public static void glVertexAttribs1NV(int index, ShortBuffer attribs) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs1hvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertexAttribs1hvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(attribs); nglVertexAttribs1hvNV(index, (attribs.remaining()), attribs, attribs.position(), function_pointer); @@ -169,7 +190,8 @@ public final class NVHalfFloat { private static native void nglVertexAttribs1hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer); public static void glVertexAttribs2NV(int index, ShortBuffer attribs) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs2hvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertexAttribs2hvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(attribs); nglVertexAttribs2hvNV(index, (attribs.remaining()) >> 1, attribs, attribs.position(), function_pointer); @@ -177,7 +199,8 @@ public final class NVHalfFloat { private static native void nglVertexAttribs2hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer); public static void glVertexAttribs3NV(int index, ShortBuffer attribs) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs3hvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertexAttribs3hvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(attribs); nglVertexAttribs3hvNV(index, (attribs.remaining()) / 3, attribs, attribs.position(), function_pointer); @@ -185,7 +208,8 @@ public final class NVHalfFloat { private static native void nglVertexAttribs3hvNV(int index, int n, ShortBuffer attribs, int attribs_position, long function_pointer); public static void glVertexAttribs4NV(int index, ShortBuffer attribs) { - long function_pointer = GLContext.getCapabilities().NV_half_float_glVertexAttribs4hvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_half_float_glVertexAttribs4hvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(attribs); nglVertexAttribs4hvNV(index, (attribs.remaining()) >> 2, attribs, attribs.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/NVOcclusionQuery.java b/src/generated/org/lwjgl/opengl/NVOcclusionQuery.java index 3b26c07a..bfa3ce17 100644 --- a/src/generated/org/lwjgl/opengl/NVOcclusionQuery.java +++ b/src/generated/org/lwjgl/opengl/NVOcclusionQuery.java @@ -19,7 +19,8 @@ public final class NVOcclusionQuery { public static void glGenOcclusionQueriesNV(IntBuffer piIDs) { - long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGenOcclusionQueriesNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_occlusion_query_glGenOcclusionQueriesNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(piIDs); nglGenOcclusionQueriesNV((piIDs.remaining()), piIDs, piIDs.position(), function_pointer); @@ -27,7 +28,8 @@ public final class NVOcclusionQuery { private static native void nglGenOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_position, long function_pointer); public static void glDeleteOcclusionQueriesNV(IntBuffer piIDs) { - long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glDeleteOcclusionQueriesNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_occlusion_query_glDeleteOcclusionQueriesNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(piIDs); nglDeleteOcclusionQueriesNV((piIDs.remaining()), piIDs, piIDs.position(), function_pointer); @@ -35,7 +37,8 @@ public final class NVOcclusionQuery { private static native void nglDeleteOcclusionQueriesNV(int n, IntBuffer piIDs, int piIDs_position, long function_pointer); public static boolean glIsOcclusionQueryNV(int id) { - long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glIsOcclusionQueryNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_occlusion_query_glIsOcclusionQueryNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsOcclusionQueryNV(id, function_pointer); return __result; @@ -43,21 +46,24 @@ public final class NVOcclusionQuery { private static native boolean nglIsOcclusionQueryNV(int id, long function_pointer); public static void glBeginOcclusionQueryNV(int id) { - long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glBeginOcclusionQueryNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_occlusion_query_glBeginOcclusionQueryNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBeginOcclusionQueryNV(id, function_pointer); } private static native void nglBeginOcclusionQueryNV(int id, long function_pointer); public static void glEndOcclusionQueryNV() { - long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glEndOcclusionQueryNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_occlusion_query_glEndOcclusionQueryNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglEndOcclusionQueryNV(function_pointer); } private static native void nglEndOcclusionQueryNV(long function_pointer); public static void glGetOcclusionQueryuNV(int id, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGetOcclusionQueryuivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_occlusion_query_glGetOcclusionQueryuivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetOcclusionQueryuivNV(id, pname, params, params.position(), function_pointer); @@ -65,7 +71,8 @@ public final class NVOcclusionQuery { private static native void nglGetOcclusionQueryuivNV(int id, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetOcclusionQueryNV(int id, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_occlusion_query_glGetOcclusionQueryivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_occlusion_query_glGetOcclusionQueryivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 1); nglGetOcclusionQueryivNV(id, pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/NVParameterBufferObject.java b/src/generated/org/lwjgl/opengl/NVParameterBufferObject.java index a8a4795e..4381289d 100644 --- a/src/generated/org/lwjgl/opengl/NVParameterBufferObject.java +++ b/src/generated/org/lwjgl/opengl/NVParameterBufferObject.java @@ -1,52 +1,55 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class NVParameterBufferObject { - /** - *Accepted by the <pname> parameter of GetProgramivARB: - */ - public static final int GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8da0; - public static final int GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8da1; - /** - * Accepted by the <target> parameter of ProgramBufferParametersfvNV, - * ProgramBufferParametersIivNV, and ProgramBufferParametersIuivNV, - * BindBufferRangeNV, BindBufferOffsetNV, BindBufferBaseNV, and BindBuffer - * and the <value> parameter of GetIntegerIndexedvEXT: - */ - public static final int GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8da2; - public static final int GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8da3; - public static final int GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8da4; - - private NVParameterBufferObject() { - } - - - public static void glProgramBufferParametersNV(int target, int buffer, int index, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_parameter_buffer_object_glProgramBufferParametersfvNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(params); - nglProgramBufferParametersfvNV(target, buffer, index, (params.remaining()) >> 2, params, params.position(), function_pointer); - } - private static native void nglProgramBufferParametersfvNV(int target, int buffer, int index, int count, FloatBuffer params, int params_position, long function_pointer); - - public static void glProgramBufferParametersINV(int target, int buffer, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_parameter_buffer_object_glProgramBufferParametersIivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(params); - nglProgramBufferParametersIivNV(target, buffer, index, (params.remaining()) >> 2, params, params.position(), function_pointer); - } - private static native void nglProgramBufferParametersIivNV(int target, int buffer, int index, int count, IntBuffer params, int params_position, long function_pointer); - - public static void glProgramBufferParametersIuNV(int target, int buffer, int index, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_parameter_buffer_object_glProgramBufferParametersIuivNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(params); - nglProgramBufferParametersIuivNV(target, buffer, index, (params.remaining()) >> 2, params, params.position(), function_pointer); - } - private static native void nglProgramBufferParametersIuivNV(int target, int buffer, int index, int count, IntBuffer params, int params_position, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class NVParameterBufferObject { + /** + *Accepted by the <pname> parameter of GetProgramivARB: + */ + public static final int GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8da0; + public static final int GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8da1; + /** + * Accepted by the <target> parameter of ProgramBufferParametersfvNV, + * ProgramBufferParametersIivNV, and ProgramBufferParametersIuivNV, + * BindBufferRangeNV, BindBufferOffsetNV, BindBufferBaseNV, and BindBuffer + * and the <value> parameter of GetIntegerIndexedvEXT: + */ + public static final int GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8da2; + public static final int GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8da3; + public static final int GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8da4; + + private NVParameterBufferObject() { + } + + + public static void glProgramBufferParametersNV(int target, int buffer, int index, FloatBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_parameter_buffer_object_glProgramBufferParametersfvNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(params); + nglProgramBufferParametersfvNV(target, buffer, index, (params.remaining()) >> 2, params, params.position(), function_pointer); + } + private static native void nglProgramBufferParametersfvNV(int target, int buffer, int index, int count, FloatBuffer params, int params_position, long function_pointer); + + public static void glProgramBufferParametersINV(int target, int buffer, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_parameter_buffer_object_glProgramBufferParametersIivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(params); + nglProgramBufferParametersIivNV(target, buffer, index, (params.remaining()) >> 2, params, params.position(), function_pointer); + } + private static native void nglProgramBufferParametersIivNV(int target, int buffer, int index, int count, IntBuffer params, int params_position, long function_pointer); + + public static void glProgramBufferParametersIuNV(int target, int buffer, int index, IntBuffer params) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_parameter_buffer_object_glProgramBufferParametersIuivNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(params); + nglProgramBufferParametersIuivNV(target, buffer, index, (params.remaining()) >> 2, params, params.position(), function_pointer); + } + private static native void nglProgramBufferParametersIuivNV(int target, int buffer, int index, int count, IntBuffer params, int params_position, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/NVPixelDataRange.java b/src/generated/org/lwjgl/opengl/NVPixelDataRange.java index 7d2caf4c..44963153 100644 --- a/src/generated/org/lwjgl/opengl/NVPixelDataRange.java +++ b/src/generated/org/lwjgl/opengl/NVPixelDataRange.java @@ -31,31 +31,36 @@ public final class NVPixelDataRange { public static void glPixelDataRangeNV(int target, ByteBuffer data) { - long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_pixel_data_range_glPixelDataRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglPixelDataRangeNV(target, (data.remaining()), data, data.position(), function_pointer); } public static void glPixelDataRangeNV(int target, DoubleBuffer data) { - long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_pixel_data_range_glPixelDataRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglPixelDataRangeNV(target, (data.remaining() << 3), data, data.position() << 3, function_pointer); } public static void glPixelDataRangeNV(int target, FloatBuffer data) { - long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_pixel_data_range_glPixelDataRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglPixelDataRangeNV(target, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glPixelDataRangeNV(int target, IntBuffer data) { - long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_pixel_data_range_glPixelDataRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglPixelDataRangeNV(target, (data.remaining() << 2), data, data.position() << 2, function_pointer); } public static void glPixelDataRangeNV(int target, ShortBuffer data) { - long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glPixelDataRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_pixel_data_range_glPixelDataRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(data); nglPixelDataRangeNV(target, (data.remaining() << 1), data, data.position() << 1, function_pointer); @@ -63,7 +68,8 @@ public final class NVPixelDataRange { private static native void nglPixelDataRangeNV(int target, int length, Buffer data, int data_position, long function_pointer); public static void glFlushPixelDataRangeNV(int target) { - long function_pointer = GLContext.getCapabilities().NV_pixel_data_range_glFlushPixelDataRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_pixel_data_range_glFlushPixelDataRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFlushPixelDataRangeNV(target, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/NVPointSprite.java b/src/generated/org/lwjgl/opengl/NVPointSprite.java index 42d88619..a45ddfdd 100644 --- a/src/generated/org/lwjgl/opengl/NVPointSprite.java +++ b/src/generated/org/lwjgl/opengl/NVPointSprite.java @@ -16,14 +16,16 @@ public final class NVPointSprite { public static void glPointParameteriNV(int pname, int param) { - long function_pointer = GLContext.getCapabilities().NV_point_sprite_glPointParameteriNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_point_sprite_glPointParameteriNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPointParameteriNV(pname, param, function_pointer); } private static native void nglPointParameteriNV(int pname, int param, long function_pointer); public static void glPointParameterNV(int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_point_sprite_glPointParameterivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_point_sprite_glPointParameterivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglPointParameterivNV(pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/NVPrimitiveRestart.java b/src/generated/org/lwjgl/opengl/NVPrimitiveRestart.java index 32f7ad56..4f94da9e 100644 --- a/src/generated/org/lwjgl/opengl/NVPrimitiveRestart.java +++ b/src/generated/org/lwjgl/opengl/NVPrimitiveRestart.java @@ -25,14 +25,16 @@ public final class NVPrimitiveRestart { public static void glPrimitiveRestartNV() { - long function_pointer = GLContext.getCapabilities().NV_primitive_restart_glPrimitiveRestartNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_primitive_restart_glPrimitiveRestartNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPrimitiveRestartNV(function_pointer); } private static native void nglPrimitiveRestartNV(long function_pointer); public static void glPrimitiveRestartIndexNV(int index) { - long function_pointer = GLContext.getCapabilities().NV_primitive_restart_glPrimitiveRestartIndexNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_primitive_restart_glPrimitiveRestartIndexNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglPrimitiveRestartIndexNV(index, function_pointer); } diff --git a/src/generated/org/lwjgl/opengl/NVProgram.java b/src/generated/org/lwjgl/opengl/NVProgram.java index ebdc2eb7..fcb360f6 100644 --- a/src/generated/org/lwjgl/opengl/NVProgram.java +++ b/src/generated/org/lwjgl/opengl/NVProgram.java @@ -29,7 +29,8 @@ public class NVProgram { public static void glLoadProgramNV(int target, int programID, ByteBuffer string) { - long function_pointer = GLContext.getCapabilities().NV_program_glLoadProgramNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glLoadProgramNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(string); nglLoadProgramNV(target, programID, (string.remaining()), string, string.position(), function_pointer); @@ -37,14 +38,16 @@ public class NVProgram { private static native void nglLoadProgramNV(int target, int programID, int length, Buffer string, int string_position, long function_pointer); public static void glBindProgramNV(int target, int programID) { - long function_pointer = GLContext.getCapabilities().NV_program_glBindProgramNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glBindProgramNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglBindProgramNV(target, programID, function_pointer); } private static native void nglBindProgramNV(int target, int programID, long function_pointer); public static void glDeleteProgramsNV(IntBuffer programs) { - long function_pointer = GLContext.getCapabilities().NV_program_glDeleteProgramsNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glDeleteProgramsNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(programs); nglDeleteProgramsNV((programs.remaining()), programs, programs.position(), function_pointer); @@ -52,7 +55,8 @@ public class NVProgram { private static native void nglDeleteProgramsNV(int n, IntBuffer programs, int programs_position, long function_pointer); public static void glGenProgramsNV(IntBuffer programs) { - long function_pointer = GLContext.getCapabilities().NV_program_glGenProgramsNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glGenProgramsNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(programs); nglGenProgramsNV((programs.remaining()), programs, programs.position(), function_pointer); @@ -60,7 +64,8 @@ public class NVProgram { private static native void nglGenProgramsNV(int n, IntBuffer programs, int programs_position, long function_pointer); public static void glGetProgramNV(int programID, int parameterName, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_program_glGetProgramivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glGetProgramivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglGetProgramivNV(programID, parameterName, params, params.position(), function_pointer); @@ -68,7 +73,8 @@ public class NVProgram { private static native void nglGetProgramivNV(int programID, int parameterName, IntBuffer params, int params_position, long function_pointer); public static void glGetProgramStringNV(int programID, int parameterName, ByteBuffer paramString) { - long function_pointer = GLContext.getCapabilities().NV_program_glGetProgramStringNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glGetProgramStringNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(paramString); nglGetProgramStringNV(programID, parameterName, paramString, paramString.position(), function_pointer); @@ -76,7 +82,8 @@ public class NVProgram { private static native void nglGetProgramStringNV(int programID, int parameterName, Buffer paramString, int paramString_position, long function_pointer); public static boolean glIsProgramNV(int programID) { - long function_pointer = GLContext.getCapabilities().NV_program_glIsProgramNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glIsProgramNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); boolean __result = nglIsProgramNV(programID, function_pointer); return __result; @@ -84,10 +91,11 @@ public class NVProgram { private static native boolean nglIsProgramNV(int programID, long function_pointer); public static boolean glAreProgramsResidentNV(IntBuffer programIDs, ByteBuffer programResidences) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glAreProgramsResidentNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); if (programIDs.remaining() != programResidences.remaining()) throw new IllegalArgumentException("programIDs.remaining() != programResidences.remaining()"); - long function_pointer = GLContext.getCapabilities().NV_program_glAreProgramsResidentNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(programIDs); BufferChecks.checkDirect(programResidences); boolean __result = nglAreProgramsResidentNV((programIDs.remaining()), programIDs, programIDs.position(), programResidences, programResidences.position(), function_pointer); @@ -96,7 +104,8 @@ public class NVProgram { private static native boolean nglAreProgramsResidentNV(int n, IntBuffer programIDs, int programIDs_position, ByteBuffer programResidences, int programResidences_position, long function_pointer); public static void glRequestResidentProgramsNV(IntBuffer programIDs) { - long function_pointer = GLContext.getCapabilities().NV_program_glRequestResidentProgramsNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_program_glRequestResidentProgramsNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(programIDs); nglRequestResidentProgramsNV((programIDs.remaining()), programIDs, programIDs.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/NVRegisterCombiners.java b/src/generated/org/lwjgl/opengl/NVRegisterCombiners.java index 7cd843d2..d57ad09b 100644 --- a/src/generated/org/lwjgl/opengl/NVRegisterCombiners.java +++ b/src/generated/org/lwjgl/opengl/NVRegisterCombiners.java @@ -64,14 +64,16 @@ public final class NVRegisterCombiners { public static void glCombinerParameterfNV(int pname, float param) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameterfNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glCombinerParameterfNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCombinerParameterfNV(pname, param, function_pointer); } private static native void nglCombinerParameterfNV(int pname, float param, long function_pointer); public static void glCombinerParameterNV(int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glCombinerParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglCombinerParameterfvNV(pname, params, params.position(), function_pointer); @@ -79,14 +81,16 @@ public final class NVRegisterCombiners { private static native void nglCombinerParameterfvNV(int pname, FloatBuffer params, int params_position, long function_pointer); public static void glCombinerParameteriNV(int pname, int param) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameteriNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glCombinerParameteriNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCombinerParameteriNV(pname, param, function_pointer); } private static native void nglCombinerParameteriNV(int pname, int param, long function_pointer); public static void glCombinerParameterNV(int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerParameterivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glCombinerParameterivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglCombinerParameterivNV(pname, params, params.position(), function_pointer); @@ -94,28 +98,32 @@ public final class NVRegisterCombiners { private static native void nglCombinerParameterivNV(int pname, IntBuffer params, int params_position, long function_pointer); public static void glCombinerInputNV(int stage, int portion, int variable, int input, int mapping, int componentUsage) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerInputNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glCombinerInputNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCombinerInputNV(stage, portion, variable, input, mapping, componentUsage, function_pointer); } private static native void nglCombinerInputNV(int stage, int portion, int variable, int input, int mapping, int componentUsage, long function_pointer); public static void glCombinerOutputNV(int stage, int portion, int abOutput, int cdOutput, int sumOutput, int scale, int bias, boolean abDotProduct, boolean cdDotProduct, boolean muxSum) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glCombinerOutputNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glCombinerOutputNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglCombinerOutputNV(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum, function_pointer); } private static native void nglCombinerOutputNV(int stage, int portion, int abOutput, int cdOutput, int sumOutput, int scale, int bias, boolean abDotProduct, boolean cdDotProduct, boolean muxSum, long function_pointer); public static void glFinalCombinerInputNV(int variable, int input, int mapping, int componentUsage) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glFinalCombinerInputNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glFinalCombinerInputNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFinalCombinerInputNV(variable, input, mapping, componentUsage, function_pointer); } private static native void nglFinalCombinerInputNV(int variable, int input, int mapping, int componentUsage, long function_pointer); public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerInputParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glGetCombinerInputParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetCombinerInputParameterfvNV(stage, portion, variable, pname, params, params.position(), function_pointer); @@ -123,7 +131,8 @@ public final class NVRegisterCombiners { private static native void nglGetCombinerInputParameterfvNV(int stage, int portion, int variable, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetCombinerInputParameterNV(int stage, int portion, int variable, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerInputParameterivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glGetCombinerInputParameterivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetCombinerInputParameterivNV(stage, portion, variable, pname, params, params.position(), function_pointer); @@ -131,7 +140,8 @@ public final class NVRegisterCombiners { private static native void nglGetCombinerInputParameterivNV(int stage, int portion, int variable, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerOutputParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glGetCombinerOutputParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetCombinerOutputParameterfvNV(stage, portion, pname, params, params.position(), function_pointer); @@ -139,7 +149,8 @@ public final class NVRegisterCombiners { private static native void nglGetCombinerOutputParameterfvNV(int stage, int portion, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetCombinerOutputParameterNV(int stage, int portion, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetCombinerOutputParameterivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glGetCombinerOutputParameterivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetCombinerOutputParameterivNV(stage, portion, pname, params, params.position(), function_pointer); @@ -147,7 +158,8 @@ public final class NVRegisterCombiners { private static native void nglGetCombinerOutputParameterivNV(int stage, int portion, int pname, IntBuffer params, int params_position, long function_pointer); public static void glGetFinalCombinerInputParameterNV(int variable, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetFinalCombinerInputParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glGetFinalCombinerInputParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetFinalCombinerInputParameterfvNV(variable, pname, params, params.position(), function_pointer); @@ -155,7 +167,8 @@ public final class NVRegisterCombiners { private static native void nglGetFinalCombinerInputParameterfvNV(int variable, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetFinalCombinerInputParameterNV(int variable, int pname, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners_glGetFinalCombinerInputParameterivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners_glGetFinalCombinerInputParameterivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetFinalCombinerInputParameterivNV(variable, pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/NVRegisterCombiners2.java b/src/generated/org/lwjgl/opengl/NVRegisterCombiners2.java index 24bf86b0..67fb09ec 100644 --- a/src/generated/org/lwjgl/opengl/NVRegisterCombiners2.java +++ b/src/generated/org/lwjgl/opengl/NVRegisterCombiners2.java @@ -14,7 +14,8 @@ public final class NVRegisterCombiners2 { public static void glCombinerStageParameterNV(int stage, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners2_glCombinerStageParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners2_glCombinerStageParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglCombinerStageParameterfvNV(stage, pname, params, params.position(), function_pointer); @@ -22,7 +23,8 @@ public final class NVRegisterCombiners2 { private static native void nglCombinerStageParameterfvNV(int stage, int pname, FloatBuffer params, int params_position, long function_pointer); public static void glGetCombinerStageParameterNV(int stage, int pname, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_register_combiners2_glGetCombinerStageParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_register_combiners2_glGetCombinerStageParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetCombinerStageParameterfvNV(stage, pname, params, params.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/NVTransformFeeback.java b/src/generated/org/lwjgl/opengl/NVTransformFeeback.java index f292cb48..c67b39b6 100644 --- a/src/generated/org/lwjgl/opengl/NVTransformFeeback.java +++ b/src/generated/org/lwjgl/opengl/NVTransformFeeback.java @@ -1,170 +1,181 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class NVTransformFeeback { - /** - * Accepted by the <target> parameters of BindBuffer, BufferData, - * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, - * GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and - * BindBufferBaseNV: - */ - public static final int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8c8e; - /** - * Accepted by the <param> parameter of GetIntegerIndexedvEXT and - * GetBooleanIndexedvEXT: - */ - public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8c84; - public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8c85; - public static final int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8c86; - /** - * Accepted by the <param> parameter of GetIntegerIndexedvEXT and - * GetBooleanIndexedvEXT, and by the <pname> parameter of GetBooleanv, - * GetDoublev, GetIntegerv, and GetFloatv: - */ - public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8c8f; - /** - * Accepted by the <bufferMode> parameter of TransformFeedbackAttribsNV and - * TransformFeedbackVaryingsNV: - */ - public static final int GL_INTERLEAVED_ATTRIBS_NV = 0x8c8c; - public static final int GL_SEPARATE_ATTRIBS_NV = 0x8c8d; - /** - * Accepted by the <target> parameter of BeginQuery, EndQuery, and - * GetQueryiv: - */ - public static final int GL_PRIMITIVES_GENERATED_NV = 0x8c87; - public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8c88; - /** - * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by - * the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and - * GetDoublev: - */ - public static final int GL_RASTERIZER_DISCARD_NV = 0x8c89; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv, - * and GetFloatv: - */ - public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8c8a; - public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8c8b; - public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8c80; - public static final int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8c7e; - /** - *Accepted by the <pname> parameter of GetProgramiv: - */ - public static final int GL_ACTIVE_VARYINGS_NV = 0x8c81; - public static final int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8c82; - public static final int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8c83; - /** - * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv, - * GetFloatv, and GetProgramiv: - */ - public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8c7f; - /** - *Accepted by the <attribs> parameter of TransformFeedbackAttribsNV: - */ - public static final int GL_BACK_PRIMARY_COLOR_NV = 0x8c77; - public static final int GL_BACK_SECONDARY_COLOR_NV = 0x8c78; - public static final int GL_TEXTURE_COORD_NV = 0x8c79; - public static final int GL_CLIP_DISTANCE_NV = 0x8c7a; - public static final int GL_VERTEX_ID_NV = 0x8c7b; - public static final int GL_PRIMITIVE_ID_NV = 0x8c7c; - public static final int GL_GENERIC_ATTRIB_NV = 0x8c7d; - - private NVTransformFeeback() { - } - - - public static void glBindBufferRangeNV(int target, int index, int buffer, long offset, long size) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glBindBufferRangeNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglBindBufferRangeNV(target, index, buffer, offset, size, function_pointer); - } - private static native void nglBindBufferRangeNV(int target, int index, int buffer, long offset, long size, long function_pointer); - - public static void glBindBufferOffsetNV(int target, int index, int buffer, long offset) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glBindBufferOffsetNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglBindBufferOffsetNV(target, index, buffer, offset, function_pointer); - } - private static native void nglBindBufferOffsetNV(int target, int index, int buffer, long offset, long function_pointer); - - public static void glBindBufferBaseNV(int target, int index, int buffer) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glBindBufferBaseNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglBindBufferBaseNV(target, index, buffer, function_pointer); - } - private static native void nglBindBufferBaseNV(int target, int index, int buffer, long function_pointer); - - public static void glTransformFeedbackAttribsNV(IntBuffer attribs, int bufferMode) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glTransformFeedbackAttribsNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(attribs); - nglTransformFeedbackAttribsNV((attribs.remaining()), attribs, attribs.position(), bufferMode, function_pointer); - } - private static native void nglTransformFeedbackAttribsNV(int count, IntBuffer attribs, int attribs_position, int bufferMode, long function_pointer); - - public static void glTransformFeedbackVaryingsNV(int program, IntBuffer locations, int bufferMode) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glTransformFeedbackVaryingsNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(locations); - nglTransformFeedbackVaryingsNV(program, (locations.remaining()), locations, locations.position(), bufferMode, function_pointer); - } - private static native void nglTransformFeedbackVaryingsNV(int program, int count, IntBuffer locations, int locations_position, int bufferMode, long function_pointer); - - public static void glBeginTransformFeedbackNV(int primitiveMode) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glBeginTransformFeedbackNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglBeginTransformFeedbackNV(primitiveMode, function_pointer); - } - private static native void nglBeginTransformFeedbackNV(int primitiveMode, long function_pointer); - - public static void glEndTransformFeedbackNV() { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glEndTransformFeedbackNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - nglEndTransformFeedbackNV(function_pointer); - } - private static native void nglEndTransformFeedbackNV(long function_pointer); - - public static int glGetVaryingLocationNV(int program, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glGetVaryingLocationNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(name); - BufferChecks.checkNullTerminated(name); - int __result = nglGetVaryingLocationNV(program, name, name.position(), function_pointer); - return __result; - } - private static native int nglGetVaryingLocationNV(int program, ByteBuffer name, int name_position, long function_pointer); - - public static void glGetActiveVaryingNV(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glGetActiveVaryingNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(length, 1); - BufferChecks.checkBuffer(size, 1); - BufferChecks.checkBuffer(type, 1); - BufferChecks.checkDirect(name); - nglGetActiveVaryingNV(program, index, (name.remaining()), length, length.position(), size, size.position(), type, type.position(), name, name.position(), function_pointer); - } - private static native void nglGetActiveVaryingNV(int program, int index, int bufSize, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer); - - public static void glActiveVaryingNV(int program, ByteBuffer name) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glActiveVaryingNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkDirect(name); - BufferChecks.checkNullTerminated(name); - nglActiveVaryingNV(program, name, name.position(), function_pointer); - } - private static native void nglActiveVaryingNV(int program, ByteBuffer name, int name_position, long function_pointer); - - public static void glGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location) { - long function_pointer = GLContext.getCapabilities().NV_transform_feeback_glGetTransformFeedbackVaryingNV_pointer; - BufferChecks.checkFunctionAddress(function_pointer); - BufferChecks.checkBuffer(location, 1); - nglGetTransformFeedbackVaryingNV(program, index, location, location.position(), function_pointer); - } - private static native void nglGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location, int location_position, long function_pointer); -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class NVTransformFeeback { + /** + * Accepted by the <target> parameters of BindBuffer, BufferData, + * BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, + * GetBufferPointerv, BindBufferRangeNV, BindBufferOffsetNV and + * BindBufferBaseNV: + */ + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8c8e; + /** + * Accepted by the <param> parameter of GetIntegerIndexedvEXT and + * GetBooleanIndexedvEXT: + */ + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8c84; + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8c85; + public static final int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8c86; + /** + * Accepted by the <param> parameter of GetIntegerIndexedvEXT and + * GetBooleanIndexedvEXT, and by the <pname> parameter of GetBooleanv, + * GetDoublev, GetIntegerv, and GetFloatv: + */ + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8c8f; + /** + * Accepted by the <bufferMode> parameter of TransformFeedbackAttribsNV and + * TransformFeedbackVaryingsNV: + */ + public static final int GL_INTERLEAVED_ATTRIBS_NV = 0x8c8c; + public static final int GL_SEPARATE_ATTRIBS_NV = 0x8c8d; + /** + * Accepted by the <target> parameter of BeginQuery, EndQuery, and + * GetQueryiv: + */ + public static final int GL_PRIMITIVES_GENERATED_NV = 0x8c87; + public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8c88; + /** + * Accepted by the <cap> parameter of Enable, Disable, and IsEnabled, and by + * the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and + * GetDoublev: + */ + public static final int GL_RASTERIZER_DISCARD_NV = 0x8c89; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv, + * and GetFloatv: + */ + public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8c8a; + public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8c8b; + public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8c80; + public static final int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8c7e; + /** + *Accepted by the <pname> parameter of GetProgramiv: + */ + public static final int GL_ACTIVE_VARYINGS_NV = 0x8c81; + public static final int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8c82; + public static final int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8c83; + /** + * Accepted by the <pname> parameter of GetBooleanv, GetDoublev, GetIntegerv, + * GetFloatv, and GetProgramiv: + */ + public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8c7f; + /** + *Accepted by the <attribs> parameter of TransformFeedbackAttribsNV: + */ + public static final int GL_BACK_PRIMARY_COLOR_NV = 0x8c77; + public static final int GL_BACK_SECONDARY_COLOR_NV = 0x8c78; + public static final int GL_TEXTURE_COORD_NV = 0x8c79; + public static final int GL_CLIP_DISTANCE_NV = 0x8c7a; + public static final int GL_VERTEX_ID_NV = 0x8c7b; + public static final int GL_PRIMITIVE_ID_NV = 0x8c7c; + public static final int GL_GENERIC_ATTRIB_NV = 0x8c7d; + + private NVTransformFeeback() { + } + + + public static void glBindBufferRangeNV(int target, int index, int buffer, long offset, long size) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glBindBufferRangeNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglBindBufferRangeNV(target, index, buffer, offset, size, function_pointer); + } + private static native void nglBindBufferRangeNV(int target, int index, int buffer, long offset, long size, long function_pointer); + + public static void glBindBufferOffsetNV(int target, int index, int buffer, long offset) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glBindBufferOffsetNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglBindBufferOffsetNV(target, index, buffer, offset, function_pointer); + } + private static native void nglBindBufferOffsetNV(int target, int index, int buffer, long offset, long function_pointer); + + public static void glBindBufferBaseNV(int target, int index, int buffer) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glBindBufferBaseNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglBindBufferBaseNV(target, index, buffer, function_pointer); + } + private static native void nglBindBufferBaseNV(int target, int index, int buffer, long function_pointer); + + public static void glTransformFeedbackAttribsNV(IntBuffer attribs, int bufferMode) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glTransformFeedbackAttribsNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(attribs); + nglTransformFeedbackAttribsNV((attribs.remaining()), attribs, attribs.position(), bufferMode, function_pointer); + } + private static native void nglTransformFeedbackAttribsNV(int count, IntBuffer attribs, int attribs_position, int bufferMode, long function_pointer); + + public static void glTransformFeedbackVaryingsNV(int program, IntBuffer locations, int bufferMode) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glTransformFeedbackVaryingsNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(locations); + nglTransformFeedbackVaryingsNV(program, (locations.remaining()), locations, locations.position(), bufferMode, function_pointer); + } + private static native void nglTransformFeedbackVaryingsNV(int program, int count, IntBuffer locations, int locations_position, int bufferMode, long function_pointer); + + public static void glBeginTransformFeedbackNV(int primitiveMode) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glBeginTransformFeedbackNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglBeginTransformFeedbackNV(primitiveMode, function_pointer); + } + private static native void nglBeginTransformFeedbackNV(int primitiveMode, long function_pointer); + + public static void glEndTransformFeedbackNV() { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glEndTransformFeedbackNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + nglEndTransformFeedbackNV(function_pointer); + } + private static native void nglEndTransformFeedbackNV(long function_pointer); + + public static int glGetVaryingLocationNV(int program, ByteBuffer name) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glGetVaryingLocationNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(name); + BufferChecks.checkNullTerminated(name); + int __result = nglGetVaryingLocationNV(program, name, name.position(), function_pointer); + return __result; + } + private static native int nglGetVaryingLocationNV(int program, ByteBuffer name, int name_position, long function_pointer); + + public static void glGetActiveVaryingNV(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glGetActiveVaryingNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(length, 1); + BufferChecks.checkBuffer(size, 1); + BufferChecks.checkBuffer(type, 1); + BufferChecks.checkDirect(name); + nglGetActiveVaryingNV(program, index, (name.remaining()), length, length.position(), size, size.position(), type, type.position(), name, name.position(), function_pointer); + } + private static native void nglGetActiveVaryingNV(int program, int index, int bufSize, IntBuffer length, int length_position, IntBuffer size, int size_position, IntBuffer type, int type_position, ByteBuffer name, int name_position, long function_pointer); + + public static void glActiveVaryingNV(int program, ByteBuffer name) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glActiveVaryingNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(name); + BufferChecks.checkNullTerminated(name); + nglActiveVaryingNV(program, name, name.position(), function_pointer); + } + private static native void nglActiveVaryingNV(int program, ByteBuffer name, int name_position, long function_pointer); + + public static void glGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location) { + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_transform_feeback_glGetTransformFeedbackVaryingNV_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkBuffer(location, 1); + nglGetTransformFeedbackVaryingNV(program, index, location, location.position(), function_pointer); + } + private static native void nglGetTransformFeedbackVaryingNV(int program, int index, IntBuffer location, int location_position, long function_pointer); +} diff --git a/src/generated/org/lwjgl/opengl/NVVertexArrayRange.java b/src/generated/org/lwjgl/opengl/NVVertexArrayRange.java index 5e234378..733d1342 100644 --- a/src/generated/org/lwjgl/opengl/NVVertexArrayRange.java +++ b/src/generated/org/lwjgl/opengl/NVVertexArrayRange.java @@ -18,31 +18,36 @@ public final class NVVertexArrayRange { public static void glVertexArrayRangeNV(ByteBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_array_range_glVertexArrayRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglVertexArrayRangeNV((pPointer.remaining()), pPointer, pPointer.position(), function_pointer); } public static void glVertexArrayRangeNV(DoubleBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_array_range_glVertexArrayRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglVertexArrayRangeNV((pPointer.remaining() << 3), pPointer, pPointer.position() << 3, function_pointer); } public static void glVertexArrayRangeNV(FloatBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_array_range_glVertexArrayRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglVertexArrayRangeNV((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, function_pointer); } public static void glVertexArrayRangeNV(IntBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_array_range_glVertexArrayRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglVertexArrayRangeNV((pPointer.remaining() << 2), pPointer, pPointer.position() << 2, function_pointer); } public static void glVertexArrayRangeNV(ShortBuffer pPointer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glVertexArrayRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_array_range_glVertexArrayRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pPointer); nglVertexArrayRangeNV((pPointer.remaining() << 1), pPointer, pPointer.position() << 1, function_pointer); @@ -50,14 +55,16 @@ public final class NVVertexArrayRange { private static native void nglVertexArrayRangeNV(int size, Buffer pPointer, int pPointer_position, long function_pointer); public static void glFlushVertexArrayRangeNV() { - long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glFlushVertexArrayRangeNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_array_range_glFlushVertexArrayRangeNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglFlushVertexArrayRangeNV(function_pointer); } private static native void nglFlushVertexArrayRangeNV(long function_pointer); public static java.nio.ByteBuffer glAllocateMemoryNV(int size, float readFrequency, float writeFrequency, float priority) { - long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glAllocateMemoryNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_array_range_glAllocateMemoryNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglAllocateMemoryNV(size, readFrequency, writeFrequency, priority, size, function_pointer); return __result; @@ -65,7 +72,8 @@ public final class NVVertexArrayRange { private static native java.nio.ByteBuffer nglAllocateMemoryNV(int size, float readFrequency, float writeFrequency, float priority, int result_size, long function_pointer); public static void glFreeMemoryNV(ByteBuffer pointer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_array_range_glFreeMemoryNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_array_range_glFreeMemoryNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(pointer); nglFreeMemoryNV(pointer, pointer.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/NVVertexProgram.java b/src/generated/org/lwjgl/opengl/NVVertexProgram.java index 9ee81e9b..1b24ebde 100644 --- a/src/generated/org/lwjgl/opengl/NVVertexProgram.java +++ b/src/generated/org/lwjgl/opengl/NVVertexProgram.java @@ -152,7 +152,8 @@ public final class NVVertexProgram extends NVProgram { public static void glExecuteProgramNV(int target, int id, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glExecuteProgramNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glExecuteProgramNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglExecuteProgramNV(target, id, params, params.position(), function_pointer); @@ -160,7 +161,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglExecuteProgramNV(int target, int id, FloatBuffer params, int params_position, long function_pointer); public static void glGetProgramParameterNV(int target, int index, int parameterName, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetProgramParameterfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glGetProgramParameterfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetProgramParameterfvNV(target, index, parameterName, params, params.position(), function_pointer); @@ -168,7 +170,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglGetProgramParameterfvNV(int target, int index, int parameterName, FloatBuffer params, int params_position, long function_pointer); public static void glGetProgramParameterNV(int target, int index, int parameterName, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetProgramParameterdvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glGetProgramParameterdvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetProgramParameterdvNV(target, index, parameterName, params, params.position(), function_pointer); @@ -176,7 +179,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglGetProgramParameterdvNV(int target, int index, int parameterName, DoubleBuffer params, int params_position, long function_pointer); public static void glGetTrackMatrixNV(int target, int address, int parameterName, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetTrackMatrixivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glGetTrackMatrixivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetTrackMatrixivNV(target, address, parameterName, params, params.position(), function_pointer); @@ -184,7 +188,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglGetTrackMatrixivNV(int target, int address, int parameterName, IntBuffer params, int params_position, long function_pointer); public static void glGetVertexAttribNV(int index, int parameterName, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribfvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glGetVertexAttribfvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribfvNV(index, parameterName, params, params.position(), function_pointer); @@ -192,7 +197,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglGetVertexAttribfvNV(int index, int parameterName, FloatBuffer params, int params_position, long function_pointer); public static void glGetVertexAttribNV(int index, int parameterName, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribdvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glGetVertexAttribdvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribdvNV(index, parameterName, params, params.position(), function_pointer); @@ -200,7 +206,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglGetVertexAttribdvNV(int index, int parameterName, DoubleBuffer params, int params_position, long function_pointer); public static void glGetVertexAttribNV(int index, int parameterName, IntBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribivNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glGetVertexAttribivNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkBuffer(params, 4); nglGetVertexAttribivNV(index, parameterName, params, params.position(), function_pointer); @@ -208,7 +215,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglGetVertexAttribivNV(int index, int parameterName, IntBuffer params, int params_position, long function_pointer); public static java.nio.ByteBuffer glGetVertexAttribPointerNV(int index, int parameterName, int result_size) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glGetVertexAttribPointervNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glGetVertexAttribPointervNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); java.nio.ByteBuffer __result = nglGetVertexAttribPointervNV(index, parameterName, result_size, function_pointer); return __result; @@ -216,21 +224,24 @@ public final class NVVertexProgram extends NVProgram { private static native java.nio.ByteBuffer nglGetVertexAttribPointervNV(int index, int parameterName, int result_size, long function_pointer); public static void glProgramParameter4fNV(int target, int index, float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glProgramParameter4fNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glProgramParameter4fNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglProgramParameter4fNV(target, index, x, y, z, w, function_pointer); } private static native void nglProgramParameter4fNV(int target, int index, float x, float y, float z, float w, long function_pointer); public static void glProgramParameter4dNV(int target, int index, double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glProgramParameter4dNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glProgramParameter4dNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglProgramParameter4dNV(target, index, x, y, z, w, function_pointer); } private static native void nglProgramParameter4dNV(int target, int index, double x, double y, double z, double w, long function_pointer); public static void glProgramParameters4NV(int target, int index, FloatBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glProgramParameters4fvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glProgramParameters4fvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglProgramParameters4fvNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); @@ -238,7 +249,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglProgramParameters4fvNV(int target, int index, int count, FloatBuffer params, int params_position, long function_pointer); public static void glProgramParameters4NV(int target, int index, DoubleBuffer params) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glProgramParameters4dvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glProgramParameters4dvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(params); nglProgramParameters4dvNV(target, index, (params.remaining()) >> 2, params, params.position(), function_pointer); @@ -246,154 +258,175 @@ public final class NVVertexProgram extends NVProgram { private static native void nglProgramParameters4dvNV(int target, int index, int count, DoubleBuffer params, int params_position, long function_pointer); public static void glTrackMatrixNV(int target, int address, int matrix, int transform) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glTrackMatrixNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glTrackMatrixNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglTrackMatrixNV(target, address, matrix, transform, function_pointer); } private static native void nglTrackMatrixNV(int target, int address, int matrix, int transform, long function_pointer); public static void glVertexAttribPointerNV(int index, int size, int type, int stride, DoubleBuffer buffer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribPointerNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; + GLChecks.getReferences(caps).NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position() << 3, function_pointer); } public static void glVertexAttribPointerNV(int index, int size, int type, int stride, FloatBuffer buffer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribPointerNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; + GLChecks.getReferences(caps).NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position() << 2, function_pointer); } public static void glVertexAttribPointerNV(int index, int size, int type, int stride, ByteBuffer buffer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribPointerNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; + GLChecks.getReferences(caps).NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position(), function_pointer); } public static void glVertexAttribPointerNV(int index, int size, int type, int stride, IntBuffer buffer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribPointerNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; + GLChecks.getReferences(caps).NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position() << 2, function_pointer); } public static void glVertexAttribPointerNV(int index, int size, int type, int stride, ShortBuffer buffer) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribPointerNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOdisabled(); + GLChecks.ensureArrayVBOdisabled(caps); BufferChecks.checkDirect(buffer); - GLChecks.getReferences().NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; + GLChecks.getReferences(caps).NV_vertex_program_glVertexAttribPointerNV_buffer = buffer; nglVertexAttribPointerNV(index, size, type, stride, buffer, buffer.position() << 1, function_pointer); } private static native void nglVertexAttribPointerNV(int index, int size, int type, int stride, Buffer buffer, int buffer_position, long function_pointer); public static void glVertexAttribPointerNV(int index, int size, int type, int stride, long buffer_buffer_offset) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribPointerNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribPointerNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); - GLChecks.ensureArrayVBOenabled(); + GLChecks.ensureArrayVBOenabled(caps); nglVertexAttribPointerNVBO(index, size, type, stride, buffer_buffer_offset, function_pointer); } private static native void nglVertexAttribPointerNVBO(int index, int size, int type, int stride, long buffer_buffer_offset, long function_pointer); public static void glVertexAttrib1sNV(int index, short x) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib1sNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib1sNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1sNV(index, x, function_pointer); } private static native void nglVertexAttrib1sNV(int index, short x, long function_pointer); public static void glVertexAttrib1fNV(int index, float x) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib1fNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib1fNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1fNV(index, x, function_pointer); } private static native void nglVertexAttrib1fNV(int index, float x, long function_pointer); public static void glVertexAttrib1dNV(int index, double x) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib1dNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib1dNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib1dNV(index, x, function_pointer); } private static native void nglVertexAttrib1dNV(int index, double x, long function_pointer); public static void glVertexAttrib2sNV(int index, short x, short y) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib2sNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib2sNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2sNV(index, x, y, function_pointer); } private static native void nglVertexAttrib2sNV(int index, short x, short y, long function_pointer); public static void glVertexAttrib2fNV(int index, float x, float y) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib2fNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib2fNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2fNV(index, x, y, function_pointer); } private static native void nglVertexAttrib2fNV(int index, float x, float y, long function_pointer); public static void glVertexAttrib2dNV(int index, double x, double y) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib2dNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib2dNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib2dNV(index, x, y, function_pointer); } private static native void nglVertexAttrib2dNV(int index, double x, double y, long function_pointer); public static void glVertexAttrib3sNV(int index, short x, short y, short z) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib3sNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib3sNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3sNV(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3sNV(int index, short x, short y, short z, long function_pointer); public static void glVertexAttrib3fNV(int index, float x, float y, float z) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib3fNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib3fNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3fNV(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3fNV(int index, float x, float y, float z, long function_pointer); public static void glVertexAttrib3dNV(int index, double x, double y, double z) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib3dNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib3dNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib3dNV(index, x, y, z, function_pointer); } private static native void nglVertexAttrib3dNV(int index, double x, double y, double z, long function_pointer); public static void glVertexAttrib4sNV(int index, short x, short y, short z, short w) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4sNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib4sNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4sNV(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4sNV(int index, short x, short y, short z, short w, long function_pointer); public static void glVertexAttrib4fNV(int index, float x, float y, float z, float w) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4fNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib4fNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4fNV(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4fNV(int index, float x, float y, float z, float w, long function_pointer); public static void glVertexAttrib4dNV(int index, double x, double y, double z, double w) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4dNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib4dNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4dNV(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4dNV(int index, double x, double y, double z, double w, long function_pointer); public static void glVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttrib4ubNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttrib4ubNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); nglVertexAttrib4ubNV(index, x, y, z, w, function_pointer); } private static native void nglVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w, long function_pointer); public static void glVertexAttribs1NV(int index, ShortBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs1svNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs1svNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs1svNV(index, (v.remaining()), v, v.position(), function_pointer); @@ -401,7 +434,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs1svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer); public static void glVertexAttribs1NV(int index, FloatBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs1fvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs1fvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs1fvNV(index, (v.remaining()), v, v.position(), function_pointer); @@ -409,7 +443,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs1fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer); public static void glVertexAttribs1NV(int index, DoubleBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs1dvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs1dvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs1dvNV(index, (v.remaining()), v, v.position(), function_pointer); @@ -417,7 +452,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs1dvNV(int index, int n, DoubleBuffer v, int v_position, long function_pointer); public static void glVertexAttribs2NV(int index, ShortBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs2svNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs2svNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs2svNV(index, (v.remaining()) >> 1, v, v.position(), function_pointer); @@ -425,7 +461,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs2svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer); public static void glVertexAttribs2NV(int index, FloatBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs2fvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs2fvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs2fvNV(index, (v.remaining()) >> 1, v, v.position(), function_pointer); @@ -433,7 +470,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs2fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer); public static void glVertexAttribs2NV(int index, DoubleBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs2dvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs2dvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs2dvNV(index, (v.remaining()) >> 1, v, v.position(), function_pointer); @@ -441,7 +479,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs2dvNV(int index, int n, DoubleBuffer v, int v_position, long function_pointer); public static void glVertexAttribs3NV(int index, ShortBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs3svNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs3svNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs3svNV(index, (v.remaining()) / 3, v, v.position(), function_pointer); @@ -449,7 +488,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs3svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer); public static void glVertexAttribs3NV(int index, FloatBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs3fvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs3fvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs3fvNV(index, (v.remaining()) / 3, v, v.position(), function_pointer); @@ -457,7 +497,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs3fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer); public static void glVertexAttribs3NV(int index, DoubleBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs3dvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs3dvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs3dvNV(index, (v.remaining()) / 3, v, v.position(), function_pointer); @@ -465,7 +506,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs3dvNV(int index, int n, DoubleBuffer v, int v_position, long function_pointer); public static void glVertexAttribs4NV(int index, ShortBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs4svNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs4svNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs4svNV(index, (v.remaining()) >> 2, v, v.position(), function_pointer); @@ -473,7 +515,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs4svNV(int index, int n, ShortBuffer v, int v_position, long function_pointer); public static void glVertexAttribs4NV(int index, FloatBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs4fvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs4fvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs4fvNV(index, (v.remaining()) >> 2, v, v.position(), function_pointer); @@ -481,7 +524,8 @@ public final class NVVertexProgram extends NVProgram { private static native void nglVertexAttribs4fvNV(int index, int n, FloatBuffer v, int v_position, long function_pointer); public static void glVertexAttribs4NV(int index, DoubleBuffer v) { - long function_pointer = GLContext.getCapabilities().NV_vertex_program_glVertexAttribs4dvNV_pointer; + ContextCapabilities caps = GLContext.getCapabilities(); + long function_pointer = caps.NV_vertex_program_glVertexAttribs4dvNV_pointer; BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkDirect(v); nglVertexAttribs4dvNV(index, (v.remaining()) >> 2, v, v.position(), function_pointer); diff --git a/src/generated/org/lwjgl/opengl/SGISGenerateMipmap.java b/src/generated/org/lwjgl/opengl/SGISGenerateMipmap.java index dfa8292f..f8893c77 100644 --- a/src/generated/org/lwjgl/opengl/SGISGenerateMipmap.java +++ b/src/generated/org/lwjgl/opengl/SGISGenerateMipmap.java @@ -1,24 +1,24 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class SGISGenerateMipmap { - /** - * Accepted by the <pname> parameter of TexParameteri, TexParameterf, - * TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv. - */ - public static final int GL_GENERATE_MIPMAP_SGIS = 0x8191; - /** - * Accepted by the <target> parameter of Hint, and by the - * parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. - */ - public static final int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192; - - private SGISGenerateMipmap() { - } - -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class SGISGenerateMipmap { + /** + * Accepted by the <pname> parameter of TexParameteri, TexParameterf, + * TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv. + */ + public static final int GL_GENERATE_MIPMAP_SGIS = 0x8191; + /** + * Accepted by the <target> parameter of Hint, and by the + * parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. + */ + public static final int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192; + + private SGISGenerateMipmap() { + } + +} diff --git a/src/generated/org/lwjgl/opengl/SGISTextureLOD.java b/src/generated/org/lwjgl/opengl/SGISTextureLOD.java index 704ac591..d5edd8d3 100644 --- a/src/generated/org/lwjgl/opengl/SGISTextureLOD.java +++ b/src/generated/org/lwjgl/opengl/SGISTextureLOD.java @@ -1,22 +1,22 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -package org.lwjgl.opengl; - -import org.lwjgl.LWJGLException; -import org.lwjgl.BufferChecks; -import java.nio.*; - -public final class SGISTextureLOD { - /** - * Accepted by the <pname> parameter of TexParameteri, TexParameterf, - * TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv. - */ - public static final int GL_TEXTURE_MIN_LOD_SGIS = 0x813a; - public static final int GL_TEXTURE_MAX_LOD_SGIS = 0x813b; - public static final int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813c; - public static final int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813d; - - private SGISTextureLOD() { - } - -} +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +package org.lwjgl.opengl; + +import org.lwjgl.LWJGLException; +import org.lwjgl.BufferChecks; +import java.nio.*; + +public final class SGISTextureLOD { + /** + * Accepted by the <pname> parameter of TexParameteri, TexParameterf, + * TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv. + */ + public static final int GL_TEXTURE_MIN_LOD_SGIS = 0x813a; + public static final int GL_TEXTURE_MAX_LOD_SGIS = 0x813b; + public static final int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813c; + public static final int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813d; + + private SGISTextureLOD() { + } + +} diff --git a/src/java/org/lwjgl/opengl/GLChecks.java b/src/java/org/lwjgl/opengl/GLChecks.java index 02dfb756..c20ca01d 100644 --- a/src/java/org/lwjgl/opengl/GLChecks.java +++ b/src/java/org/lwjgl/opengl/GLChecks.java @@ -55,70 +55,69 @@ class GLChecks { private GLChecks() { } - static References getReferences() { - return StateTracker.getReferencesStack().getReferences(); + static References getReferences(ContextCapabilities caps) { + return StateTracker.getReferencesStack(caps).getReferences(); } - private static boolean checkBufferObject(int buffer_enum, boolean state) { - IntBuffer scratch_buffer = GLContext.getCapabilities().scratch_int_buffer; + private static boolean checkBufferObject(ContextCapabilities caps, int buffer_enum, boolean state) { + IntBuffer scratch_buffer = caps.scratch_int_buffer; GL11.glGetInteger(buffer_enum, scratch_buffer); boolean is_enabled = scratch_buffer.get(0) != 0; return state == is_enabled; } /** Helper method to ensure that array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */ - static void ensureArrayVBOdisabled() { - if ((GLContext.getCapabilities().OpenGL15 && !checkBufferObject(GL15.GL_ARRAY_BUFFER_BINDING, false) || - (GLContext.getCapabilities().GL_ARB_vertex_buffer_object && !checkBufferObject(ARBVertexBufferObject.GL_ARRAY_BUFFER_BINDING_ARB, false)))) + static void ensureArrayVBOdisabled(ContextCapabilities caps) { + if ((caps.OpenGL15 && !checkBufferObject(caps, GL15.GL_ARRAY_BUFFER_BINDING, false) || + (caps.GL_ARB_vertex_buffer_object && !checkBufferObject(caps, ARBVertexBufferObject.GL_ARRAY_BUFFER_BINDING_ARB, false)))) throw new OpenGLException("Cannot use Buffers when Array Buffer Object is enabled"); } /** Helper method to ensure that array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */ - static void ensureArrayVBOenabled() { - if ((GLContext.getCapabilities().OpenGL15 && !checkBufferObject(GL15.GL_ARRAY_BUFFER_BINDING, true) || - (GLContext.getCapabilities().GL_ARB_vertex_buffer_object && !checkBufferObject(ARBVertexBufferObject.GL_ARRAY_BUFFER_BINDING_ARB, true)))) + static void ensureArrayVBOenabled(ContextCapabilities caps) { + if ((caps.OpenGL15 && !checkBufferObject(caps, GL15.GL_ARRAY_BUFFER_BINDING, true) || + (caps.GL_ARB_vertex_buffer_object && !checkBufferObject(caps, ARBVertexBufferObject.GL_ARRAY_BUFFER_BINDING_ARB, true)))) throw new OpenGLException("Cannot use offsets when Array Buffer Object is disabled"); } /** Helper method to ensure that element array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */ - static void ensureElementVBOdisabled() { - if ((GLContext.getCapabilities().OpenGL15 && !checkBufferObject(GL15.GL_ELEMENT_ARRAY_BUFFER_BINDING, false) || - (GLContext.getCapabilities().GL_ARB_vertex_buffer_object && !checkBufferObject(ARBVertexBufferObject.GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, false)))) + static void ensureElementVBOdisabled(ContextCapabilities caps) { + if ((caps.OpenGL15 && !checkBufferObject(caps, GL15.GL_ELEMENT_ARRAY_BUFFER_BINDING, false) || + (caps.GL_ARB_vertex_buffer_object && !checkBufferObject(caps, ARBVertexBufferObject.GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, false)))) throw new OpenGLException("Cannot use Buffers when Element Array Buffer Object is enabled"); } /** Helper method to ensure that element array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */ - static void ensureElementVBOenabled() { - if ((GLContext.getCapabilities().OpenGL15 && !checkBufferObject(GL15.GL_ELEMENT_ARRAY_BUFFER_BINDING, true) || - (GLContext.getCapabilities().GL_ARB_vertex_buffer_object && !checkBufferObject(ARBVertexBufferObject.GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, true)))) + static void ensureElementVBOenabled(ContextCapabilities caps) { + if ((caps.OpenGL15 && !checkBufferObject(caps, GL15.GL_ELEMENT_ARRAY_BUFFER_BINDING, true) || + (caps.GL_ARB_vertex_buffer_object && !checkBufferObject(caps, ARBVertexBufferObject.GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, true)))) throw new OpenGLException("Cannot use offsets when Element Array Buffer Object is disabled"); } /** Helper method to ensure that pixel pack buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */ - static void ensurePackPBOdisabled() { - if ((GLContext.getCapabilities().GL_ARB_pixel_buffer_object && !checkBufferObject(ARBPixelBufferObject.GL_PIXEL_PACK_BUFFER_BINDING_ARB, false) || - (GLContext.getCapabilities().GL_EXT_pixel_buffer_object && !checkBufferObject(EXTPixelBufferObject.GL_PIXEL_PACK_BUFFER_BINDING_EXT, false)))) + static void ensurePackPBOdisabled(ContextCapabilities caps) { + if ((caps.GL_ARB_pixel_buffer_object && !checkBufferObject(caps, ARBPixelBufferObject.GL_PIXEL_PACK_BUFFER_BINDING_ARB, false) || (caps.GL_EXT_pixel_buffer_object && !checkBufferObject(caps, EXTPixelBufferObject.GL_PIXEL_PACK_BUFFER_BINDING_EXT, false)))) throw new OpenGLException("Cannot use Buffers when Pixel Pack Buffer Object is enabled"); } /** Helper method to ensure that pixel pack buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */ - static void ensurePackPBOenabled() { - if ((GLContext.getCapabilities().GL_ARB_pixel_buffer_object && !checkBufferObject(ARBPixelBufferObject.GL_PIXEL_PACK_BUFFER_BINDING_ARB, true) || - (GLContext.getCapabilities().GL_EXT_pixel_buffer_object && !checkBufferObject(EXTPixelBufferObject.GL_PIXEL_PACK_BUFFER_BINDING_EXT, true)))) + static void ensurePackPBOenabled(ContextCapabilities caps) { + if ((caps.GL_ARB_pixel_buffer_object && !checkBufferObject(caps, ARBPixelBufferObject.GL_PIXEL_PACK_BUFFER_BINDING_ARB, true) || + (caps.GL_EXT_pixel_buffer_object && !checkBufferObject(caps, EXTPixelBufferObject.GL_PIXEL_PACK_BUFFER_BINDING_EXT, true)))) throw new OpenGLException("Cannot use offsets when Pixel Pack Buffer Object is disabled"); } /** Helper method to ensure that pixel unpack buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */ - static void ensureUnpackPBOdisabled() { - if ((GLContext.getCapabilities().GL_ARB_pixel_buffer_object && !checkBufferObject(ARBPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_BINDING_ARB, false) || - (GLContext.getCapabilities().GL_EXT_pixel_buffer_object && !checkBufferObject(EXTPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_BINDING_EXT, false)))) + static void ensureUnpackPBOdisabled(ContextCapabilities caps) { + if ((caps.GL_ARB_pixel_buffer_object && !checkBufferObject(caps, ARBPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_BINDING_ARB, false) || + (caps.GL_EXT_pixel_buffer_object && !checkBufferObject(caps, EXTPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_BINDING_EXT, false)))) throw new OpenGLException("Cannot use Buffers when Pixel Unpack Buffer Object is enabled"); } /** Helper method to ensure that pixel unpack buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */ - static void ensureUnpackPBOenabled() { - if ((GLContext.getCapabilities().GL_ARB_pixel_buffer_object && !checkBufferObject(ARBPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_BINDING_ARB, true) || - (GLContext.getCapabilities().GL_EXT_pixel_buffer_object && !checkBufferObject(EXTPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_BINDING_EXT, true)))) + static void ensureUnpackPBOenabled(ContextCapabilities caps) { + if ((caps.GL_ARB_pixel_buffer_object && !checkBufferObject(caps, ARBPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_BINDING_ARB, true) || + (caps.GL_EXT_pixel_buffer_object && !checkBufferObject(caps, EXTPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_BINDING_EXT, true)))) throw new OpenGLException("Cannot use offsets when Pixel Unpack Buffer Object is disabled"); } diff --git a/src/java/org/lwjgl/opengl/StateTracker.java b/src/java/org/lwjgl/opengl/StateTracker.java index 4af9b5d8..16f9bc13 100644 --- a/src/java/org/lwjgl/opengl/StateTracker.java +++ b/src/java/org/lwjgl/opengl/StateTracker.java @@ -40,8 +40,8 @@ final class StateTracker { attrib_stack = new StateStack(0); } - static void popAttrib() { - getTracker().doPopAttrib(); + static void popAttrib(ContextCapabilities caps) { + caps.tracker.doPopAttrib(); } private void doPopAttrib() { @@ -50,8 +50,8 @@ final class StateTracker { } } - static void pushAttrib(int mask) { - getTracker().doPushAttrib(mask); + static void pushAttrib(ContextCapabilities caps, int mask) { + caps.tracker.doPushAttrib(mask); } private void doPushAttrib(int mask) { @@ -62,11 +62,7 @@ final class StateTracker { } } - private static StateTracker getTracker() { - return GLContext.getCapabilities().tracker; - } - - static ReferencesStack getReferencesStack() { - return GLContext.getCapabilities().tracker.references_stack; + static ReferencesStack getReferencesStack(ContextCapabilities caps) { + return caps.tracker.references_stack; } } diff --git a/src/java/org/lwjgl/util/generator/JavaMethodsGenerator.java b/src/java/org/lwjgl/util/generator/JavaMethodsGenerator.java index 4ac4d69f..74301c36 100644 --- a/src/java/org/lwjgl/util/generator/JavaMethodsGenerator.java +++ b/src/java/org/lwjgl/util/generator/JavaMethodsGenerator.java @@ -158,7 +158,7 @@ public class JavaMethodsGenerator { writer.print("enabled"); else writer.print("disabled"); - writer.println("();"); + writer.println("(caps);"); } private static void printBufferObjectChecks(PrintWriter writer, MethodDeclaration method, Mode mode) { @@ -184,15 +184,16 @@ public class JavaMethodsGenerator { generateParametersJava(writer, method, typeinfos_instance, false, mode); TypeMirror result_type = Utils.getMethodReturnType(method); writer.println(") {"); - Code code_annotation = method.getAnnotation(Code.class); - if (code_annotation != null) - writer.println(code_annotation.value()); if (context_specific) { - writer.print("\t\tlong " + Utils.FUNCTION_POINTER_VAR_NAME + " = GLContext.getCapabilities()."); + writer.println("\t\tContextCapabilities caps = GLContext.getCapabilities();"); + writer.print("\t\tlong " + Utils.FUNCTION_POINTER_VAR_NAME + " = caps."); writer.println(Utils.getFunctionAddressName(interface_decl, method) + ";"); writer.print("\t\tBufferChecks.checkFunctionAddress("); writer.println(Utils.FUNCTION_POINTER_VAR_NAME + ");"); } + Code code_annotation = method.getAnnotation(Code.class); + if (code_annotation != null) + writer.println(code_annotation.value()); printBufferObjectChecks(writer, method, mode); printParameterChecks(writer, method, mode); printParameterCaching(writer, interface_decl, method, mode); @@ -399,7 +400,7 @@ public class JavaMethodsGenerator { param.getAnnotation(CachedReference.class) != null && (mode != Mode.BUFFEROBJECT || param.getAnnotation(BufferObject.class) == null) && param.getAnnotation(Result.class) == null) { - writer.print("\t\t" + Utils.CHECKS_CLASS_NAME + ".getReferences()."); + writer.print("\t\t" + Utils.CHECKS_CLASS_NAME + ".getReferences(caps)."); writer.print(Utils.getReferenceName(interface_decl, method, param) + " = "); writer.println(param.getSimpleName() + ";"); } diff --git a/src/native/generated/org_lwjgl_opengl_EXTBindableUniform.c b/src/native/generated/org_lwjgl_opengl_EXTBindableUniform.c index 23bbfeb4..49ff1fa7 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTBindableUniform.c +++ b/src/native/generated/org_lwjgl_opengl_EXTBindableUniform.c @@ -1,26 +1,26 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glUniformBufferEXTPROC) (GLuint program, GLint location, GLuint buffer); -typedef GLint (APIENTRY *glGetUniformBufferSizeEXTPROC) (GLuint program, GLint location); -typedef GLintptr (APIENTRY *glGetUniformOffsetEXTPROC) (GLuint program, GLint location); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBindableUniform_nglUniformBufferEXT(JNIEnv *env, jclass clazz, jint program, jint location, jint buffer, jlong function_pointer) { - glUniformBufferEXTPROC glUniformBufferEXT = (glUniformBufferEXTPROC)((intptr_t)function_pointer); - glUniformBufferEXT(program, location, buffer); -} - -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTBindableUniform_nglGetUniformBufferSizeEXT(JNIEnv *env, jclass clazz, jint program, jint location, jlong function_pointer) { - glGetUniformBufferSizeEXTPROC glGetUniformBufferSizeEXT = (glGetUniformBufferSizeEXTPROC)((intptr_t)function_pointer); - GLint __result = glGetUniformBufferSizeEXT(program, location); - return __result; -} - -JNIEXPORT jlong JNICALL Java_org_lwjgl_opengl_EXTBindableUniform_nglGetUniformOffsetEXT(JNIEnv *env, jclass clazz, jint program, jint location, jlong function_pointer) { - glGetUniformOffsetEXTPROC glGetUniformOffsetEXT = (glGetUniformOffsetEXTPROC)((intptr_t)function_pointer); - GLintptr __result = glGetUniformOffsetEXT(program, location); - return __result; -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glUniformBufferEXTPROC) (GLuint program, GLint location, GLuint buffer); +typedef GLint (APIENTRY *glGetUniformBufferSizeEXTPROC) (GLuint program, GLint location); +typedef GLintptr (APIENTRY *glGetUniformOffsetEXTPROC) (GLuint program, GLint location); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBindableUniform_nglUniformBufferEXT(JNIEnv *env, jclass clazz, jint program, jint location, jint buffer, jlong function_pointer) { + glUniformBufferEXTPROC glUniformBufferEXT = (glUniformBufferEXTPROC)((intptr_t)function_pointer); + glUniformBufferEXT(program, location, buffer); +} + +JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTBindableUniform_nglGetUniformBufferSizeEXT(JNIEnv *env, jclass clazz, jint program, jint location, jlong function_pointer) { + glGetUniformBufferSizeEXTPROC glGetUniformBufferSizeEXT = (glGetUniformBufferSizeEXTPROC)((intptr_t)function_pointer); + GLint __result = glGetUniformBufferSizeEXT(program, location); + return __result; +} + +JNIEXPORT jlong JNICALL Java_org_lwjgl_opengl_EXTBindableUniform_nglGetUniformOffsetEXT(JNIEnv *env, jclass clazz, jint program, jint location, jlong function_pointer) { + glGetUniformOffsetEXTPROC glGetUniformOffsetEXT = (glGetUniformOffsetEXTPROC)((intptr_t)function_pointer); + GLintptr __result = glGetUniformOffsetEXT(program, location); + return __result; +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTBlendColor.c b/src/native/generated/org_lwjgl_opengl_EXTBlendColor.c index a10457e6..1657e1a6 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTBlendColor.c +++ b/src/native/generated/org_lwjgl_opengl_EXTBlendColor.c @@ -1,12 +1,12 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glBlendColorEXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendColor_nglBlendColorEXT(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jfloat alpha, jlong function_pointer) { - glBlendColorEXTPROC glBlendColorEXT = (glBlendColorEXTPROC)((intptr_t)function_pointer); - glBlendColorEXT(red, green, blue, alpha); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glBlendColorEXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendColor_nglBlendColorEXT(JNIEnv *env, jclass clazz, jfloat red, jfloat green, jfloat blue, jfloat alpha, jlong function_pointer) { + glBlendColorEXTPROC glBlendColorEXT = (glBlendColorEXTPROC)((intptr_t)function_pointer); + glBlendColorEXT(red, green, blue, alpha); +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTBlendMinmax.c b/src/native/generated/org_lwjgl_opengl_EXTBlendMinmax.c index 8caedb9d..99f7c1e8 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTBlendMinmax.c +++ b/src/native/generated/org_lwjgl_opengl_EXTBlendMinmax.c @@ -1,12 +1,12 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glBlendEquationEXTPROC) (GLenum mode); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendMinmax_nglBlendEquationEXT(JNIEnv *env, jclass clazz, jint mode, jlong function_pointer) { - glBlendEquationEXTPROC glBlendEquationEXT = (glBlendEquationEXTPROC)((intptr_t)function_pointer); - glBlendEquationEXT(mode); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glBlendEquationEXTPROC) (GLenum mode); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendMinmax_nglBlendEquationEXT(JNIEnv *env, jclass clazz, jint mode, jlong function_pointer) { + glBlendEquationEXTPROC glBlendEquationEXT = (glBlendEquationEXTPROC)((intptr_t)function_pointer); + glBlendEquationEXT(mode); +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTDrawBuffers2.c b/src/native/generated/org_lwjgl_opengl_EXTDrawBuffers2.c index 51b92bc1..e7d014ca 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTDrawBuffers2.c +++ b/src/native/generated/org_lwjgl_opengl_EXTDrawBuffers2.c @@ -1,45 +1,45 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glColorMaskIndexedEXTPROC) (GLuint buf, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -typedef void (APIENTRY *glGetBooleanIndexedvEXTPROC) (GLenum value, GLuint index, GLboolean * data); -typedef void (APIENTRY *glGetIntegerIndexedvEXTPROC) (GLenum value, GLuint index, GLint * data); -typedef void (APIENTRY *glEnableIndexedEXTPROC) (GLenum target, GLuint index); -typedef void (APIENTRY *glDisableIndexedEXTPROC) (GLenum target, GLuint index); -typedef GLboolean (APIENTRY *glIsEnabledIndexedEXTPROC) (GLenum target, GLuint index); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglColorMaskIndexedEXT(JNIEnv *env, jclass clazz, jint buf, jboolean r, jboolean g, jboolean b, jboolean a, jlong function_pointer) { - glColorMaskIndexedEXTPROC glColorMaskIndexedEXT = (glColorMaskIndexedEXTPROC)((intptr_t)function_pointer); - glColorMaskIndexedEXT(buf, r, g, b, a); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglGetBooleanIndexedvEXT(JNIEnv *env, jclass clazz, jint value, jint index, jobject data, jint data_position, jlong function_pointer) { - GLboolean *data_address = ((GLboolean *)(*env)->GetDirectBufferAddress(env, data)) + data_position; - glGetBooleanIndexedvEXTPROC glGetBooleanIndexedvEXT = (glGetBooleanIndexedvEXTPROC)((intptr_t)function_pointer); - glGetBooleanIndexedvEXT(value, index, data_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglGetIntegerIndexedvEXT(JNIEnv *env, jclass clazz, jint value, jint index, jobject data, jint data_position, jlong function_pointer) { - GLint *data_address = ((GLint *)(*env)->GetDirectBufferAddress(env, data)) + data_position; - glGetIntegerIndexedvEXTPROC glGetIntegerIndexedvEXT = (glGetIntegerIndexedvEXTPROC)((intptr_t)function_pointer); - glGetIntegerIndexedvEXT(value, index, data_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglEnableIndexedEXT(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) { - glEnableIndexedEXTPROC glEnableIndexedEXT = (glEnableIndexedEXTPROC)((intptr_t)function_pointer); - glEnableIndexedEXT(target, index); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglDisableIndexedEXT(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) { - glDisableIndexedEXTPROC glDisableIndexedEXT = (glDisableIndexedEXTPROC)((intptr_t)function_pointer); - glDisableIndexedEXT(target, index); -} - -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglIsEnabledIndexedEXT(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) { - glIsEnabledIndexedEXTPROC glIsEnabledIndexedEXT = (glIsEnabledIndexedEXTPROC)((intptr_t)function_pointer); - GLboolean __result = glIsEnabledIndexedEXT(target, index); - return __result; -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glColorMaskIndexedEXTPROC) (GLuint buf, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +typedef void (APIENTRY *glGetBooleanIndexedvEXTPROC) (GLenum value, GLuint index, GLboolean * data); +typedef void (APIENTRY *glGetIntegerIndexedvEXTPROC) (GLenum value, GLuint index, GLint * data); +typedef void (APIENTRY *glEnableIndexedEXTPROC) (GLenum target, GLuint index); +typedef void (APIENTRY *glDisableIndexedEXTPROC) (GLenum target, GLuint index); +typedef GLboolean (APIENTRY *glIsEnabledIndexedEXTPROC) (GLenum target, GLuint index); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglColorMaskIndexedEXT(JNIEnv *env, jclass clazz, jint buf, jboolean r, jboolean g, jboolean b, jboolean a, jlong function_pointer) { + glColorMaskIndexedEXTPROC glColorMaskIndexedEXT = (glColorMaskIndexedEXTPROC)((intptr_t)function_pointer); + glColorMaskIndexedEXT(buf, r, g, b, a); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglGetBooleanIndexedvEXT(JNIEnv *env, jclass clazz, jint value, jint index, jobject data, jint data_position, jlong function_pointer) { + GLboolean *data_address = ((GLboolean *)(*env)->GetDirectBufferAddress(env, data)) + data_position; + glGetBooleanIndexedvEXTPROC glGetBooleanIndexedvEXT = (glGetBooleanIndexedvEXTPROC)((intptr_t)function_pointer); + glGetBooleanIndexedvEXT(value, index, data_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglGetIntegerIndexedvEXT(JNIEnv *env, jclass clazz, jint value, jint index, jobject data, jint data_position, jlong function_pointer) { + GLint *data_address = ((GLint *)(*env)->GetDirectBufferAddress(env, data)) + data_position; + glGetIntegerIndexedvEXTPROC glGetIntegerIndexedvEXT = (glGetIntegerIndexedvEXTPROC)((intptr_t)function_pointer); + glGetIntegerIndexedvEXT(value, index, data_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglEnableIndexedEXT(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) { + glEnableIndexedEXTPROC glEnableIndexedEXT = (glEnableIndexedEXTPROC)((intptr_t)function_pointer); + glEnableIndexedEXT(target, index); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglDisableIndexedEXT(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) { + glDisableIndexedEXTPROC glDisableIndexedEXT = (glDisableIndexedEXTPROC)((intptr_t)function_pointer); + glDisableIndexedEXT(target, index); +} + +JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTDrawBuffers2_nglIsEnabledIndexedEXT(JNIEnv *env, jclass clazz, jint target, jint index, jlong function_pointer) { + glIsEnabledIndexedEXTPROC glIsEnabledIndexedEXT = (glIsEnabledIndexedEXTPROC)((intptr_t)function_pointer); + GLboolean __result = glIsEnabledIndexedEXT(target, index); + return __result; +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTDrawInstanced.c b/src/native/generated/org_lwjgl_opengl_EXTDrawInstanced.c index 44632e65..f6b1211a 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTDrawInstanced.c +++ b/src/native/generated/org_lwjgl_opengl_EXTDrawInstanced.c @@ -1,25 +1,25 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glDrawArraysInstancedEXTPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); -typedef void (APIENTRY *glDrawElementsInstancedEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid * indices, GLsizei primcount); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawInstanced_nglDrawArraysInstancedEXT(JNIEnv *env, jclass clazz, jint mode, jint first, jint count, jint primcount, jlong function_pointer) { - glDrawArraysInstancedEXTPROC glDrawArraysInstancedEXT = (glDrawArraysInstancedEXTPROC)((intptr_t)function_pointer); - glDrawArraysInstancedEXT(mode, first, count, primcount); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawInstanced_nglDrawElementsInstancedEXT(JNIEnv *env, jclass clazz, jint mode, jint count, jint type, jobject indices, jint indices_position, jint primcount, jlong function_pointer) { - const GLvoid *indices_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, indices)) + indices_position)); - glDrawElementsInstancedEXTPROC glDrawElementsInstancedEXT = (glDrawElementsInstancedEXTPROC)((intptr_t)function_pointer); - glDrawElementsInstancedEXT(mode, count, type, indices_address, primcount); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawInstanced_nglDrawElementsInstancedEXTBO(JNIEnv *env, jclass clazz, jint mode, jint count, jint type, jlong indices_buffer_offset, jint primcount, jlong function_pointer) { - const GLvoid *indices_address = ((const GLvoid *)offsetToPointer(indices_buffer_offset)); - glDrawElementsInstancedEXTPROC glDrawElementsInstancedEXT = (glDrawElementsInstancedEXTPROC)((intptr_t)function_pointer); - glDrawElementsInstancedEXT(mode, count, type, indices_address, primcount); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glDrawArraysInstancedEXTPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); +typedef void (APIENTRY *glDrawElementsInstancedEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid * indices, GLsizei primcount); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawInstanced_nglDrawArraysInstancedEXT(JNIEnv *env, jclass clazz, jint mode, jint first, jint count, jint primcount, jlong function_pointer) { + glDrawArraysInstancedEXTPROC glDrawArraysInstancedEXT = (glDrawArraysInstancedEXTPROC)((intptr_t)function_pointer); + glDrawArraysInstancedEXT(mode, first, count, primcount); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawInstanced_nglDrawElementsInstancedEXT(JNIEnv *env, jclass clazz, jint mode, jint count, jint type, jobject indices, jint indices_position, jint primcount, jlong function_pointer) { + const GLvoid *indices_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, indices)) + indices_position)); + glDrawElementsInstancedEXTPROC glDrawElementsInstancedEXT = (glDrawElementsInstancedEXTPROC)((intptr_t)function_pointer); + glDrawElementsInstancedEXT(mode, count, type, indices_address, primcount); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawInstanced_nglDrawElementsInstancedEXTBO(JNIEnv *env, jclass clazz, jint mode, jint count, jint type, jlong indices_buffer_offset, jint primcount, jlong function_pointer) { + const GLvoid *indices_address = ((const GLvoid *)offsetToPointer(indices_buffer_offset)); + glDrawElementsInstancedEXTPROC glDrawElementsInstancedEXT = (glDrawElementsInstancedEXTPROC)((intptr_t)function_pointer); + glDrawElementsInstancedEXT(mode, count, type, indices_address, primcount); +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTGeometryShader4.c b/src/native/generated/org_lwjgl_opengl_EXTGeometryShader4.c index 1bb78393..8e68734f 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTGeometryShader4.c +++ b/src/native/generated/org_lwjgl_opengl_EXTGeometryShader4.c @@ -1,30 +1,30 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glProgramParameteriEXTPROC) (GLuint program, GLenum pname, GLint value); -typedef void (APIENTRY *glFramebufferTextureEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRY *glFramebufferTextureLayerEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (APIENTRY *glFramebufferTextureFaceEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_nglProgramParameteriEXT(JNIEnv *env, jclass clazz, jint program, jint pname, jint value, jlong function_pointer) { - glProgramParameteriEXTPROC glProgramParameteriEXT = (glProgramParameteriEXTPROC)((intptr_t)function_pointer); - glProgramParameteriEXT(program, pname, value); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_nglFramebufferTextureEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jlong function_pointer) { - glFramebufferTextureEXTPROC glFramebufferTextureEXT = (glFramebufferTextureEXTPROC)((intptr_t)function_pointer); - glFramebufferTextureEXT(target, attachment, texture, level); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_nglFramebufferTextureLayerEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint layer, jlong function_pointer) { - glFramebufferTextureLayerEXTPROC glFramebufferTextureLayerEXT = (glFramebufferTextureLayerEXTPROC)((intptr_t)function_pointer); - glFramebufferTextureLayerEXT(target, attachment, texture, level, layer); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_nglFramebufferTextureFaceEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint face, jlong function_pointer) { - glFramebufferTextureFaceEXTPROC glFramebufferTextureFaceEXT = (glFramebufferTextureFaceEXTPROC)((intptr_t)function_pointer); - glFramebufferTextureFaceEXT(target, attachment, texture, level, face); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glProgramParameteriEXTPROC) (GLuint program, GLenum pname, GLint value); +typedef void (APIENTRY *glFramebufferTextureEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRY *glFramebufferTextureLayerEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (APIENTRY *glFramebufferTextureFaceEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_nglProgramParameteriEXT(JNIEnv *env, jclass clazz, jint program, jint pname, jint value, jlong function_pointer) { + glProgramParameteriEXTPROC glProgramParameteriEXT = (glProgramParameteriEXTPROC)((intptr_t)function_pointer); + glProgramParameteriEXT(program, pname, value); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_nglFramebufferTextureEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jlong function_pointer) { + glFramebufferTextureEXTPROC glFramebufferTextureEXT = (glFramebufferTextureEXTPROC)((intptr_t)function_pointer); + glFramebufferTextureEXT(target, attachment, texture, level); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_nglFramebufferTextureLayerEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint layer, jlong function_pointer) { + glFramebufferTextureLayerEXTPROC glFramebufferTextureLayerEXT = (glFramebufferTextureLayerEXTPROC)((intptr_t)function_pointer); + glFramebufferTextureLayerEXT(target, attachment, texture, level, layer); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_nglFramebufferTextureFaceEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint face, jlong function_pointer) { + glFramebufferTextureFaceEXTPROC glFramebufferTextureFaceEXT = (glFramebufferTextureFaceEXTPROC)((intptr_t)function_pointer); + glFramebufferTextureFaceEXT(target, attachment, texture, level, face); +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTGpuProgramParameters.c b/src/native/generated/org_lwjgl_opengl_EXTGpuProgramParameters.c index b1627705..605ee78b 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTGpuProgramParameters.c +++ b/src/native/generated/org_lwjgl_opengl_EXTGpuProgramParameters.c @@ -1,20 +1,20 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glProgramEnvParameter4fvEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat * params); -typedef void (APIENTRY *glProgramLocalParameter4fvEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat * params); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuProgramParameters_nglProgramEnvParameter4fvEXT(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramEnvParameter4fvEXTPROC glProgramEnvParameter4fvEXT = (glProgramEnvParameter4fvEXTPROC)((intptr_t)function_pointer); - glProgramEnvParameter4fvEXT(target, index, count, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuProgramParameters_nglProgramLocalParameter4fvEXT(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramLocalParameter4fvEXTPROC glProgramLocalParameter4fvEXT = (glProgramLocalParameter4fvEXTPROC)((intptr_t)function_pointer); - glProgramLocalParameter4fvEXT(target, index, count, params_address); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glProgramEnvParameter4fvEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat * params); +typedef void (APIENTRY *glProgramLocalParameter4fvEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat * params); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuProgramParameters_nglProgramEnvParameter4fvEXT(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramEnvParameter4fvEXTPROC glProgramEnvParameter4fvEXT = (glProgramEnvParameter4fvEXTPROC)((intptr_t)function_pointer); + glProgramEnvParameter4fvEXT(target, index, count, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuProgramParameters_nglProgramLocalParameter4fvEXT(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramLocalParameter4fvEXTPROC glProgramLocalParameter4fvEXT = (glProgramLocalParameter4fvEXTPROC)((intptr_t)function_pointer); + glProgramLocalParameter4fvEXT(target, index, count, params_address); +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTGpuShader4.c b/src/native/generated/org_lwjgl_opengl_EXTGpuShader4.c index 9df12a8f..14e628a2 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTGpuShader4.c +++ b/src/native/generated/org_lwjgl_opengl_EXTGpuShader4.c @@ -1,239 +1,239 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glVertexAttribI1iEXTPROC) (GLuint index, GLint x); -typedef void (APIENTRY *glVertexAttribI2iEXTPROC) (GLuint index, GLint x, GLint y); -typedef void (APIENTRY *glVertexAttribI3iEXTPROC) (GLuint index, GLint x, GLint y, GLint z); -typedef void (APIENTRY *glVertexAttribI4iEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRY *glVertexAttribI1uiEXTPROC) (GLuint index, GLuint x); -typedef void (APIENTRY *glVertexAttribI2uiEXTPROC) (GLuint index, GLuint x, GLuint y); -typedef void (APIENTRY *glVertexAttribI3uiEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); -typedef void (APIENTRY *glVertexAttribI4uiEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRY *glVertexAttribI1ivEXTPROC) (GLuint index, const GLint * v); -typedef void (APIENTRY *glVertexAttribI2ivEXTPROC) (GLuint index, const GLint * v); -typedef void (APIENTRY *glVertexAttribI3ivEXTPROC) (GLuint index, const GLint * v); -typedef void (APIENTRY *glVertexAttribI4ivEXTPROC) (GLuint index, const GLint * v); -typedef void (APIENTRY *glVertexAttribI1uivEXTPROC) (GLuint index, const GLuint * v); -typedef void (APIENTRY *glVertexAttribI2uivEXTPROC) (GLuint index, const GLuint * v); -typedef void (APIENTRY *glVertexAttribI3uivEXTPROC) (GLuint index, const GLuint * v); -typedef void (APIENTRY *glVertexAttribI4uivEXTPROC) (GLuint index, const GLuint * v); -typedef void (APIENTRY *glVertexAttribI4bvEXTPROC) (GLuint index, const GLbyte * v); -typedef void (APIENTRY *glVertexAttribI4svEXTPROC) (GLuint index, const GLshort * v); -typedef void (APIENTRY *glVertexAttribI4ubvEXTPROC) (GLuint index, const GLubyte * v); -typedef void (APIENTRY *glVertexAttribI4usvEXTPROC) (GLuint index, const GLushort * v); -typedef void (APIENTRY *glVertexAttribIPointerEXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * buffer); -typedef void (APIENTRY *glGetVertexAttribIivEXTPROC) (GLuint index, GLenum pname, GLint * params); -typedef void (APIENTRY *glGetVertexAttribIuivEXTPROC) (GLuint index, GLenum pname, GLuint * params); -typedef void (APIENTRY *glUniform1uiEXTPROC) (GLint location, GLuint v0); -typedef void (APIENTRY *glUniform2uiEXTPROC) (GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRY *glUniform3uiEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRY *glUniform4uiEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRY *glUniform1uivEXTPROC) (GLint location, GLsizei count, const GLuint * value); -typedef void (APIENTRY *glUniform2uivEXTPROC) (GLint location, GLsizei count, const GLuint * value); -typedef void (APIENTRY *glUniform3uivEXTPROC) (GLint location, GLsizei count, const GLuint * value); -typedef void (APIENTRY *glUniform4uivEXTPROC) (GLint location, GLsizei count, const GLuint * value); -typedef void (APIENTRY *glGetUniformuivEXTPROC) (GLuint program, GLint location, GLuint * params); -typedef void (APIENTRY *glBindFragDataLocationEXTPROC) (GLuint program, GLuint colorNumber, const GLchar * name); -typedef GLint (APIENTRY *glGetFragDataLocationEXTPROC) (GLuint program, const GLchar * name); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI1iEXT(JNIEnv *env, jclass clazz, jint index, jint x, jlong function_pointer) { - glVertexAttribI1iEXTPROC glVertexAttribI1iEXT = (glVertexAttribI1iEXTPROC)((intptr_t)function_pointer); - glVertexAttribI1iEXT(index, x); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI2iEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jlong function_pointer) { - glVertexAttribI2iEXTPROC glVertexAttribI2iEXT = (glVertexAttribI2iEXTPROC)((intptr_t)function_pointer); - glVertexAttribI2iEXT(index, x, y); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI3iEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jlong function_pointer) { - glVertexAttribI3iEXTPROC glVertexAttribI3iEXT = (glVertexAttribI3iEXTPROC)((intptr_t)function_pointer); - glVertexAttribI3iEXT(index, x, y, z); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4iEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { - glVertexAttribI4iEXTPROC glVertexAttribI4iEXT = (glVertexAttribI4iEXTPROC)((intptr_t)function_pointer); - glVertexAttribI4iEXT(index, x, y, z, w); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI1uiEXT(JNIEnv *env, jclass clazz, jint index, jint x, jlong function_pointer) { - glVertexAttribI1uiEXTPROC glVertexAttribI1uiEXT = (glVertexAttribI1uiEXTPROC)((intptr_t)function_pointer); - glVertexAttribI1uiEXT(index, x); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI2uiEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jlong function_pointer) { - glVertexAttribI2uiEXTPROC glVertexAttribI2uiEXT = (glVertexAttribI2uiEXTPROC)((intptr_t)function_pointer); - glVertexAttribI2uiEXT(index, x, y); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI3uiEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jlong function_pointer) { - glVertexAttribI3uiEXTPROC glVertexAttribI3uiEXT = (glVertexAttribI3uiEXTPROC)((intptr_t)function_pointer); - glVertexAttribI3uiEXT(index, x, y, z); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4uiEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { - glVertexAttribI4uiEXTPROC glVertexAttribI4uiEXT = (glVertexAttribI4uiEXTPROC)((intptr_t)function_pointer); - glVertexAttribI4uiEXT(index, x, y, z, w); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI1ivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLint *v_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI1ivEXTPROC glVertexAttribI1ivEXT = (glVertexAttribI1ivEXTPROC)((intptr_t)function_pointer); - glVertexAttribI1ivEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI2ivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLint *v_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI2ivEXTPROC glVertexAttribI2ivEXT = (glVertexAttribI2ivEXTPROC)((intptr_t)function_pointer); - glVertexAttribI2ivEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI3ivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLint *v_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI3ivEXTPROC glVertexAttribI3ivEXT = (glVertexAttribI3ivEXTPROC)((intptr_t)function_pointer); - glVertexAttribI3ivEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4ivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLint *v_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI4ivEXTPROC glVertexAttribI4ivEXT = (glVertexAttribI4ivEXTPROC)((intptr_t)function_pointer); - glVertexAttribI4ivEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI1uivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLuint *v_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI1uivEXTPROC glVertexAttribI1uivEXT = (glVertexAttribI1uivEXTPROC)((intptr_t)function_pointer); - glVertexAttribI1uivEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI2uivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLuint *v_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI2uivEXTPROC glVertexAttribI2uivEXT = (glVertexAttribI2uivEXTPROC)((intptr_t)function_pointer); - glVertexAttribI2uivEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI3uivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLuint *v_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI3uivEXTPROC glVertexAttribI3uivEXT = (glVertexAttribI3uivEXTPROC)((intptr_t)function_pointer); - glVertexAttribI3uivEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4uivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLuint *v_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI4uivEXTPROC glVertexAttribI4uivEXT = (glVertexAttribI4uivEXTPROC)((intptr_t)function_pointer); - glVertexAttribI4uivEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4bvEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLbyte *v_address = ((const GLbyte *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI4bvEXTPROC glVertexAttribI4bvEXT = (glVertexAttribI4bvEXTPROC)((intptr_t)function_pointer); - glVertexAttribI4bvEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4svEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI4svEXTPROC glVertexAttribI4svEXT = (glVertexAttribI4svEXTPROC)((intptr_t)function_pointer); - glVertexAttribI4svEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4ubvEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLubyte *v_address = ((const GLubyte *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI4ubvEXTPROC glVertexAttribI4ubvEXT = (glVertexAttribI4ubvEXTPROC)((intptr_t)function_pointer); - glVertexAttribI4ubvEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4usvEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { - const GLushort *v_address = ((const GLushort *)(*env)->GetDirectBufferAddress(env, v)) + v_position; - glVertexAttribI4usvEXTPROC glVertexAttribI4usvEXT = (glVertexAttribI4usvEXTPROC)((intptr_t)function_pointer); - glVertexAttribI4usvEXT(index, v_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribIPointerEXT(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jobject buffer, jint buffer_position, jlong function_pointer) { - const GLvoid *buffer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, buffer)) + buffer_position)); - glVertexAttribIPointerEXTPROC glVertexAttribIPointerEXT = (glVertexAttribIPointerEXTPROC)((intptr_t)function_pointer); - glVertexAttribIPointerEXT(index, size, type, stride, buffer_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribIPointerEXTBO(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jlong buffer_buffer_offset, jlong function_pointer) { - const GLvoid *buffer_address = ((const GLvoid *)offsetToPointer(buffer_buffer_offset)); - glVertexAttribIPointerEXTPROC glVertexAttribIPointerEXT = (glVertexAttribIPointerEXTPROC)((intptr_t)function_pointer); - glVertexAttribIPointerEXT(index, size, type, stride, buffer_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglGetVertexAttribIivEXT(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) { - GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetVertexAttribIivEXTPROC glGetVertexAttribIivEXT = (glGetVertexAttribIivEXTPROC)((intptr_t)function_pointer); - glGetVertexAttribIivEXT(index, pname, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglGetVertexAttribIuivEXT(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) { - GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetVertexAttribIuivEXTPROC glGetVertexAttribIuivEXT = (glGetVertexAttribIuivEXTPROC)((intptr_t)function_pointer); - glGetVertexAttribIuivEXT(index, pname, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform1uiEXT(JNIEnv *env, jclass clazz, jint location, jint v0, jlong function_pointer) { - glUniform1uiEXTPROC glUniform1uiEXT = (glUniform1uiEXTPROC)((intptr_t)function_pointer); - glUniform1uiEXT(location, v0); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform2uiEXT(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jlong function_pointer) { - glUniform2uiEXTPROC glUniform2uiEXT = (glUniform2uiEXTPROC)((intptr_t)function_pointer); - glUniform2uiEXT(location, v0, v1); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform3uiEXT(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jlong function_pointer) { - glUniform3uiEXTPROC glUniform3uiEXT = (glUniform3uiEXTPROC)((intptr_t)function_pointer); - glUniform3uiEXT(location, v0, v1, v2); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform4uiEXT(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3, jlong function_pointer) { - glUniform4uiEXTPROC glUniform4uiEXT = (glUniform4uiEXTPROC)((intptr_t)function_pointer); - glUniform4uiEXT(location, v0, v1, v2, v3); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform1uivEXT(JNIEnv *env, jclass clazz, jint location, jint count, jobject value, jint value_position, jlong function_pointer) { - const GLuint *value_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, value)) + value_position; - glUniform1uivEXTPROC glUniform1uivEXT = (glUniform1uivEXTPROC)((intptr_t)function_pointer); - glUniform1uivEXT(location, count, value_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform2uivEXT(JNIEnv *env, jclass clazz, jint location, jint count, jobject value, jint value_position, jlong function_pointer) { - const GLuint *value_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, value)) + value_position; - glUniform2uivEXTPROC glUniform2uivEXT = (glUniform2uivEXTPROC)((intptr_t)function_pointer); - glUniform2uivEXT(location, count, value_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform3uivEXT(JNIEnv *env, jclass clazz, jint location, jint count, jobject value, jint value_position, jlong function_pointer) { - const GLuint *value_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, value)) + value_position; - glUniform3uivEXTPROC glUniform3uivEXT = (glUniform3uivEXTPROC)((intptr_t)function_pointer); - glUniform3uivEXT(location, count, value_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform4uivEXT(JNIEnv *env, jclass clazz, jint location, jint count, jobject value, jint value_position, jlong function_pointer) { - const GLuint *value_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, value)) + value_position; - glUniform4uivEXTPROC glUniform4uivEXT = (glUniform4uivEXTPROC)((intptr_t)function_pointer); - glUniform4uivEXT(location, count, value_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglGetUniformuivEXT(JNIEnv *env, jclass clazz, jint program, jint location, jobject params, jint params_position, jlong function_pointer) { - GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetUniformuivEXTPROC glGetUniformuivEXT = (glGetUniformuivEXTPROC)((intptr_t)function_pointer); - glGetUniformuivEXT(program, location, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglBindFragDataLocationEXT(JNIEnv *env, jclass clazz, jint program, jint colorNumber, jobject name, jint name_position, jlong function_pointer) { - const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; - glBindFragDataLocationEXTPROC glBindFragDataLocationEXT = (glBindFragDataLocationEXTPROC)((intptr_t)function_pointer); - glBindFragDataLocationEXT(program, colorNumber, name_address); -} - -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglGetFragDataLocationEXT(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) { - const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; - glGetFragDataLocationEXTPROC glGetFragDataLocationEXT = (glGetFragDataLocationEXTPROC)((intptr_t)function_pointer); - GLint __result = glGetFragDataLocationEXT(program, name_address); - return __result; -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glVertexAttribI1iEXTPROC) (GLuint index, GLint x); +typedef void (APIENTRY *glVertexAttribI2iEXTPROC) (GLuint index, GLint x, GLint y); +typedef void (APIENTRY *glVertexAttribI3iEXTPROC) (GLuint index, GLint x, GLint y, GLint z); +typedef void (APIENTRY *glVertexAttribI4iEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRY *glVertexAttribI1uiEXTPROC) (GLuint index, GLuint x); +typedef void (APIENTRY *glVertexAttribI2uiEXTPROC) (GLuint index, GLuint x, GLuint y); +typedef void (APIENTRY *glVertexAttribI3uiEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); +typedef void (APIENTRY *glVertexAttribI4uiEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRY *glVertexAttribI1ivEXTPROC) (GLuint index, const GLint * v); +typedef void (APIENTRY *glVertexAttribI2ivEXTPROC) (GLuint index, const GLint * v); +typedef void (APIENTRY *glVertexAttribI3ivEXTPROC) (GLuint index, const GLint * v); +typedef void (APIENTRY *glVertexAttribI4ivEXTPROC) (GLuint index, const GLint * v); +typedef void (APIENTRY *glVertexAttribI1uivEXTPROC) (GLuint index, const GLuint * v); +typedef void (APIENTRY *glVertexAttribI2uivEXTPROC) (GLuint index, const GLuint * v); +typedef void (APIENTRY *glVertexAttribI3uivEXTPROC) (GLuint index, const GLuint * v); +typedef void (APIENTRY *glVertexAttribI4uivEXTPROC) (GLuint index, const GLuint * v); +typedef void (APIENTRY *glVertexAttribI4bvEXTPROC) (GLuint index, const GLbyte * v); +typedef void (APIENTRY *glVertexAttribI4svEXTPROC) (GLuint index, const GLshort * v); +typedef void (APIENTRY *glVertexAttribI4ubvEXTPROC) (GLuint index, const GLubyte * v); +typedef void (APIENTRY *glVertexAttribI4usvEXTPROC) (GLuint index, const GLushort * v); +typedef void (APIENTRY *glVertexAttribIPointerEXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * buffer); +typedef void (APIENTRY *glGetVertexAttribIivEXTPROC) (GLuint index, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetVertexAttribIuivEXTPROC) (GLuint index, GLenum pname, GLuint * params); +typedef void (APIENTRY *glUniform1uiEXTPROC) (GLint location, GLuint v0); +typedef void (APIENTRY *glUniform2uiEXTPROC) (GLint location, GLuint v0, GLuint v1); +typedef void (APIENTRY *glUniform3uiEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (APIENTRY *glUniform4uiEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (APIENTRY *glUniform1uivEXTPROC) (GLint location, GLsizei count, const GLuint * value); +typedef void (APIENTRY *glUniform2uivEXTPROC) (GLint location, GLsizei count, const GLuint * value); +typedef void (APIENTRY *glUniform3uivEXTPROC) (GLint location, GLsizei count, const GLuint * value); +typedef void (APIENTRY *glUniform4uivEXTPROC) (GLint location, GLsizei count, const GLuint * value); +typedef void (APIENTRY *glGetUniformuivEXTPROC) (GLuint program, GLint location, GLuint * params); +typedef void (APIENTRY *glBindFragDataLocationEXTPROC) (GLuint program, GLuint colorNumber, const GLchar * name); +typedef GLint (APIENTRY *glGetFragDataLocationEXTPROC) (GLuint program, const GLchar * name); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI1iEXT(JNIEnv *env, jclass clazz, jint index, jint x, jlong function_pointer) { + glVertexAttribI1iEXTPROC glVertexAttribI1iEXT = (glVertexAttribI1iEXTPROC)((intptr_t)function_pointer); + glVertexAttribI1iEXT(index, x); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI2iEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jlong function_pointer) { + glVertexAttribI2iEXTPROC glVertexAttribI2iEXT = (glVertexAttribI2iEXTPROC)((intptr_t)function_pointer); + glVertexAttribI2iEXT(index, x, y); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI3iEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jlong function_pointer) { + glVertexAttribI3iEXTPROC glVertexAttribI3iEXT = (glVertexAttribI3iEXTPROC)((intptr_t)function_pointer); + glVertexAttribI3iEXT(index, x, y, z); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4iEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { + glVertexAttribI4iEXTPROC glVertexAttribI4iEXT = (glVertexAttribI4iEXTPROC)((intptr_t)function_pointer); + glVertexAttribI4iEXT(index, x, y, z, w); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI1uiEXT(JNIEnv *env, jclass clazz, jint index, jint x, jlong function_pointer) { + glVertexAttribI1uiEXTPROC glVertexAttribI1uiEXT = (glVertexAttribI1uiEXTPROC)((intptr_t)function_pointer); + glVertexAttribI1uiEXT(index, x); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI2uiEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jlong function_pointer) { + glVertexAttribI2uiEXTPROC glVertexAttribI2uiEXT = (glVertexAttribI2uiEXTPROC)((intptr_t)function_pointer); + glVertexAttribI2uiEXT(index, x, y); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI3uiEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jlong function_pointer) { + glVertexAttribI3uiEXTPROC glVertexAttribI3uiEXT = (glVertexAttribI3uiEXTPROC)((intptr_t)function_pointer); + glVertexAttribI3uiEXT(index, x, y, z); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4uiEXT(JNIEnv *env, jclass clazz, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { + glVertexAttribI4uiEXTPROC glVertexAttribI4uiEXT = (glVertexAttribI4uiEXTPROC)((intptr_t)function_pointer); + glVertexAttribI4uiEXT(index, x, y, z, w); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI1ivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLint *v_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI1ivEXTPROC glVertexAttribI1ivEXT = (glVertexAttribI1ivEXTPROC)((intptr_t)function_pointer); + glVertexAttribI1ivEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI2ivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLint *v_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI2ivEXTPROC glVertexAttribI2ivEXT = (glVertexAttribI2ivEXTPROC)((intptr_t)function_pointer); + glVertexAttribI2ivEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI3ivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLint *v_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI3ivEXTPROC glVertexAttribI3ivEXT = (glVertexAttribI3ivEXTPROC)((intptr_t)function_pointer); + glVertexAttribI3ivEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4ivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLint *v_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI4ivEXTPROC glVertexAttribI4ivEXT = (glVertexAttribI4ivEXTPROC)((intptr_t)function_pointer); + glVertexAttribI4ivEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI1uivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLuint *v_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI1uivEXTPROC glVertexAttribI1uivEXT = (glVertexAttribI1uivEXTPROC)((intptr_t)function_pointer); + glVertexAttribI1uivEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI2uivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLuint *v_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI2uivEXTPROC glVertexAttribI2uivEXT = (glVertexAttribI2uivEXTPROC)((intptr_t)function_pointer); + glVertexAttribI2uivEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI3uivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLuint *v_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI3uivEXTPROC glVertexAttribI3uivEXT = (glVertexAttribI3uivEXTPROC)((intptr_t)function_pointer); + glVertexAttribI3uivEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4uivEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLuint *v_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI4uivEXTPROC glVertexAttribI4uivEXT = (glVertexAttribI4uivEXTPROC)((intptr_t)function_pointer); + glVertexAttribI4uivEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4bvEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLbyte *v_address = ((const GLbyte *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI4bvEXTPROC glVertexAttribI4bvEXT = (glVertexAttribI4bvEXTPROC)((intptr_t)function_pointer); + glVertexAttribI4bvEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4svEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLshort *v_address = ((const GLshort *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI4svEXTPROC glVertexAttribI4svEXT = (glVertexAttribI4svEXTPROC)((intptr_t)function_pointer); + glVertexAttribI4svEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4ubvEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLubyte *v_address = ((const GLubyte *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI4ubvEXTPROC glVertexAttribI4ubvEXT = (glVertexAttribI4ubvEXTPROC)((intptr_t)function_pointer); + glVertexAttribI4ubvEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribI4usvEXT(JNIEnv *env, jclass clazz, jint index, jobject v, jint v_position, jlong function_pointer) { + const GLushort *v_address = ((const GLushort *)(*env)->GetDirectBufferAddress(env, v)) + v_position; + glVertexAttribI4usvEXTPROC glVertexAttribI4usvEXT = (glVertexAttribI4usvEXTPROC)((intptr_t)function_pointer); + glVertexAttribI4usvEXT(index, v_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribIPointerEXT(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jobject buffer, jint buffer_position, jlong function_pointer) { + const GLvoid *buffer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, buffer)) + buffer_position)); + glVertexAttribIPointerEXTPROC glVertexAttribIPointerEXT = (glVertexAttribIPointerEXTPROC)((intptr_t)function_pointer); + glVertexAttribIPointerEXT(index, size, type, stride, buffer_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglVertexAttribIPointerEXTBO(JNIEnv *env, jclass clazz, jint index, jint size, jint type, jint stride, jlong buffer_buffer_offset, jlong function_pointer) { + const GLvoid *buffer_address = ((const GLvoid *)offsetToPointer(buffer_buffer_offset)); + glVertexAttribIPointerEXTPROC glVertexAttribIPointerEXT = (glVertexAttribIPointerEXTPROC)((intptr_t)function_pointer); + glVertexAttribIPointerEXT(index, size, type, stride, buffer_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglGetVertexAttribIivEXT(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetVertexAttribIivEXTPROC glGetVertexAttribIivEXT = (glGetVertexAttribIivEXTPROC)((intptr_t)function_pointer); + glGetVertexAttribIivEXT(index, pname, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglGetVertexAttribIuivEXT(JNIEnv *env, jclass clazz, jint index, jint pname, jobject params, jint params_position, jlong function_pointer) { + GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetVertexAttribIuivEXTPROC glGetVertexAttribIuivEXT = (glGetVertexAttribIuivEXTPROC)((intptr_t)function_pointer); + glGetVertexAttribIuivEXT(index, pname, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform1uiEXT(JNIEnv *env, jclass clazz, jint location, jint v0, jlong function_pointer) { + glUniform1uiEXTPROC glUniform1uiEXT = (glUniform1uiEXTPROC)((intptr_t)function_pointer); + glUniform1uiEXT(location, v0); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform2uiEXT(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jlong function_pointer) { + glUniform2uiEXTPROC glUniform2uiEXT = (glUniform2uiEXTPROC)((intptr_t)function_pointer); + glUniform2uiEXT(location, v0, v1); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform3uiEXT(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jlong function_pointer) { + glUniform3uiEXTPROC glUniform3uiEXT = (glUniform3uiEXTPROC)((intptr_t)function_pointer); + glUniform3uiEXT(location, v0, v1, v2); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform4uiEXT(JNIEnv *env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3, jlong function_pointer) { + glUniform4uiEXTPROC glUniform4uiEXT = (glUniform4uiEXTPROC)((intptr_t)function_pointer); + glUniform4uiEXT(location, v0, v1, v2, v3); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform1uivEXT(JNIEnv *env, jclass clazz, jint location, jint count, jobject value, jint value_position, jlong function_pointer) { + const GLuint *value_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, value)) + value_position; + glUniform1uivEXTPROC glUniform1uivEXT = (glUniform1uivEXTPROC)((intptr_t)function_pointer); + glUniform1uivEXT(location, count, value_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform2uivEXT(JNIEnv *env, jclass clazz, jint location, jint count, jobject value, jint value_position, jlong function_pointer) { + const GLuint *value_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, value)) + value_position; + glUniform2uivEXTPROC glUniform2uivEXT = (glUniform2uivEXTPROC)((intptr_t)function_pointer); + glUniform2uivEXT(location, count, value_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform3uivEXT(JNIEnv *env, jclass clazz, jint location, jint count, jobject value, jint value_position, jlong function_pointer) { + const GLuint *value_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, value)) + value_position; + glUniform3uivEXTPROC glUniform3uivEXT = (glUniform3uivEXTPROC)((intptr_t)function_pointer); + glUniform3uivEXT(location, count, value_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglUniform4uivEXT(JNIEnv *env, jclass clazz, jint location, jint count, jobject value, jint value_position, jlong function_pointer) { + const GLuint *value_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, value)) + value_position; + glUniform4uivEXTPROC glUniform4uivEXT = (glUniform4uivEXTPROC)((intptr_t)function_pointer); + glUniform4uivEXT(location, count, value_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglGetUniformuivEXT(JNIEnv *env, jclass clazz, jint program, jint location, jobject params, jint params_position, jlong function_pointer) { + GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetUniformuivEXTPROC glGetUniformuivEXT = (glGetUniformuivEXTPROC)((intptr_t)function_pointer); + glGetUniformuivEXT(program, location, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglBindFragDataLocationEXT(JNIEnv *env, jclass clazz, jint program, jint colorNumber, jobject name, jint name_position, jlong function_pointer) { + const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; + glBindFragDataLocationEXTPROC glBindFragDataLocationEXT = (glBindFragDataLocationEXTPROC)((intptr_t)function_pointer); + glBindFragDataLocationEXT(program, colorNumber, name_address); +} + +JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTGpuShader4_nglGetFragDataLocationEXT(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) { + const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; + glGetFragDataLocationEXTPROC glGetFragDataLocationEXT = (glGetFragDataLocationEXTPROC)((intptr_t)function_pointer); + GLint __result = glGetFragDataLocationEXT(program, name_address); + return __result; +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTTextureArray.c b/src/native/generated/org_lwjgl_opengl_EXTTextureArray.c index 057df6da..8d3ebb67 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTTextureArray.c +++ b/src/native/generated/org_lwjgl_opengl_EXTTextureArray.c @@ -1,12 +1,12 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glFramebufferTextureLayerEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureArray_nglFramebufferTextureLayerEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint layer, jlong function_pointer) { - glFramebufferTextureLayerEXTPROC glFramebufferTextureLayerEXT = (glFramebufferTextureLayerEXTPROC)((intptr_t)function_pointer); - glFramebufferTextureLayerEXT(target, attachment, texture, level, layer); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glFramebufferTextureLayerEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureArray_nglFramebufferTextureLayerEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint layer, jlong function_pointer) { + glFramebufferTextureLayerEXTPROC glFramebufferTextureLayerEXT = (glFramebufferTextureLayerEXTPROC)((intptr_t)function_pointer); + glFramebufferTextureLayerEXT(target, attachment, texture, level, layer); +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTTextureBufferObject.c b/src/native/generated/org_lwjgl_opengl_EXTTextureBufferObject.c index 301d2e1f..b17d930b 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTTextureBufferObject.c +++ b/src/native/generated/org_lwjgl_opengl_EXTTextureBufferObject.c @@ -1,12 +1,12 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glTexBufferEXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureBufferObject_nglTexBufferEXT(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint buffer, jlong function_pointer) { - glTexBufferEXTPROC glTexBufferEXT = (glTexBufferEXTPROC)((intptr_t)function_pointer); - glTexBufferEXT(target, internalformat, buffer); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glTexBufferEXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureBufferObject_nglTexBufferEXT(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint buffer, jlong function_pointer) { + glTexBufferEXTPROC glTexBufferEXT = (glTexBufferEXTPROC)((intptr_t)function_pointer); + glTexBufferEXT(target, internalformat, buffer); +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTTextureInteger.c b/src/native/generated/org_lwjgl_opengl_EXTTextureInteger.c index 75cf6923..f9e38e01 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTTextureInteger.c +++ b/src/native/generated/org_lwjgl_opengl_EXTTextureInteger.c @@ -1,46 +1,46 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glClearColorIiEXTPROC) (GLint r, GLint g, GLint b, GLint a); -typedef void (APIENTRY *glClearColorIuiEXTPROC) (GLuint r, GLuint g, GLuint b, GLuint a); -typedef void (APIENTRY *glTexParameterIivEXTPROC) (GLenum target, GLenum pname, GLint * params); -typedef void (APIENTRY *glTexParameterIuivEXTPROC) (GLenum target, GLenum pname, GLuint * params); -typedef void (APIENTRY *glGetTexParameterIivEXTPROC) (GLenum target, GLenum pname, GLint * params); -typedef void (APIENTRY *glGetTexParameterIuivEXTPROC) (GLenum target, GLenum pname, GLuint * params); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglClearColorIiEXT(JNIEnv *env, jclass clazz, jint r, jint g, jint b, jint a, jlong function_pointer) { - glClearColorIiEXTPROC glClearColorIiEXT = (glClearColorIiEXTPROC)((intptr_t)function_pointer); - glClearColorIiEXT(r, g, b, a); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglClearColorIuiEXT(JNIEnv *env, jclass clazz, jint r, jint g, jint b, jint a, jlong function_pointer) { - glClearColorIuiEXTPROC glClearColorIuiEXT = (glClearColorIuiEXTPROC)((intptr_t)function_pointer); - glClearColorIuiEXT(r, g, b, a); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglTexParameterIivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) { - GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glTexParameterIivEXTPROC glTexParameterIivEXT = (glTexParameterIivEXTPROC)((intptr_t)function_pointer); - glTexParameterIivEXT(target, pname, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglTexParameterIuivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) { - GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glTexParameterIuivEXTPROC glTexParameterIuivEXT = (glTexParameterIuivEXTPROC)((intptr_t)function_pointer); - glTexParameterIuivEXT(target, pname, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglGetTexParameterIivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) { - GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetTexParameterIivEXTPROC glGetTexParameterIivEXT = (glGetTexParameterIivEXTPROC)((intptr_t)function_pointer); - glGetTexParameterIivEXT(target, pname, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglGetTexParameterIuivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) { - GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetTexParameterIuivEXTPROC glGetTexParameterIuivEXT = (glGetTexParameterIuivEXTPROC)((intptr_t)function_pointer); - glGetTexParameterIuivEXT(target, pname, params_address); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glClearColorIiEXTPROC) (GLint r, GLint g, GLint b, GLint a); +typedef void (APIENTRY *glClearColorIuiEXTPROC) (GLuint r, GLuint g, GLuint b, GLuint a); +typedef void (APIENTRY *glTexParameterIivEXTPROC) (GLenum target, GLenum pname, GLint * params); +typedef void (APIENTRY *glTexParameterIuivEXTPROC) (GLenum target, GLenum pname, GLuint * params); +typedef void (APIENTRY *glGetTexParameterIivEXTPROC) (GLenum target, GLenum pname, GLint * params); +typedef void (APIENTRY *glGetTexParameterIuivEXTPROC) (GLenum target, GLenum pname, GLuint * params); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglClearColorIiEXT(JNIEnv *env, jclass clazz, jint r, jint g, jint b, jint a, jlong function_pointer) { + glClearColorIiEXTPROC glClearColorIiEXT = (glClearColorIiEXTPROC)((intptr_t)function_pointer); + glClearColorIiEXT(r, g, b, a); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglClearColorIuiEXT(JNIEnv *env, jclass clazz, jint r, jint g, jint b, jint a, jlong function_pointer) { + glClearColorIuiEXTPROC glClearColorIuiEXT = (glClearColorIuiEXTPROC)((intptr_t)function_pointer); + glClearColorIuiEXT(r, g, b, a); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglTexParameterIivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glTexParameterIivEXTPROC glTexParameterIivEXT = (glTexParameterIivEXTPROC)((intptr_t)function_pointer); + glTexParameterIivEXT(target, pname, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglTexParameterIuivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) { + GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glTexParameterIuivEXTPROC glTexParameterIuivEXT = (glTexParameterIuivEXTPROC)((intptr_t)function_pointer); + glTexParameterIuivEXT(target, pname, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglGetTexParameterIivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetTexParameterIivEXTPROC glGetTexParameterIivEXT = (glGetTexParameterIivEXTPROC)((intptr_t)function_pointer); + glGetTexParameterIivEXT(target, pname, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTextureInteger_nglGetTexParameterIuivEXT(JNIEnv *env, jclass clazz, jint target, jint pname, jobject params, jint params_position, jlong function_pointer) { + GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetTexParameterIuivEXTPROC glGetTexParameterIuivEXT = (glGetTexParameterIuivEXTPROC)((intptr_t)function_pointer); + glGetTexParameterIuivEXT(target, pname, params_address); +} + diff --git a/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c b/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c index ca108131..9d78cb2c 100644 --- a/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c +++ b/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c @@ -1,20 +1,20 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glGetQueryObjecti64vEXTPROC) (GLuint id, GLenum pname, GLint64EXT * params); -typedef void (APIENTRY *glGetQueryObjectui64vEXTPROC) (GLuint id, GLenum pname, GLuint64EXT * params); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjecti64vEXT(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) { - GLint64EXT *params_address = ((GLint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetQueryObjecti64vEXTPROC glGetQueryObjecti64vEXT = (glGetQueryObjecti64vEXTPROC)((intptr_t)function_pointer); - glGetQueryObjecti64vEXT(id, pname, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjectui64vEXT(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) { - GLuint64EXT *params_address = ((GLuint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetQueryObjectui64vEXTPROC glGetQueryObjectui64vEXT = (glGetQueryObjectui64vEXTPROC)((intptr_t)function_pointer); - glGetQueryObjectui64vEXT(id, pname, params_address); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glGetQueryObjecti64vEXTPROC) (GLuint id, GLenum pname, GLint64EXT * params); +typedef void (APIENTRY *glGetQueryObjectui64vEXTPROC) (GLuint id, GLenum pname, GLuint64EXT * params); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjecti64vEXT(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) { + GLint64EXT *params_address = ((GLint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetQueryObjecti64vEXTPROC glGetQueryObjecti64vEXT = (glGetQueryObjecti64vEXTPROC)((intptr_t)function_pointer); + glGetQueryObjecti64vEXT(id, pname, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjectui64vEXT(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) { + GLuint64EXT *params_address = ((GLuint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetQueryObjectui64vEXTPROC glGetQueryObjectui64vEXT = (glGetQueryObjectui64vEXTPROC)((intptr_t)function_pointer); + glGetQueryObjectui64vEXT(id, pname, params_address); +} + diff --git a/src/native/generated/org_lwjgl_opengl_GL21.c b/src/native/generated/org_lwjgl_opengl_GL21.c index 3ccd4e71..dd659f74 100644 --- a/src/native/generated/org_lwjgl_opengl_GL21.c +++ b/src/native/generated/org_lwjgl_opengl_GL21.c @@ -1,48 +1,48 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glUniformMatrix2x3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); -typedef void (APIENTRY *glUniformMatrix3x2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); -typedef void (APIENTRY *glUniformMatrix2x4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); -typedef void (APIENTRY *glUniformMatrix4x2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); -typedef void (APIENTRY *glUniformMatrix3x4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); -typedef void (APIENTRY *glUniformMatrix4x3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix2x3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { - GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; - glUniformMatrix2x3fvPROC glUniformMatrix2x3fv = (glUniformMatrix2x3fvPROC)((intptr_t)function_pointer); - glUniformMatrix2x3fv(location, count, transpose, matrices_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix3x2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { - GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; - glUniformMatrix3x2fvPROC glUniformMatrix3x2fv = (glUniformMatrix3x2fvPROC)((intptr_t)function_pointer); - glUniformMatrix3x2fv(location, count, transpose, matrices_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix2x4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { - GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; - glUniformMatrix2x4fvPROC glUniformMatrix2x4fv = (glUniformMatrix2x4fvPROC)((intptr_t)function_pointer); - glUniformMatrix2x4fv(location, count, transpose, matrices_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix4x2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { - GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; - glUniformMatrix4x2fvPROC glUniformMatrix4x2fv = (glUniformMatrix4x2fvPROC)((intptr_t)function_pointer); - glUniformMatrix4x2fv(location, count, transpose, matrices_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix3x4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { - GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; - glUniformMatrix3x4fvPROC glUniformMatrix3x4fv = (glUniformMatrix3x4fvPROC)((intptr_t)function_pointer); - glUniformMatrix3x4fv(location, count, transpose, matrices_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix4x3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { - GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; - glUniformMatrix4x3fvPROC glUniformMatrix4x3fv = (glUniformMatrix4x3fvPROC)((intptr_t)function_pointer); - glUniformMatrix4x3fv(location, count, transpose, matrices_address); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glUniformMatrix2x3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); +typedef void (APIENTRY *glUniformMatrix3x2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); +typedef void (APIENTRY *glUniformMatrix2x4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); +typedef void (APIENTRY *glUniformMatrix4x2fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); +typedef void (APIENTRY *glUniformMatrix3x4fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); +typedef void (APIENTRY *glUniformMatrix4x3fvPROC) (GLint location, GLsizei count, GLboolean transpose, GLfloat * matrices); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix2x3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { + GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; + glUniformMatrix2x3fvPROC glUniformMatrix2x3fv = (glUniformMatrix2x3fvPROC)((intptr_t)function_pointer); + glUniformMatrix2x3fv(location, count, transpose, matrices_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix3x2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { + GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; + glUniformMatrix3x2fvPROC glUniformMatrix3x2fv = (glUniformMatrix3x2fvPROC)((intptr_t)function_pointer); + glUniformMatrix3x2fv(location, count, transpose, matrices_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix2x4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { + GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; + glUniformMatrix2x4fvPROC glUniformMatrix2x4fv = (glUniformMatrix2x4fvPROC)((intptr_t)function_pointer); + glUniformMatrix2x4fv(location, count, transpose, matrices_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix4x2fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { + GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; + glUniformMatrix4x2fvPROC glUniformMatrix4x2fv = (glUniformMatrix4x2fvPROC)((intptr_t)function_pointer); + glUniformMatrix4x2fv(location, count, transpose, matrices_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix3x4fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { + GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; + glUniformMatrix3x4fvPROC glUniformMatrix3x4fv = (glUniformMatrix3x4fvPROC)((intptr_t)function_pointer); + glUniformMatrix3x4fv(location, count, transpose, matrices_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL21_nglUniformMatrix4x3fv(JNIEnv *env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matrices_position, jlong function_pointer) { + GLfloat *matrices_address = ((GLfloat *)(*env)->GetDirectBufferAddress(env, matrices)) + matrices_position; + glUniformMatrix4x3fvPROC glUniformMatrix4x3fv = (glUniformMatrix4x3fvPROC)((intptr_t)function_pointer); + glUniformMatrix4x3fv(location, count, transpose, matrices_address); +} + diff --git a/src/native/generated/org_lwjgl_opengl_NVDepthBufferFloat.c b/src/native/generated/org_lwjgl_opengl_NVDepthBufferFloat.c index f7db3eed..933200c9 100644 --- a/src/native/generated/org_lwjgl_opengl_NVDepthBufferFloat.c +++ b/src/native/generated/org_lwjgl_opengl_NVDepthBufferFloat.c @@ -1,24 +1,24 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glDepthRangedNVPROC) (GLdouble n, GLdouble f); -typedef void (APIENTRY *glClearDepthdNVPROC) (GLdouble d); -typedef void (APIENTRY *glDepthBoundsdNVPROC) (GLdouble zmin, GLdouble zmax); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVDepthBufferFloat_nglDepthRangedNV(JNIEnv *env, jclass clazz, jdouble n, jdouble f, jlong function_pointer) { - glDepthRangedNVPROC glDepthRangedNV = (glDepthRangedNVPROC)((intptr_t)function_pointer); - glDepthRangedNV(n, f); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVDepthBufferFloat_nglClearDepthdNV(JNIEnv *env, jclass clazz, jdouble d, jlong function_pointer) { - glClearDepthdNVPROC glClearDepthdNV = (glClearDepthdNVPROC)((intptr_t)function_pointer); - glClearDepthdNV(d); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVDepthBufferFloat_nglDepthBoundsdNV(JNIEnv *env, jclass clazz, jdouble zmin, jdouble zmax, jlong function_pointer) { - glDepthBoundsdNVPROC glDepthBoundsdNV = (glDepthBoundsdNVPROC)((intptr_t)function_pointer); - glDepthBoundsdNV(zmin, zmax); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glDepthRangedNVPROC) (GLdouble n, GLdouble f); +typedef void (APIENTRY *glClearDepthdNVPROC) (GLdouble d); +typedef void (APIENTRY *glDepthBoundsdNVPROC) (GLdouble zmin, GLdouble zmax); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVDepthBufferFloat_nglDepthRangedNV(JNIEnv *env, jclass clazz, jdouble n, jdouble f, jlong function_pointer) { + glDepthRangedNVPROC glDepthRangedNV = (glDepthRangedNVPROC)((intptr_t)function_pointer); + glDepthRangedNV(n, f); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVDepthBufferFloat_nglClearDepthdNV(JNIEnv *env, jclass clazz, jdouble d, jlong function_pointer) { + glClearDepthdNVPROC glClearDepthdNV = (glClearDepthdNVPROC)((intptr_t)function_pointer); + glClearDepthdNV(d); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVDepthBufferFloat_nglDepthBoundsdNV(JNIEnv *env, jclass clazz, jdouble zmin, jdouble zmax, jlong function_pointer) { + glDepthBoundsdNVPROC glDepthBoundsdNV = (glDepthBoundsdNVPROC)((intptr_t)function_pointer); + glDepthBoundsdNV(zmin, zmax); +} + diff --git a/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c b/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c index 38b37402..c5f548ea 100644 --- a/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c +++ b/src/native/generated/org_lwjgl_opengl_NVFramebufferMultisampleCoverage.c @@ -1,12 +1,12 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glRenderbufferStorageMultsampleCoverageNVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFramebufferMultisampleCoverage_nglRenderbufferStorageMultsampleCoverageNV(JNIEnv *env, jclass clazz, jint target, jint coverageSamples, jint colorSamples, jint internalformat, jint width, jint height, jlong function_pointer) { - glRenderbufferStorageMultsampleCoverageNVPROC glRenderbufferStorageMultsampleCoverageNV = (glRenderbufferStorageMultsampleCoverageNVPROC)((intptr_t)function_pointer); - glRenderbufferStorageMultsampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glRenderbufferStorageMultsampleCoverageNVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFramebufferMultisampleCoverage_nglRenderbufferStorageMultsampleCoverageNV(JNIEnv *env, jclass clazz, jint target, jint coverageSamples, jint colorSamples, jint internalformat, jint width, jint height, jlong function_pointer) { + glRenderbufferStorageMultsampleCoverageNVPROC glRenderbufferStorageMultsampleCoverageNV = (glRenderbufferStorageMultsampleCoverageNVPROC)((intptr_t)function_pointer); + glRenderbufferStorageMultsampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height); +} + diff --git a/src/native/generated/org_lwjgl_opengl_NVGeometryProgram4.c b/src/native/generated/org_lwjgl_opengl_NVGeometryProgram4.c index 8f81748d..b7f2928d 100644 --- a/src/native/generated/org_lwjgl_opengl_NVGeometryProgram4.c +++ b/src/native/generated/org_lwjgl_opengl_NVGeometryProgram4.c @@ -1,24 +1,24 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glProgramVertexLimitNVPROC) (GLenum target, GLint limit); -typedef void (APIENTRY *glFramebufferTextureEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRY *glFramebufferTextureLayerEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGeometryProgram4_nglProgramVertexLimitNV(JNIEnv *env, jclass clazz, jint target, jint limit, jlong function_pointer) { - glProgramVertexLimitNVPROC glProgramVertexLimitNV = (glProgramVertexLimitNVPROC)((intptr_t)function_pointer); - glProgramVertexLimitNV(target, limit); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGeometryProgram4_nglFramebufferTextureEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jlong function_pointer) { - glFramebufferTextureEXTPROC glFramebufferTextureEXT = (glFramebufferTextureEXTPROC)((intptr_t)function_pointer); - glFramebufferTextureEXT(target, attachment, texture, level); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGeometryProgram4_nglFramebufferTextureLayerEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint layer, jlong function_pointer) { - glFramebufferTextureLayerEXTPROC glFramebufferTextureLayerEXT = (glFramebufferTextureLayerEXTPROC)((intptr_t)function_pointer); - glFramebufferTextureLayerEXT(target, attachment, texture, level, layer); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glProgramVertexLimitNVPROC) (GLenum target, GLint limit); +typedef void (APIENTRY *glFramebufferTextureEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRY *glFramebufferTextureLayerEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGeometryProgram4_nglProgramVertexLimitNV(JNIEnv *env, jclass clazz, jint target, jint limit, jlong function_pointer) { + glProgramVertexLimitNVPROC glProgramVertexLimitNV = (glProgramVertexLimitNVPROC)((intptr_t)function_pointer); + glProgramVertexLimitNV(target, limit); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGeometryProgram4_nglFramebufferTextureEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jlong function_pointer) { + glFramebufferTextureEXTPROC glFramebufferTextureEXT = (glFramebufferTextureEXTPROC)((intptr_t)function_pointer); + glFramebufferTextureEXT(target, attachment, texture, level); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGeometryProgram4_nglFramebufferTextureLayerEXT(JNIEnv *env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint layer, jlong function_pointer) { + glFramebufferTextureLayerEXTPROC glFramebufferTextureLayerEXT = (glFramebufferTextureLayerEXTPROC)((intptr_t)function_pointer); + glFramebufferTextureLayerEXT(target, attachment, texture, level, layer); +} + diff --git a/src/native/generated/org_lwjgl_opengl_NVGpuProgram4.c b/src/native/generated/org_lwjgl_opengl_NVGpuProgram4.c index f0a05c07..9cb953a2 100644 --- a/src/native/generated/org_lwjgl_opengl_NVGpuProgram4.c +++ b/src/native/generated/org_lwjgl_opengl_NVGpuProgram4.c @@ -1,114 +1,114 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glProgramLocalParameterI4iNVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRY *glProgramLocalParameterI4ivNVPROC) (GLenum target, GLuint index, const GLint * params); -typedef void (APIENTRY *glProgramLocalParametersI4ivNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint * params); -typedef void (APIENTRY *glProgramLocalParameterI4uiNVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRY *glProgramLocalParameterI4uivNVPROC) (GLenum target, GLuint index, const GLuint * params); -typedef void (APIENTRY *glProgramLocalParametersI4uivNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint * params); -typedef void (APIENTRY *glProgramEnvParameterI4iNVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRY *glProgramEnvParameterI4ivNVPROC) (GLenum target, GLuint index, const GLint * params); -typedef void (APIENTRY *glProgramEnvParametersI4ivNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint * params); -typedef void (APIENTRY *glProgramEnvParameterI4uiNVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRY *glProgramEnvParameterI4uivNVPROC) (GLenum target, GLuint index, const GLuint * params); -typedef void (APIENTRY *glProgramEnvParametersI4uivNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint * params); -typedef void (APIENTRY *glGetProgramLocalParameterIivNVPROC) (GLenum target, GLuint index, GLint * params); -typedef void (APIENTRY *glGetProgramLocalParameterIuivNVPROC) (GLenum target, GLuint index, GLuint * params); -typedef void (APIENTRY *glGetProgramEnvParameterIivNVPROC) (GLenum target, GLuint index, GLint * params); -typedef void (APIENTRY *glGetProgramEnvParameterIuivNVPROC) (GLenum target, GLuint index, GLuint * params); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParameterI4iNV(JNIEnv *env, jclass clazz, jint target, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { - glProgramLocalParameterI4iNVPROC glProgramLocalParameterI4iNV = (glProgramLocalParameterI4iNVPROC)((intptr_t)function_pointer); - glProgramLocalParameterI4iNV(target, index, x, y, z, w); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParameterI4ivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { - const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramLocalParameterI4ivNVPROC glProgramLocalParameterI4ivNV = (glProgramLocalParameterI4ivNVPROC)((intptr_t)function_pointer); - glProgramLocalParameterI4ivNV(target, index, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParametersI4ivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramLocalParametersI4ivNVPROC glProgramLocalParametersI4ivNV = (glProgramLocalParametersI4ivNVPROC)((intptr_t)function_pointer); - glProgramLocalParametersI4ivNV(target, index, count, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParameterI4uiNV(JNIEnv *env, jclass clazz, jint target, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { - glProgramLocalParameterI4uiNVPROC glProgramLocalParameterI4uiNV = (glProgramLocalParameterI4uiNVPROC)((intptr_t)function_pointer); - glProgramLocalParameterI4uiNV(target, index, x, y, z, w); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParameterI4uivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { - const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramLocalParameterI4uivNVPROC glProgramLocalParameterI4uivNV = (glProgramLocalParameterI4uivNVPROC)((intptr_t)function_pointer); - glProgramLocalParameterI4uivNV(target, index, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParametersI4uivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramLocalParametersI4uivNVPROC glProgramLocalParametersI4uivNV = (glProgramLocalParametersI4uivNVPROC)((intptr_t)function_pointer); - glProgramLocalParametersI4uivNV(target, index, count, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParameterI4iNV(JNIEnv *env, jclass clazz, jint target, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { - glProgramEnvParameterI4iNVPROC glProgramEnvParameterI4iNV = (glProgramEnvParameterI4iNVPROC)((intptr_t)function_pointer); - glProgramEnvParameterI4iNV(target, index, x, y, z, w); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParameterI4ivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { - const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramEnvParameterI4ivNVPROC glProgramEnvParameterI4ivNV = (glProgramEnvParameterI4ivNVPROC)((intptr_t)function_pointer); - glProgramEnvParameterI4ivNV(target, index, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParametersI4ivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramEnvParametersI4ivNVPROC glProgramEnvParametersI4ivNV = (glProgramEnvParametersI4ivNVPROC)((intptr_t)function_pointer); - glProgramEnvParametersI4ivNV(target, index, count, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParameterI4uiNV(JNIEnv *env, jclass clazz, jint target, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { - glProgramEnvParameterI4uiNVPROC glProgramEnvParameterI4uiNV = (glProgramEnvParameterI4uiNVPROC)((intptr_t)function_pointer); - glProgramEnvParameterI4uiNV(target, index, x, y, z, w); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParameterI4uivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { - const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramEnvParameterI4uivNVPROC glProgramEnvParameterI4uivNV = (glProgramEnvParameterI4uivNVPROC)((intptr_t)function_pointer); - glProgramEnvParameterI4uivNV(target, index, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParametersI4uivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramEnvParametersI4uivNVPROC glProgramEnvParametersI4uivNV = (glProgramEnvParametersI4uivNVPROC)((intptr_t)function_pointer); - glProgramEnvParametersI4uivNV(target, index, count, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglGetProgramLocalParameterIivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { - GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetProgramLocalParameterIivNVPROC glGetProgramLocalParameterIivNV = (glGetProgramLocalParameterIivNVPROC)((intptr_t)function_pointer); - glGetProgramLocalParameterIivNV(target, index, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglGetProgramLocalParameterIuivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { - GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetProgramLocalParameterIuivNVPROC glGetProgramLocalParameterIuivNV = (glGetProgramLocalParameterIuivNVPROC)((intptr_t)function_pointer); - glGetProgramLocalParameterIuivNV(target, index, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglGetProgramEnvParameterIivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { - GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetProgramEnvParameterIivNVPROC glGetProgramEnvParameterIivNV = (glGetProgramEnvParameterIivNVPROC)((intptr_t)function_pointer); - glGetProgramEnvParameterIivNV(target, index, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglGetProgramEnvParameterIuivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { - GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glGetProgramEnvParameterIuivNVPROC glGetProgramEnvParameterIuivNV = (glGetProgramEnvParameterIuivNVPROC)((intptr_t)function_pointer); - glGetProgramEnvParameterIuivNV(target, index, params_address); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glProgramLocalParameterI4iNVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRY *glProgramLocalParameterI4ivNVPROC) (GLenum target, GLuint index, const GLint * params); +typedef void (APIENTRY *glProgramLocalParametersI4ivNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint * params); +typedef void (APIENTRY *glProgramLocalParameterI4uiNVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRY *glProgramLocalParameterI4uivNVPROC) (GLenum target, GLuint index, const GLuint * params); +typedef void (APIENTRY *glProgramLocalParametersI4uivNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint * params); +typedef void (APIENTRY *glProgramEnvParameterI4iNVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRY *glProgramEnvParameterI4ivNVPROC) (GLenum target, GLuint index, const GLint * params); +typedef void (APIENTRY *glProgramEnvParametersI4ivNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint * params); +typedef void (APIENTRY *glProgramEnvParameterI4uiNVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRY *glProgramEnvParameterI4uivNVPROC) (GLenum target, GLuint index, const GLuint * params); +typedef void (APIENTRY *glProgramEnvParametersI4uivNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint * params); +typedef void (APIENTRY *glGetProgramLocalParameterIivNVPROC) (GLenum target, GLuint index, GLint * params); +typedef void (APIENTRY *glGetProgramLocalParameterIuivNVPROC) (GLenum target, GLuint index, GLuint * params); +typedef void (APIENTRY *glGetProgramEnvParameterIivNVPROC) (GLenum target, GLuint index, GLint * params); +typedef void (APIENTRY *glGetProgramEnvParameterIuivNVPROC) (GLenum target, GLuint index, GLuint * params); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParameterI4iNV(JNIEnv *env, jclass clazz, jint target, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { + glProgramLocalParameterI4iNVPROC glProgramLocalParameterI4iNV = (glProgramLocalParameterI4iNVPROC)((intptr_t)function_pointer); + glProgramLocalParameterI4iNV(target, index, x, y, z, w); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParameterI4ivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { + const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramLocalParameterI4ivNVPROC glProgramLocalParameterI4ivNV = (glProgramLocalParameterI4ivNVPROC)((intptr_t)function_pointer); + glProgramLocalParameterI4ivNV(target, index, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParametersI4ivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramLocalParametersI4ivNVPROC glProgramLocalParametersI4ivNV = (glProgramLocalParametersI4ivNVPROC)((intptr_t)function_pointer); + glProgramLocalParametersI4ivNV(target, index, count, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParameterI4uiNV(JNIEnv *env, jclass clazz, jint target, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { + glProgramLocalParameterI4uiNVPROC glProgramLocalParameterI4uiNV = (glProgramLocalParameterI4uiNVPROC)((intptr_t)function_pointer); + glProgramLocalParameterI4uiNV(target, index, x, y, z, w); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParameterI4uivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { + const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramLocalParameterI4uivNVPROC glProgramLocalParameterI4uivNV = (glProgramLocalParameterI4uivNVPROC)((intptr_t)function_pointer); + glProgramLocalParameterI4uivNV(target, index, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramLocalParametersI4uivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramLocalParametersI4uivNVPROC glProgramLocalParametersI4uivNV = (glProgramLocalParametersI4uivNVPROC)((intptr_t)function_pointer); + glProgramLocalParametersI4uivNV(target, index, count, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParameterI4iNV(JNIEnv *env, jclass clazz, jint target, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { + glProgramEnvParameterI4iNVPROC glProgramEnvParameterI4iNV = (glProgramEnvParameterI4iNVPROC)((intptr_t)function_pointer); + glProgramEnvParameterI4iNV(target, index, x, y, z, w); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParameterI4ivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { + const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramEnvParameterI4ivNVPROC glProgramEnvParameterI4ivNV = (glProgramEnvParameterI4ivNVPROC)((intptr_t)function_pointer); + glProgramEnvParameterI4ivNV(target, index, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParametersI4ivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramEnvParametersI4ivNVPROC glProgramEnvParametersI4ivNV = (glProgramEnvParametersI4ivNVPROC)((intptr_t)function_pointer); + glProgramEnvParametersI4ivNV(target, index, count, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParameterI4uiNV(JNIEnv *env, jclass clazz, jint target, jint index, jint x, jint y, jint z, jint w, jlong function_pointer) { + glProgramEnvParameterI4uiNVPROC glProgramEnvParameterI4uiNV = (glProgramEnvParameterI4uiNVPROC)((intptr_t)function_pointer); + glProgramEnvParameterI4uiNV(target, index, x, y, z, w); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParameterI4uivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { + const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramEnvParameterI4uivNVPROC glProgramEnvParameterI4uivNV = (glProgramEnvParameterI4uivNVPROC)((intptr_t)function_pointer); + glProgramEnvParameterI4uivNV(target, index, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglProgramEnvParametersI4uivNV(JNIEnv *env, jclass clazz, jint target, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramEnvParametersI4uivNVPROC glProgramEnvParametersI4uivNV = (glProgramEnvParametersI4uivNVPROC)((intptr_t)function_pointer); + glProgramEnvParametersI4uivNV(target, index, count, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglGetProgramLocalParameterIivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetProgramLocalParameterIivNVPROC glGetProgramLocalParameterIivNV = (glGetProgramLocalParameterIivNVPROC)((intptr_t)function_pointer); + glGetProgramLocalParameterIivNV(target, index, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglGetProgramLocalParameterIuivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { + GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetProgramLocalParameterIuivNVPROC glGetProgramLocalParameterIuivNV = (glGetProgramLocalParameterIuivNVPROC)((intptr_t)function_pointer); + glGetProgramLocalParameterIuivNV(target, index, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglGetProgramEnvParameterIivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { + GLint *params_address = ((GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetProgramEnvParameterIivNVPROC glGetProgramEnvParameterIivNV = (glGetProgramEnvParameterIivNVPROC)((intptr_t)function_pointer); + glGetProgramEnvParameterIivNV(target, index, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVGpuProgram4_nglGetProgramEnvParameterIuivNV(JNIEnv *env, jclass clazz, jint target, jint index, jobject params, jint params_position, jlong function_pointer) { + GLuint *params_address = ((GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glGetProgramEnvParameterIuivNVPROC glGetProgramEnvParameterIuivNV = (glGetProgramEnvParameterIuivNVPROC)((intptr_t)function_pointer); + glGetProgramEnvParameterIuivNV(target, index, params_address); +} + diff --git a/src/native/generated/org_lwjgl_opengl_NVParameterBufferObject.c b/src/native/generated/org_lwjgl_opengl_NVParameterBufferObject.c index 7c771bd2..7f9d5cf0 100644 --- a/src/native/generated/org_lwjgl_opengl_NVParameterBufferObject.c +++ b/src/native/generated/org_lwjgl_opengl_NVParameterBufferObject.c @@ -1,27 +1,27 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glProgramBufferParametersfvNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat * params); -typedef void (APIENTRY *glProgramBufferParametersIivNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint * params); -typedef void (APIENTRY *glProgramBufferParametersIuivNVPROC) (GLenum target, GLuint buffer, GLuint index, GLuint count, const GLuint * params); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglProgramBufferParametersfvNV(JNIEnv *env, jclass clazz, jint target, jint buffer, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramBufferParametersfvNVPROC glProgramBufferParametersfvNV = (glProgramBufferParametersfvNVPROC)((intptr_t)function_pointer); - glProgramBufferParametersfvNV(target, buffer, index, count, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglProgramBufferParametersIivNV(JNIEnv *env, jclass clazz, jint target, jint buffer, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramBufferParametersIivNVPROC glProgramBufferParametersIivNV = (glProgramBufferParametersIivNVPROC)((intptr_t)function_pointer); - glProgramBufferParametersIivNV(target, buffer, index, count, params_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglProgramBufferParametersIuivNV(JNIEnv *env, jclass clazz, jint target, jint buffer, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { - const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; - glProgramBufferParametersIuivNVPROC glProgramBufferParametersIuivNV = (glProgramBufferParametersIuivNVPROC)((intptr_t)function_pointer); - glProgramBufferParametersIuivNV(target, buffer, index, count, params_address); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glProgramBufferParametersfvNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat * params); +typedef void (APIENTRY *glProgramBufferParametersIivNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint * params); +typedef void (APIENTRY *glProgramBufferParametersIuivNVPROC) (GLenum target, GLuint buffer, GLuint index, GLuint count, const GLuint * params); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglProgramBufferParametersfvNV(JNIEnv *env, jclass clazz, jint target, jint buffer, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramBufferParametersfvNVPROC glProgramBufferParametersfvNV = (glProgramBufferParametersfvNVPROC)((intptr_t)function_pointer); + glProgramBufferParametersfvNV(target, buffer, index, count, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglProgramBufferParametersIivNV(JNIEnv *env, jclass clazz, jint target, jint buffer, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLint *params_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramBufferParametersIivNVPROC glProgramBufferParametersIivNV = (glProgramBufferParametersIivNVPROC)((intptr_t)function_pointer); + glProgramBufferParametersIivNV(target, buffer, index, count, params_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglProgramBufferParametersIuivNV(JNIEnv *env, jclass clazz, jint target, jint buffer, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { + const GLuint *params_address = ((const GLuint *)(*env)->GetDirectBufferAddress(env, params)) + params_position; + glProgramBufferParametersIuivNVPROC glProgramBufferParametersIuivNV = (glProgramBufferParametersIuivNVPROC)((intptr_t)function_pointer); + glProgramBufferParametersIuivNV(target, buffer, index, count, params_address); +} + diff --git a/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c b/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c index 7cb5a1a1..e3bca039 100644 --- a/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c +++ b/src/native/generated/org_lwjgl_opengl_NVTransformFeeback.c @@ -1,82 +1,82 @@ -/* MACHINE GENERATED FILE, DO NOT EDIT */ - -#include -#include "extgl.h" - -typedef void (APIENTRY *glBindBufferRangeNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRY *glBindBufferOffsetNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -typedef void (APIENTRY *glBindBufferBaseNVPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (APIENTRY *glTransformFeedbackAttribsNVPROC) (GLsizei count, const GLint * attribs, GLenum bufferMode); -typedef void (APIENTRY *glTransformFeedbackVaryingsNVPROC) (GLuint program, GLsizei count, const GLint * locations, GLenum bufferMode); -typedef void (APIENTRY *glBeginTransformFeedbackNVPROC) (GLenum primitiveMode); -typedef void (APIENTRY *glEndTransformFeedbackNVPROC) (); -typedef GLint (APIENTRY *glGetVaryingLocationNVPROC) (GLuint program, const GLchar * name); -typedef void (APIENTRY *glGetActiveVaryingNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name); -typedef void (APIENTRY *glActiveVaryingNVPROC) (GLuint program, const GLchar * name); -typedef void (APIENTRY *glGetTransformFeedbackVaryingNVPROC) (GLuint program, GLuint index, GLint * location); - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferRangeNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong size, jlong function_pointer) { - glBindBufferRangeNVPROC glBindBufferRangeNV = (glBindBufferRangeNVPROC)((intptr_t)function_pointer); - glBindBufferRangeNV(target, index, buffer, offset, size); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferOffsetNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong function_pointer) { - glBindBufferOffsetNVPROC glBindBufferOffsetNV = (glBindBufferOffsetNVPROC)((intptr_t)function_pointer); - glBindBufferOffsetNV(target, index, buffer, offset); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferBaseNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong function_pointer) { - glBindBufferBaseNVPROC glBindBufferBaseNV = (glBindBufferBaseNVPROC)((intptr_t)function_pointer); - glBindBufferBaseNV(target, index, buffer); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglTransformFeedbackAttribsNV(JNIEnv *env, jclass clazz, jint count, jobject attribs, jint attribs_position, jint bufferMode, jlong function_pointer) { - const GLint *attribs_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position; - glTransformFeedbackAttribsNVPROC glTransformFeedbackAttribsNV = (glTransformFeedbackAttribsNVPROC)((intptr_t)function_pointer); - glTransformFeedbackAttribsNV(count, attribs_address, bufferMode); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglTransformFeedbackVaryingsNV(JNIEnv *env, jclass clazz, jint program, jint count, jobject locations, jint locations_position, jint bufferMode, jlong function_pointer) { - const GLint *locations_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, locations)) + locations_position; - glTransformFeedbackVaryingsNVPROC glTransformFeedbackVaryingsNV = (glTransformFeedbackVaryingsNVPROC)((intptr_t)function_pointer); - glTransformFeedbackVaryingsNV(program, count, locations_address, bufferMode); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBeginTransformFeedbackNV(JNIEnv *env, jclass clazz, jint primitiveMode, jlong function_pointer) { - glBeginTransformFeedbackNVPROC glBeginTransformFeedbackNV = (glBeginTransformFeedbackNVPROC)((intptr_t)function_pointer); - glBeginTransformFeedbackNV(primitiveMode); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglEndTransformFeedbackNV(JNIEnv *env, jclass clazz, jlong function_pointer) { - glEndTransformFeedbackNVPROC glEndTransformFeedbackNV = (glEndTransformFeedbackNVPROC)((intptr_t)function_pointer); - glEndTransformFeedbackNV(); -} - -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetVaryingLocationNV(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) { - const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; - glGetVaryingLocationNVPROC glGetVaryingLocationNV = (glGetVaryingLocationNVPROC)((intptr_t)function_pointer); - GLint __result = glGetVaryingLocationNV(program, name_address); - return __result; -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetActiveVaryingNV(JNIEnv *env, jclass clazz, jint program, jint index, jint bufSize, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) { - GLsizei *length_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, length)) + length_position; - GLsizei *size_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, size)) + size_position; - GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position; - GLchar *name_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; - glGetActiveVaryingNVPROC glGetActiveVaryingNV = (glGetActiveVaryingNVPROC)((intptr_t)function_pointer); - glGetActiveVaryingNV(program, index, bufSize, length_address, size_address, type_address, name_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglActiveVaryingNV(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) { - const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; - glActiveVaryingNVPROC glActiveVaryingNV = (glActiveVaryingNVPROC)((intptr_t)function_pointer); - glActiveVaryingNV(program, name_address); -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetTransformFeedbackVaryingNV(JNIEnv *env, jclass clazz, jint program, jint index, jobject location, jint location_position, jlong function_pointer) { - GLint *location_address = ((GLint *)(*env)->GetDirectBufferAddress(env, location)) + location_position; - glGetTransformFeedbackVaryingNVPROC glGetTransformFeedbackVaryingNV = (glGetTransformFeedbackVaryingNVPROC)((intptr_t)function_pointer); - glGetTransformFeedbackVaryingNV(program, index, location_address); -} - +/* MACHINE GENERATED FILE, DO NOT EDIT */ + +#include +#include "extgl.h" + +typedef void (APIENTRY *glBindBufferRangeNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRY *glBindBufferOffsetNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); +typedef void (APIENTRY *glBindBufferBaseNVPROC) (GLenum target, GLuint index, GLuint buffer); +typedef void (APIENTRY *glTransformFeedbackAttribsNVPROC) (GLsizei count, const GLint * attribs, GLenum bufferMode); +typedef void (APIENTRY *glTransformFeedbackVaryingsNVPROC) (GLuint program, GLsizei count, const GLint * locations, GLenum bufferMode); +typedef void (APIENTRY *glBeginTransformFeedbackNVPROC) (GLenum primitiveMode); +typedef void (APIENTRY *glEndTransformFeedbackNVPROC) (); +typedef GLint (APIENTRY *glGetVaryingLocationNVPROC) (GLuint program, const GLchar * name); +typedef void (APIENTRY *glGetActiveVaryingNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name); +typedef void (APIENTRY *glActiveVaryingNVPROC) (GLuint program, const GLchar * name); +typedef void (APIENTRY *glGetTransformFeedbackVaryingNVPROC) (GLuint program, GLuint index, GLint * location); + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferRangeNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong size, jlong function_pointer) { + glBindBufferRangeNVPROC glBindBufferRangeNV = (glBindBufferRangeNVPROC)((intptr_t)function_pointer); + glBindBufferRangeNV(target, index, buffer, offset, size); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferOffsetNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong function_pointer) { + glBindBufferOffsetNVPROC glBindBufferOffsetNV = (glBindBufferOffsetNVPROC)((intptr_t)function_pointer); + glBindBufferOffsetNV(target, index, buffer, offset); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBindBufferBaseNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong function_pointer) { + glBindBufferBaseNVPROC glBindBufferBaseNV = (glBindBufferBaseNVPROC)((intptr_t)function_pointer); + glBindBufferBaseNV(target, index, buffer); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglTransformFeedbackAttribsNV(JNIEnv *env, jclass clazz, jint count, jobject attribs, jint attribs_position, jint bufferMode, jlong function_pointer) { + const GLint *attribs_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, attribs)) + attribs_position; + glTransformFeedbackAttribsNVPROC glTransformFeedbackAttribsNV = (glTransformFeedbackAttribsNVPROC)((intptr_t)function_pointer); + glTransformFeedbackAttribsNV(count, attribs_address, bufferMode); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglTransformFeedbackVaryingsNV(JNIEnv *env, jclass clazz, jint program, jint count, jobject locations, jint locations_position, jint bufferMode, jlong function_pointer) { + const GLint *locations_address = ((const GLint *)(*env)->GetDirectBufferAddress(env, locations)) + locations_position; + glTransformFeedbackVaryingsNVPROC glTransformFeedbackVaryingsNV = (glTransformFeedbackVaryingsNVPROC)((intptr_t)function_pointer); + glTransformFeedbackVaryingsNV(program, count, locations_address, bufferMode); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglBeginTransformFeedbackNV(JNIEnv *env, jclass clazz, jint primitiveMode, jlong function_pointer) { + glBeginTransformFeedbackNVPROC glBeginTransformFeedbackNV = (glBeginTransformFeedbackNVPROC)((intptr_t)function_pointer); + glBeginTransformFeedbackNV(primitiveMode); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglEndTransformFeedbackNV(JNIEnv *env, jclass clazz, jlong function_pointer) { + glEndTransformFeedbackNVPROC glEndTransformFeedbackNV = (glEndTransformFeedbackNVPROC)((intptr_t)function_pointer); + glEndTransformFeedbackNV(); +} + +JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetVaryingLocationNV(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) { + const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; + glGetVaryingLocationNVPROC glGetVaryingLocationNV = (glGetVaryingLocationNVPROC)((intptr_t)function_pointer); + GLint __result = glGetVaryingLocationNV(program, name_address); + return __result; +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetActiveVaryingNV(JNIEnv *env, jclass clazz, jint program, jint index, jint bufSize, jobject length, jint length_position, jobject size, jint size_position, jobject type, jint type_position, jobject name, jint name_position, jlong function_pointer) { + GLsizei *length_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, length)) + length_position; + GLsizei *size_address = ((GLsizei *)(*env)->GetDirectBufferAddress(env, size)) + size_position; + GLenum *type_address = ((GLenum *)(*env)->GetDirectBufferAddress(env, type)) + type_position; + GLchar *name_address = ((GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; + glGetActiveVaryingNVPROC glGetActiveVaryingNV = (glGetActiveVaryingNVPROC)((intptr_t)function_pointer); + glGetActiveVaryingNV(program, index, bufSize, length_address, size_address, type_address, name_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglActiveVaryingNV(JNIEnv *env, jclass clazz, jint program, jobject name, jint name_position, jlong function_pointer) { + const GLchar *name_address = ((const GLchar *)(*env)->GetDirectBufferAddress(env, name)) + name_position; + glActiveVaryingNVPROC glActiveVaryingNV = (glActiveVaryingNVPROC)((intptr_t)function_pointer); + glActiveVaryingNV(program, name_address); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVTransformFeeback_nglGetTransformFeedbackVaryingNV(JNIEnv *env, jclass clazz, jint program, jint index, jobject location, jint location_position, jlong function_pointer) { + GLint *location_address = ((GLint *)(*env)->GetDirectBufferAddress(env, location)) + location_position; + glGetTransformFeedbackVaryingNVPROC glGetTransformFeedbackVaryingNV = (glGetTransformFeedbackVaryingNVPROC)((intptr_t)function_pointer); + glGetTransformFeedbackVaryingNV(program, index, location_address); +} + diff --git a/src/templates/org/lwjgl/opengl/GL11.java b/src/templates/org/lwjgl/opengl/GL11.java index 9e8fa0d6..fc3675c7 100644 --- a/src/templates/org/lwjgl/opengl/GL11.java +++ b/src/templates/org/lwjgl/opengl/GL11.java @@ -1207,10 +1207,10 @@ public interface GL11 { void glPopMatrix(); - @Code(" StateTracker.pushAttrib(mask);") + @Code(" StateTracker.pushAttrib(caps, mask);") void glPushClientAttrib(@GLbitfield int mask); - @Code(" StateTracker.popAttrib();") + @Code(" StateTracker.popAttrib(caps);") void glPopClientAttrib(); void glPushAttrib(@GLbitfield int mask);