/** 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);
 }
 /** Overloads glGetFragDataLocationEXT. */
 public static int glGetFragDataLocationEXT(int program, CharSequence name) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetFragDataLocationEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   int __result =
       nglGetFragDataLocationEXT(program, APIUtil.getBufferNT(name), 0, function_pointer);
   return __result;
 }
Exemplo n.º 3
0
 /** Overloads glGenQueriesARB. */
 public static int glGenQueriesARB() {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGenQueriesARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   IntBuffer ids = APIUtil.getBufferInt(caps);
   nglGenQueriesARB(1, MemoryUtil.getAddress(ids), function_pointer);
   return ids.get(0);
 }
Exemplo n.º 4
0
 /** Overloads glGetQueryObjectuivARB. */
 public static int glGetQueryObjectuiARB(int id, int pname) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetQueryObjectuivARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   IntBuffer params = APIUtil.getBufferInt(caps);
   nglGetQueryObjectuivARB(id, pname, MemoryUtil.getAddress(params), function_pointer);
   return params.get(0);
 }
 /** Overloads glDebugMessageInsertARB. */
 public static void glDebugMessageInsertARB(
     int source, int type, int id, int severity, CharSequence buf) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glDebugMessageInsertARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   nglDebugMessageInsertARB(
       source, type, id, severity, buf.length(), APIUtil.getBuffer(buf), 0, function_pointer);
 }
Exemplo n.º 6
0
 /** Overloads glGetInternalformativ. */
 public static int glGetInternalformat(int target, int internalformat, int pname) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetInternalformativ;
   BufferChecks.checkFunctionAddress(function_pointer);
   IntBuffer params = APIUtil.getBufferInt(caps);
   nglGetInternalformativ(
       target, internalformat, pname, 1, MemoryUtil.getAddress(params), function_pointer);
   return params.get(0);
 }
Exemplo n.º 7
0
 /** Overloads glGetActiveAtomicCounterBufferiv. */
 public static int glGetActiveAtomicCounterBuffer(int program, int bufferIndex, int pname) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glGetActiveAtomicCounterBufferiv;
   BufferChecks.checkFunctionAddress(function_pointer);
   IntBuffer params = APIUtil.getBufferInt(caps);
   nglGetActiveAtomicCounterBufferiv(
       program, bufferIndex, pname, MemoryUtil.getAddress(params), function_pointer);
   return params.get(0);
 }
 /** Overloads glGetFramebufferAttachmentParameterivOES. */
 public static int glGetFramebufferAttachmentParameteriOES(int target, int attachment, int pname) {
   IntBuffer params = APIUtil.getBufferInt();
   nglGetFramebufferAttachmentParameterivOES(
       target, attachment, pname, MemoryUtil.getAddress(params));
   return params.get(0);
 }
 /** Overloads glGenFramebuffersOES. */
 public static int glGenFramebuffersOES() {
   IntBuffer framebuffers = APIUtil.getBufferInt();
   nglGenFramebuffersOES(1, MemoryUtil.getAddress(framebuffers));
   return framebuffers.get(0);
 }
 /** Overloads glDeleteFramebuffersOES. */
 public static void glDeleteFramebuffersOES(int framebuffer) {
   nglDeleteFramebuffersOES(1, APIUtil.getInt(framebuffer));
 }
 /** Overloads glGenRenderbuffersOES. */
 public static int glGenRenderbuffersOES() {
   IntBuffer renderbuffers = APIUtil.getBufferInt();
   nglGenRenderbuffersOES(1, MemoryUtil.getAddress(renderbuffers));
   return renderbuffers.get(0);
 }
 /** Overloads glDeleteRenderbuffersOES. */
 public static void glDeleteRenderbuffersOES(int renderbuffer) {
   nglDeleteRenderbuffersOES(1, APIUtil.getInt(renderbuffer));
 }
Exemplo n.º 13
0
 /** Overloads glDeleteQueriesARB. */
 public static void glDeleteQueriesARB(int id) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glDeleteQueriesARB;
   BufferChecks.checkFunctionAddress(function_pointer);
   nglDeleteQueriesARB(1, APIUtil.getInt(caps, id), function_pointer);
 }