/** 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 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); }
/** 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 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); }
/* */ public static int glGetObjectParameteriARB(int obj, int pname) { /* 370 */ ContextCapabilities caps = GLContext.getCapabilities(); /* 371 */ long function_pointer = caps.glGetObjectParameterivARB; /* 372 */ BufferChecks.checkFunctionAddress(function_pointer); /* 373 */ IntBuffer params = APIUtil.getBufferInt(caps); /* 374 */ nglGetObjectParameterivARB( obj, pname, MemoryUtil.getAddress(params), function_pointer); /* 375 */ return params.get(0); /* */ }
/** * Returns the value of the sync object attribute. * * @param sync the sync object * @param attribute the attribute to query * @return the attribute value * @throws org.lwjgl.LWJGLException if an EGL error occurs. */ public static int eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, int attribute) throws LWJGLException { final IntBuffer value = APIUtil.getBufferInt(); if (!neglGetSyncAttribKHR( dpy.getPointer(), sync.getPointer(), attribute, MemoryUtil.getAddress(value))) throwEGLError("Failed to get KHR fence sync object attribute."); return value.get(0); }
/* */ public static String glGetActiveUniformARB(int programObj, int index, int maxLength) /* */ { /* 474 */ ContextCapabilities caps = GLContext.getCapabilities(); /* 475 */ long function_pointer = caps.glGetActiveUniformARB; /* 476 */ BufferChecks.checkFunctionAddress(function_pointer); /* 477 */ IntBuffer name_length = APIUtil.getLengths(caps); /* 478 */ ByteBuffer name = APIUtil.getBufferByte(caps, maxLength); /* 479 */ nglGetActiveUniformARB( programObj, index, maxLength, MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress0(APIUtil.getBufferInt(caps)), MemoryUtil.getAddress(APIUtil.getBufferInt(caps), 1), MemoryUtil.getAddress(name), function_pointer); /* 480 */ name.limit(name_length.get(0)); /* 481 */ return APIUtil.getString(caps, name); /* */ }
/* */ public static int glGetActiveUniformTypeARB(int programObj, int index) /* */ { /* 504 */ ContextCapabilities caps = GLContext.getCapabilities(); /* 505 */ long function_pointer = caps.glGetActiveUniformARB; /* 506 */ BufferChecks.checkFunctionAddress(function_pointer); /* 507 */ IntBuffer type = APIUtil.getBufferInt(caps); /* 508 */ nglGetActiveUniformARB( programObj, index, 0, 0L, MemoryUtil.getAddress(type, 1), MemoryUtil.getAddress(type), APIUtil.getBufferByte0(caps), function_pointer); /* 509 */ return type.get(0); /* */ }
/* */ public static int glGetActiveUniformSizeARB(int programObj, int index) /* */ { /* 490 */ ContextCapabilities caps = GLContext.getCapabilities(); /* 491 */ long function_pointer = caps.glGetActiveUniformARB; /* 492 */ BufferChecks.checkFunctionAddress(function_pointer); /* 493 */ IntBuffer size = APIUtil.getBufferInt(caps); /* 494 */ nglGetActiveUniformARB( programObj, index, 0, 0L, MemoryUtil.getAddress(size), MemoryUtil.getAddress(size, 1), APIUtil.getBufferByte0(caps), function_pointer); /* 495 */ return size.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 glGenRenderbuffersOES. */ public static int glGenRenderbuffersOES() { IntBuffer renderbuffers = APIUtil.getBufferInt(); nglGenRenderbuffersOES(1, MemoryUtil.getAddress(renderbuffers)); return renderbuffers.get(0); }