/* */ public static String glGetShaderSourceARB(int obj, int maxLength) { /* 543 */ ContextCapabilities caps = GLContext.getCapabilities(); /* 544 */ long function_pointer = caps.glGetShaderSourceARB; /* 545 */ BufferChecks.checkFunctionAddress(function_pointer); /* 546 */ IntBuffer source_length = APIUtil.getLengths(caps); /* 547 */ ByteBuffer source = APIUtil.getBufferByte(caps, maxLength); /* 548 */ nglGetShaderSourceARB( obj, maxLength, MemoryUtil.getAddress0(source_length), MemoryUtil.getAddress(source), function_pointer); /* 549 */ source.limit(source_length.get(0)); /* 550 */ return APIUtil.getString(caps, source); /* */ }
/* */ public static String glGetInfoLogARB(int obj, int maxLength) { /* 391 */ ContextCapabilities caps = GLContext.getCapabilities(); /* 392 */ long function_pointer = caps.glGetInfoLogARB; /* 393 */ BufferChecks.checkFunctionAddress(function_pointer); /* 394 */ IntBuffer infoLog_length = APIUtil.getLengths(caps); /* 395 */ ByteBuffer infoLog = APIUtil.getBufferByte(caps, maxLength); /* 396 */ nglGetInfoLogARB( obj, maxLength, MemoryUtil.getAddress0(infoLog_length), MemoryUtil.getAddress(infoLog), function_pointer); /* 397 */ infoLog.limit(infoLog_length.get(0)); /* 398 */ return APIUtil.getString(caps, infoLog); /* */ }
/* */ 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 String glGetActiveUniformARB( int programObj, int index, int maxLength, IntBuffer sizeType) /* */ { /* 457 */ ContextCapabilities caps = GLContext.getCapabilities(); /* 458 */ long function_pointer = caps.glGetActiveUniformARB; /* 459 */ BufferChecks.checkFunctionAddress(function_pointer); /* 460 */ BufferChecks.checkBuffer(sizeType, 2); /* 461 */ IntBuffer name_length = APIUtil.getLengths(caps); /* 462 */ ByteBuffer name = APIUtil.getBufferByte(caps, maxLength); /* 463 */ nglGetActiveUniformARB( programObj, index, maxLength, MemoryUtil.getAddress0(name_length), MemoryUtil.getAddress(sizeType), MemoryUtil.getAddress(sizeType, sizeType.position() + 1), MemoryUtil.getAddress(name), function_pointer); /* 464 */ name.limit(name_length.get(0)); /* 465 */ return APIUtil.getString(caps, name); /* */ }