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);
 }
 public static void glExtGetProgramBinarySourceQCOM(
     int program, int shadertype, ByteBuffer source, IntBuffer length) {
   BufferChecks.checkDirect(source);
   BufferChecks.checkBuffer(length, 1);
   nglExtGetProgramBinarySourceQCOM(
       program, shadertype, MemoryUtil.getAddress(source), MemoryUtil.getAddress(length));
 }
 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);
 }
 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);
 }
示例#5
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);
 }
 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);
 }
 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 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);
 }
 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);
 }
 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);
 }
 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);
 }
 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);
 }
 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);
 }
 public static void glGetVertexAttribArrayObjectATI(int index, int pname, IntBuffer params) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetVertexAttribArrayObjectivATI;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(params, 4);
   nglGetVertexAttribArrayObjectivATI(
       index, pname, MemoryUtil.getAddress(params), function_pointer);
 }
 public static void glGetCompressedTexImageARB(int target, int lod, ByteBuffer pImg) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetCompressedTexImageARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensurePackPBOdisabled(caps);
   BufferChecks.checkDirect(pImg);
   nglGetCompressedTexImageARB(target, lod, MemoryUtil.getAddress(pImg), function_pointer);
 }
示例#16
0
 /*     */ public static void glGetUniformARB(int programObj, int location, IntBuffer params) {
   /* 522 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 523 */ long function_pointer = caps.glGetUniformivARB;
   /* 524 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 525 */ BufferChecks.checkDirect(params);
   /* 526 */ nglGetUniformivARB(
       programObj, location, MemoryUtil.getAddress(params), function_pointer);
   /*     */ }
示例#17
0
 /*     */ public static void glGetObjectParameterARB(int obj, int pname, IntBuffer params) {
   /* 360 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 361 */ long function_pointer = caps.glGetObjectParameterivARB;
   /* 362 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 363 */ BufferChecks.checkDirect(params);
   /* 364 */ nglGetObjectParameterivARB(
       obj, pname, MemoryUtil.getAddress(params), function_pointer);
   /*     */ }
示例#18
0
 /*     */ public static void glUniform4ARB(int location, IntBuffer values) {
   /* 305 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 306 */ long function_pointer = caps.glUniform4ivARB;
   /* 307 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 308 */ BufferChecks.checkDirect(values);
   /* 309 */ nglUniform4ivARB(
       location, values.remaining() >> 2, MemoryUtil.getAddress(values), function_pointer);
   /*     */ }
示例#19
0
 /*     */ public static void glUniform3ARB(int location, FloatBuffer values) {
   /* 260 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 261 */ long function_pointer = caps.glUniform3fvARB;
   /* 262 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 263 */ BufferChecks.checkDirect(values);
   /* 264 */ nglUniform3fvARB(
       location, values.remaining() / 3, MemoryUtil.getAddress(values), function_pointer);
   /*     */ }
示例#20
0
 /*     */ public static void glShaderSourceARB(int shader, ByteBuffer string) /*     */ {
   /* 102 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 103 */ long function_pointer = caps.glShaderSourceARB;
   /* 104 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 105 */ BufferChecks.checkDirect(string);
   /* 106 */ nglShaderSourceARB(
       shader, 1, MemoryUtil.getAddress(string), string.remaining(), function_pointer);
   /*     */ }
 public static void glBindFragDataLocationEXT(int program, int colorNumber, ByteBuffer name) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glBindFragDataLocationEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(name);
   BufferChecks.checkNullTerminated(name);
   nglBindFragDataLocationEXT(program, colorNumber, name, name.position(), function_pointer);
 }
 public static void glColorTableEXT(
     int target, int internalFormat, int width, int format, int type, ShortBuffer data) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glColorTableEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
   nglColorTableEXT(
       target, internalFormat, width, format, type, MemoryUtil.getAddress(data), function_pointer);
 }
 public static int glGetFragDataLocationEXT(int program, ByteBuffer name) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetFragDataLocationEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(name);
   BufferChecks.checkNullTerminated(name);
   int __result = nglGetFragDataLocationEXT(program, name, name.position(), function_pointer);
   return __result;
 }
 public static void glColorSubTableEXT(
     int target, int start, int count, int format, int type, ByteBuffer data) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glColorSubTableEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, count, 1, 1));
   nglColorSubTableEXT(
       target, start, count, format, type, MemoryUtil.getAddress(data), function_pointer);
 }
 public static void glDebugMessageInsertARB(
     int source, int type, int id, int severity, ByteBuffer buf) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glDebugMessageInsertARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(buf);
   nglDebugMessageInsertARB(
       source, type, id, severity, buf.remaining(), buf, buf.position(), function_pointer);
 }
示例#26
0
 public static void glGetActiveAtomicCounterBuffer(
     int program, int bufferIndex, int pname, IntBuffer params) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetActiveAtomicCounterBufferiv;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(params, 1);
   nglGetActiveAtomicCounterBufferiv(
       program, bufferIndex, pname, MemoryUtil.getAddress(params), function_pointer);
 }
示例#27
0
 /*     */ public static int glGetUniformLocationARB(int programObj, ByteBuffer name) /*     */ {
   /* 419 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 420 */ long function_pointer = caps.glGetUniformLocationARB;
   /* 421 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 422 */ BufferChecks.checkDirect(name);
   /* 423 */ BufferChecks.checkNullTerminated(name);
   /* 424 */ int __result =
       nglGetUniformLocationARB(programObj, MemoryUtil.getAddress(name), function_pointer);
   /* 425 */ return __result;
   /*     */ }
示例#28
0
 public static CLEvent clCreateUserEvent(CLContext context, IntBuffer errcode_ret) {
   long function_pointer = CLCapabilities.clCreateUserEvent;
   BufferChecks.checkFunctionAddress(function_pointer);
   if (errcode_ret != null) BufferChecks.checkBuffer(errcode_ret, 1);
   CLEvent __result =
       new CLEvent(
           nclCreateUserEvent(
               context.getPointer(), MemoryUtil.getAddressSafe(errcode_ret), function_pointer),
           context);
   return __result;
 }
示例#29
0
 public static void glWeightPointerARB(int size, int stride, FloatBuffer pPointer) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glWeightPointerARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureArrayVBOdisabled(caps);
   BufferChecks.checkDirect(pPointer);
   if (LWJGLUtil.CHECKS)
     StateTracker.getReferences(caps).ARB_vertex_blend_glWeightPointerARB_pPointer = pPointer;
   nglWeightPointerARB(
       size, GL11.GL_FLOAT, stride, MemoryUtil.getAddress(pPointer), function_pointer);
 }
 public static void glVertexAttribIPointerEXT(
     int index, int size, int type, int stride, ShortBuffer buffer) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glVertexAttribIPointerEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureArrayVBOdisabled(caps);
   BufferChecks.checkDirect(buffer);
   if (LWJGLUtil.CHECKS)
     StateTracker.getReferences(caps).EXT_gpu_shader4_glVertexAttribIPointerEXT_buffer = buffer;
   nglVertexAttribIPointerEXT(
       index, size, type, stride, buffer, buffer.position() << 1, function_pointer);
 }