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 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 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);
 }
Example #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 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 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);
 }
 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 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 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 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 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 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 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);
 }
 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 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 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);
 }
Example #18
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);
 }
 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);
 }
 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;
 }
Example #22
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;
 }
Example #23
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);
 }
Example #25
0
 public static int clIcdGetPlatformIDsKHR(PointerBuffer platforms, IntBuffer num_platforms) {
   long function_pointer = CLCapabilities.clIcdGetPlatformIDsKHR;
   BufferChecks.checkFunctionAddress(function_pointer);
   if (platforms != null) BufferChecks.checkDirect(platforms);
   if (num_platforms != null) BufferChecks.checkBuffer(num_platforms, 1);
   int __result =
       nclIcdGetPlatformIDsKHR(
           (platforms == null ? 0 : platforms.remaining()),
           MemoryUtil.getAddressSafe(platforms),
           MemoryUtil.getAddressSafe(num_platforms),
           function_pointer);
   return __result;
 }
Example #26
0
 public static void glGetInternalformat(
     int target, int internalformat, int pname, IntBuffer params) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetInternalformativ;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(params);
   nglGetInternalformativ(
       target,
       internalformat,
       pname,
       params.remaining(),
       MemoryUtil.getAddress(params),
       function_pointer);
 }
 public static void glDrawElementsBaseVertex(int mode, ShortBuffer indices, int basevertex) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.ARB_draw_elements_base_vertex_glDrawElementsBaseVertex_pointer;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureElementVBOdisabled(caps);
   BufferChecks.checkDirect(indices);
   nglDrawElementsBaseVertex(
       mode,
       (indices.remaining()),
       GL11.GL_UNSIGNED_SHORT,
       indices,
       indices.position() << 1,
       basevertex,
       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);
 }
Example #29
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);
 }
 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;
 }