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);
 }
Ejemplo n.º 3
0
 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));
 }
Ejemplo n.º 4
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.º 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);
 }
Ejemplo n.º 6
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 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.º 8
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);
 }
 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 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 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 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;
 }
Ejemplo n.º 13
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);
 }
Ejemplo n.º 15
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;
 }
Ejemplo n.º 16
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);
 }
 public static void glDebugMessageControlARB(
     int source, int type, int severity, IntBuffer ids, boolean enabled) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glDebugMessageControlARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   if (ids != null) BufferChecks.checkDirect(ids);
   nglDebugMessageControlARB(
       source,
       type,
       severity,
       (ids == null ? 0 : ids.remaining()),
       ids,
       ids != null ? ids.position() : 0,
       enabled,
       function_pointer);
 }
Ejemplo n.º 19
0
 public static void glDrawElementsInstancedBaseInstance(
     int mode, ShortBuffer indices, int primcount, int baseinstance) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glDrawElementsInstancedBaseInstance;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureElementVBOdisabled(caps);
   BufferChecks.checkDirect(indices);
   nglDrawElementsInstancedBaseInstance(
       mode,
       indices.remaining(),
       GL11.GL_UNSIGNED_SHORT,
       MemoryUtil.getAddress(indices),
       primcount,
       baseinstance,
       function_pointer);
 }
 public static void glCompressedTexImage1DARB(
     int target, int level, int internalformat, int width, int border, ByteBuffer pData) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glCompressedTexImage1DARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureUnpackPBOdisabled(caps);
   BufferChecks.checkDirect(pData);
   nglCompressedTexImage1DARB(
       target,
       level,
       internalformat,
       width,
       border,
       pData.remaining(),
       MemoryUtil.getAddress(pData),
       function_pointer);
 }
Ejemplo n.º 21
0
 public static int clEnqueueWriteBufferRect(
     CLCommandQueue command_queue,
     CLMem buffer,
     int blocking_write,
     PointerBuffer buffer_offset,
     PointerBuffer host_offset,
     PointerBuffer region,
     long buffer_row_pitch,
     long buffer_slice_pitch,
     long host_row_pitch,
     long host_slice_pitch,
     ShortBuffer ptr,
     PointerBuffer event_wait_list,
     PointerBuffer event) {
   long function_pointer = CLCapabilities.clEnqueueWriteBufferRect;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(buffer_offset, 3);
   BufferChecks.checkBuffer(host_offset, 3);
   BufferChecks.checkBuffer(region, 3);
   BufferChecks.checkBuffer(
       ptr,
       CLChecks.calculateBufferRectSize(host_offset, region, host_row_pitch, host_slice_pitch));
   if (event_wait_list != null) BufferChecks.checkDirect(event_wait_list);
   if (event != null) BufferChecks.checkBuffer(event, 1);
   int __result =
       nclEnqueueWriteBufferRect(
           command_queue.getPointer(),
           buffer.getPointer(),
           blocking_write,
           MemoryUtil.getAddress(buffer_offset),
           MemoryUtil.getAddress(host_offset),
           MemoryUtil.getAddress(region),
           buffer_row_pitch,
           buffer_slice_pitch,
           host_row_pitch,
           host_slice_pitch,
           MemoryUtil.getAddress(ptr),
           (event_wait_list == null ? 0 : event_wait_list.remaining()),
           MemoryUtil.getAddressSafe(event_wait_list),
           MemoryUtil.getAddressSafe(event),
           function_pointer);
   if (__result == CL10.CL_SUCCESS) command_queue.registerCLEvent(event);
   return __result;
 }
Ejemplo n.º 22
0
 public static int clEnqueueCopyBufferRect(
     CLCommandQueue command_queue,
     CLMem src_buffer,
     CLMem dst_buffer,
     PointerBuffer src_origin,
     PointerBuffer dst_origin,
     PointerBuffer region,
     long src_row_pitch,
     long src_slice_pitch,
     long dst_row_pitch,
     long dst_slice_pitch,
     PointerBuffer event_wait_list,
     PointerBuffer event) {
   long function_pointer = CLCapabilities.clEnqueueCopyBufferRect;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(src_origin, 3);
   BufferChecks.checkBuffer(dst_origin, 3);
   BufferChecks.checkBuffer(region, 3);
   if (event_wait_list != null) BufferChecks.checkDirect(event_wait_list);
   if (event != null) BufferChecks.checkBuffer(event, 1);
   int __result =
       nclEnqueueCopyBufferRect(
           command_queue.getPointer(),
           src_buffer.getPointer(),
           dst_buffer.getPointer(),
           MemoryUtil.getAddress(src_origin),
           MemoryUtil.getAddress(dst_origin),
           MemoryUtil.getAddress(region),
           src_row_pitch,
           src_slice_pitch,
           dst_row_pitch,
           dst_slice_pitch,
           (event_wait_list == null ? 0 : event_wait_list.remaining()),
           MemoryUtil.getAddressSafe(event_wait_list),
           MemoryUtil.getAddressSafe(event),
           function_pointer);
   if (__result == CL10.CL_SUCCESS) command_queue.registerCLEvent(event);
   return __result;
 }
 public static int glGetDebugMessageLogARB(
     int count,
     IntBuffer sources,
     IntBuffer types,
     IntBuffer ids,
     IntBuffer severities,
     IntBuffer lengths,
     ByteBuffer messageLog) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetDebugMessageLogARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   if (sources != null) BufferChecks.checkBuffer(sources, count);
   if (types != null) BufferChecks.checkBuffer(types, count);
   if (ids != null) BufferChecks.checkBuffer(ids, count);
   if (severities != null) BufferChecks.checkBuffer(severities, count);
   if (lengths != null) BufferChecks.checkBuffer(lengths, count);
   if (messageLog != null) BufferChecks.checkDirect(messageLog);
   int __result =
       nglGetDebugMessageLogARB(
           count,
           (messageLog == null ? 0 : messageLog.remaining()),
           sources,
           sources != null ? sources.position() : 0,
           types,
           types != null ? types.position() : 0,
           ids,
           ids != null ? ids.position() : 0,
           severities,
           severities != null ? severities.position() : 0,
           lengths,
           lengths != null ? lengths.position() : 0,
           messageLog,
           messageLog != null ? messageLog.position() : 0,
           function_pointer);
   return __result;
 }
 public static void glDeleteRenderbuffersOES(IntBuffer renderbuffers) {
   BufferChecks.checkDirect(renderbuffers);
   nglDeleteRenderbuffersOES(renderbuffers.remaining(), MemoryUtil.getAddress(renderbuffers));
 }
 public static void glGenFramebuffersOES(IntBuffer framebuffers) {
   BufferChecks.checkDirect(framebuffers);
   nglGenFramebuffersOES(framebuffers.remaining(), MemoryUtil.getAddress(framebuffers));
 }