public static void glDrawElementsBaseVertex(
     int mode, int count, int type, long indices_buffer_offset, int basevertex) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.ARB_draw_elements_base_vertex_glDrawElementsBaseVertex_pointer;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureElementVBOenabled(caps);
   nglDrawElementsBaseVertexBO(
       mode, count, type, indices_buffer_offset, basevertex, function_pointer);
 }
Ejemplo n.º 2
0
 public static void glDrawElementsInstancedBaseInstance(
     int mode,
     int indices_count,
     int type,
     long indices_buffer_offset,
     int primcount,
     int baseinstance) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glDrawElementsInstancedBaseInstance;
   BufferChecks.checkFunctionAddress(function_pointer);
   GLChecks.ensureElementVBOenabled(caps);
   nglDrawElementsInstancedBaseInstanceBO(
       mode,
       indices_count,
       type,
       indices_buffer_offset,
       primcount,
       baseinstance,
       function_pointer);
 }