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 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);
 }
Example #3
0
 public static void glWeightARB(IntBuffer pWeights) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glWeightivARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkDirect(pWeights);
   nglWeightivARB(pWeights.remaining(), MemoryUtil.getAddress(pWeights), function_pointer);
 }
 /** Alternative version of: {@link #glGetPerfMonitorCountersAMD GetPerfMonitorCountersAMD} */
 public static void glGetPerfMonitorCountersAMD(
     int group, IntBuffer numCounters, IntBuffer maxActiveCounters, IntBuffer counters) {
   if (LWJGLUtil.CHECKS) {
     checkBuffer(numCounters, 1);
     checkBuffer(maxActiveCounters, 1);
   }
   nglGetPerfMonitorCountersAMD(
       group,
       memAddress(numCounters),
       memAddress(maxActiveCounters),
       counters.remaining(),
       memAddress(counters));
 }
Example #5
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, IntBuffer 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_INT,
       indices,
       indices.position() << 2,
       basevertex,
       function_pointer);
 }
Example #7
0
 public static void glDrawElementsInstancedBaseInstance(
     int mode, IntBuffer 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_INT,
       MemoryUtil.getAddress(indices),
       primcount,
       baseinstance,
       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);
 }
Example #9
0
 /** IntBuffer version of: {@link #glBufferData BufferData} */
 public static void glBufferData(int target, IntBuffer data, int usage) {
   nglBufferData(target, data.remaining() << 2, memAddress(data), usage);
 }
 public static void glDeleteRenderbuffersOES(IntBuffer renderbuffers) {
   BufferChecks.checkDirect(renderbuffers);
   nglDeleteRenderbuffersOES(renderbuffers.remaining(), MemoryUtil.getAddress(renderbuffers));
 }
Example #11
0
 /** Alternative version of: {@link #glGenBuffers GenBuffers} */
 public static void glGenBuffers(IntBuffer buffers) {
   nglGenBuffers(buffers.remaining(), memAddress(buffers));
 }
Example #12
0
 /** GL_UNSIGNED_INT version of: {@link #glDrawRangeElements DrawRangeElements} */
 public static void glDrawRangeElements(int mode, int start, int end, IntBuffer indices) {
   if (LWJGLUtil.CHECKS) GLChecks.ensureBufferObject(GL15.GL_ELEMENT_ARRAY_BUFFER_BINDING, false);
   nglDrawRangeElements(
       mode, start, end, indices.remaining(), GL11.GL_UNSIGNED_INT, memAddress(indices));
 }
 public static void glGenFramebuffersOES(IntBuffer framebuffers) {
   BufferChecks.checkDirect(framebuffers);
   nglGenFramebuffersOES(framebuffers.remaining(), MemoryUtil.getAddress(framebuffers));
 }
 /**
  * Alternative version of: {@link #glUniformSubroutinesui(int, int, java.nio.ByteBuffer)
  * UniformSubroutinesui}
  */
 public static void glUniformSubroutinesu(int shadertype, IntBuffer indices) {
   nglUniformSubroutinesuiv(shadertype, indices.remaining(), memAddress(indices));
 }
 public static void glExtGetProgramsQCOM(IntBuffer programs, IntBuffer numPrograms) {
   BufferChecks.checkBuffer(programs, 1);
   BufferChecks.checkBuffer(numPrograms, 1);
   nglExtGetProgramsQCOM(
       MemoryUtil.getAddress(programs), programs.remaining(), MemoryUtil.getAddress(numPrograms));
 }
 /** Alternative version of: {@link #glDeletePerfMonitorsAMD DeletePerfMonitorsAMD} */
 public static void glDeletePerfMonitorsAMD(IntBuffer monitors) {
   nglDeletePerfMonitorsAMD(monitors.remaining(), memAddress(monitors));
 }
 /** Alternative version of: {@link #glScissorArrayv ScissorArrayv} */
 public static void glScissorArrayv(int first, IntBuffer v) {
   nglScissorArrayv(first, v.remaining() >> 2, memAddress(v));
 }
 public static void glExtGetShadersQCOM(IntBuffer shaders, IntBuffer numShaders) {
   BufferChecks.checkBuffer(shaders, 1);
   BufferChecks.checkBuffer(numShaders, 1);
   nglExtGetShadersQCOM(
       MemoryUtil.getAddress(shaders), shaders.remaining(), MemoryUtil.getAddress(numShaders));
 }
 /**
  * Alternative version of: {@link #glSelectPerfMonitorCountersAMD SelectPerfMonitorCountersAMD}
  */
 public static void glSelectPerfMonitorCountersAMD(
     int monitor, boolean enable, int group, IntBuffer counterList) {
   nglSelectPerfMonitorCountersAMD(
       monitor, enable, group, counterList.remaining(), memAddress(counterList));
 }
 /** GL_UNSIGNED_INT version of: {@link #wglGetGPUInfoAMD GetGPUInfoAMD} */
 public static int wglGetGPUInfoAMD(int id, int property, IntBuffer data) {
   return nwglGetGPUInfoAMD(
       id, property, GL11.GL_UNSIGNED_INT, data.remaining(), memAddress(data));
 }
 /** Alternative version of: {@link #wglGetGPUIDsAMD GetGPUIDsAMD} */
 public static int wglGetGPUIDsAMD(IntBuffer ids) {
   return nwglGetGPUIDsAMD(ids == null ? 0 : ids.remaining(), memAddressSafe(ids));
 }
 /**
  * Alternative version of: {@link #glGetPerfMonitorCounterDataAMD GetPerfMonitorCounterDataAMD}
  */
 public static void glGetPerfMonitorCounterDataAMD(
     int monitor, int pname, IntBuffer data, IntBuffer bytesWritten) {
   if (LWJGLUtil.CHECKS) if (bytesWritten != null) checkBuffer(bytesWritten, 1);
   nglGetPerfMonitorCounterDataAMD(
       monitor, pname, data.remaining(), memAddress(data), memAddressSafe(bytesWritten));
 }
Example #23
0
 /** IntBuffer version of: {@link #glGetBufferSubData GetBufferSubData} */
 public static void glGetBufferSubData(int target, long offset, IntBuffer data) {
   nglGetBufferSubData(target, offset, data.remaining() << 2, memAddress(data));
 }
 /** Alternative version of: {@link #glGetPerfMonitorGroupsAMD GetPerfMonitorGroupsAMD} */
 public static void glGetPerfMonitorGroupsAMD(IntBuffer numGroups, IntBuffer groups) {
   if (LWJGLUtil.CHECKS) if (numGroups != null) checkBuffer(numGroups, 1);
   nglGetPerfMonitorGroupsAMD(
       memAddressSafe(numGroups), groups == null ? 0 : groups.remaining(), memAddressSafe(groups));
 }
Example #25
0
 /** Alternative version of: {@link #glDeleteQueries DeleteQueries} */
 public static void glDeleteQueries(IntBuffer ids) {
   nglDeleteQueries(ids.remaining(), memAddress(ids));
 }
 /** Alternative version of: {@link #glGetActiveUniformsiv GetActiveUniformsiv} */
 public static void glGetActiveUniformsiv(
     int program, IntBuffer uniformIndices, int pname, IntBuffer params) {
   if (LWJGLUtil.CHECKS) checkBuffer(params, uniformIndices.remaining());
   nglGetActiveUniformsiv(
       program, uniformIndices.remaining(), memAddress(uniformIndices), pname, memAddress(params));
 }