public static void glCompressedTexSubImage3DARB(
     int target,
     int level,
     int xoffset,
     int yoffset,
     int zoffset,
     int width,
     int height,
     int depth,
     int format,
     int pData_imageSize,
     long pData_buffer_offset) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glCompressedTexSubImage3DARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureUnpackPBOenabled(caps);
   nglCompressedTexSubImage3DARBBO(
       target,
       level,
       xoffset,
       yoffset,
       zoffset,
       width,
       height,
       depth,
       format,
       pData_imageSize,
       pData_buffer_offset,
       function_pointer);
 }
Ejemplo n.º 2
0
 /*    */ public static void glBlendColorEXT(float red, float green, float blue, float alpha)
       /*    */ {
   /* 27 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 28 */ long function_pointer = caps.glBlendColorEXT;
   /* 29 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 30 */ nglBlendColorEXT(red, green, blue, alpha, function_pointer);
   /*    */ }
Ejemplo n.º 3
0
 public static void glTexStorage3D(
     int target, int levels, int internalformat, int width, int height, int depth) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glTexStorage3D;
   BufferChecks.checkFunctionAddress(function_pointer);
   nglTexStorage3D(target, levels, internalformat, width, height, depth, function_pointer);
 }
 public static void glUniform4uEXT(int location, IntBuffer value) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glUniform4uivEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(value);
   nglUniform4uivEXT(location, value.remaining() >> 2, value, value.position(), function_pointer);
 }
 /** Overloads glBindFragDataLocationEXT. */
 public static void glBindFragDataLocationEXT(int program, int colorNumber, CharSequence name) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glBindFragDataLocationEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   nglBindFragDataLocationEXT(
       program, colorNumber, APIUtil.getBufferNT(name), 0, function_pointer);
 }
Ejemplo n.º 6
0
 public static boolean glIsQueryARB(int id) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glIsQueryARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   boolean __result = nglIsQueryARB(id, function_pointer);
   return __result;
 }
 public static void glVertexAttribI4uEXT(int index, ShortBuffer v) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glVertexAttribI4usvEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(v, 4);
   nglVertexAttribI4usvEXT(index, v, v.position(), function_pointer);
 }
Ejemplo n.º 8
0
 public static void glVertexArrayRangeAPPLE(ByteBuffer pointer) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glVertexArrayRangeAPPLE;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(pointer);
   nglVertexArrayRangeAPPLE(pointer.remaining(), pointer, pointer.position(), function_pointer);
 }
Ejemplo n.º 9
0
 /*     */ public static int glCreateProgramObjectARB() {
   /* 137 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 138 */ long function_pointer = caps.glCreateProgramObjectARB;
   /* 139 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 140 */ int __result = nglCreateProgramObjectARB(function_pointer);
   /* 141 */ return __result;
   /*     */ }
Ejemplo n.º 10
0
 public static void glPointParameterEXT(int pname, FloatBuffer pfParams) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glPointParameterfvEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(pfParams, 4);
   nglPointParameterfvEXT(pname, MemoryUtil.getAddress(pfParams), function_pointer);
 }
Ejemplo n.º 11
0
 public static void glCopyBufferSubData(
     int readTarget, int writeTarget, long readOffset, long writeOffset, long size) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.ARB_copy_buffer_glCopyBufferSubData_pointer;
   BufferChecks.checkFunctionAddress(function_pointer);
   nglCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size, function_pointer);
 }
Ejemplo n.º 12
0
 public static void glGetColorTableParameterEXT(int target, int pname, IntBuffer params) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetColorTableParameterivEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(params, 4);
   nglGetColorTableParameterivEXT(target, pname, MemoryUtil.getAddress(params), function_pointer);
 }
Ejemplo n.º 13
0
 public static void glGetColorTableEXT(int target, int format, int type, ShortBuffer data) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetColorTableEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(data);
   nglGetColorTableEXT(target, format, type, MemoryUtil.getAddress(data), function_pointer);
 }
 public static void glGetCompressedTexImageARB(int target, int lod, long pImg_buffer_offset) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetCompressedTexImageARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensurePackPBOenabled(caps);
   nglGetCompressedTexImageARBBO(target, lod, pImg_buffer_offset, function_pointer);
 }
Ejemplo n.º 15
0
 public static void glBindImageTexture(
     int unit, int texture, int level, boolean layered, int layer, int access, int format) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glBindImageTexture;
   BufferChecks.checkFunctionAddress(function_pointer);
   nglBindImageTexture(unit, texture, level, layered, layer, access, format, function_pointer);
 }
Ejemplo n.º 16
0
 /*     */ public static void glUniform4fARB(
     int location, float v0, float v1, float v2, float v3) {
   /* 202 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 203 */ long function_pointer = caps.glUniform4fARB;
   /* 204 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 205 */ nglUniform4fARB(location, v0, v1, v2, v3, function_pointer);
   /*     */ }
Ejemplo n.º 17
0
 public static void glDeleteQueriesARB(IntBuffer ids) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glDeleteQueriesARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(ids);
   nglDeleteQueriesARB(ids.remaining(), MemoryUtil.getAddress(ids), function_pointer);
 }
Ejemplo n.º 18
0
 /*     */ public static int glGetHandleARB(int pname) {
   /*  71 */ ContextCapabilities caps = GLContext.getCapabilities();
   /*  72 */ long function_pointer = caps.glGetHandleARB;
   /*  73 */ BufferChecks.checkFunctionAddress(function_pointer);
   /*  74 */ int __result = nglGetHandleARB(pname, function_pointer);
   /*  75 */ return __result;
   /*     */ }
Ejemplo n.º 19
0
 public static void glGetQueryARB(int target, int pname, IntBuffer params) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetQueryivARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(params, 1);
   nglGetQueryivARB(target, pname, MemoryUtil.getAddress(params), function_pointer);
 }
Ejemplo n.º 20
0
 /*     */ public static int glCreateShaderObjectARB(int shaderType) {
   /*  88 */ ContextCapabilities caps = GLContext.getCapabilities();
   /*  89 */ long function_pointer = caps.glCreateShaderObjectARB;
   /*  90 */ BufferChecks.checkFunctionAddress(function_pointer);
   /*  91 */ int __result = nglCreateShaderObjectARB(shaderType, function_pointer);
   /*  92 */ return __result;
   /*     */ }
 public static void glGetVertexAttribIuEXT(int index, int pname, IntBuffer params) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetVertexAttribIuivEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(params, 4);
   nglGetVertexAttribIuivEXT(index, pname, params, params.position(), function_pointer);
 }
Ejemplo n.º 22
0
 /*     */ public static void glShaderSourceARB(int shader, CharSequence string) {
   /* 112 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 113 */ long function_pointer = caps.glShaderSourceARB;
   /* 114 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 115 */ nglShaderSourceARB(
       shader, 1, APIUtil.getBuffer(caps, string), string.length(), function_pointer);
   /*     */ }
 public static void glGetUniformuEXT(int program, int location, IntBuffer params) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetUniformuivEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(params);
   nglGetUniformuivEXT(program, location, params, params.position(), function_pointer);
 }
Ejemplo n.º 24
0
 public static void glDrawTransformFeedbackStreamInstanced(
     int mode, int id, int stream, int primcount) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glDrawTransformFeedbackStreamInstanced;
   BufferChecks.checkFunctionAddress(function_pointer);
   nglDrawTransformFeedbackStreamInstanced(mode, id, stream, primcount, function_pointer);
 }
Ejemplo n.º 25
0
 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);
   params = NondirectBufferWrapper.wrapBuffer(params, 4);
   nglProgramLocalParameterI4uivNV(target, index, params, params.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,
     ByteBuffer pData) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glCompressedTexSubImage3DARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureUnpackPBOdisabled(caps);
   BufferChecks.checkDirect(pData);
   nglCompressedTexSubImage3DARB(
       target,
       level,
       xoffset,
       yoffset,
       zoffset,
       width,
       height,
       depth,
       format,
       pData.remaining(),
       MemoryUtil.getAddress(pData),
       function_pointer);
 }
Ejemplo n.º 27
0
 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);
 }
Ejemplo n.º 28
0
 public static void glWeightARB(DoubleBuffer pWeights) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glWeightdvARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(pWeights);
   nglWeightdvARB(pWeights.remaining(), MemoryUtil.getAddress(pWeights), function_pointer);
 }
Ejemplo n.º 29
0
 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);
   params = NondirectBufferWrapper.wrapDirect(params);
   nglProgramEnvParametersI4ivNV(
       target, index, (params.remaining()) >> 2, params, params.position(), function_pointer);
 }
Ejemplo n.º 30
0
 public static void glWeightPointerARB(
     int size, int type, int stride, long pPointer_buffer_offset) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glWeightPointerARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureArrayVBOenabled(caps);
   nglWeightPointerARBBO(size, type, stride, pPointer_buffer_offset, function_pointer);
 }