Exemplo n.º 1
0
 /*     */ public static void glGetShaderSourceARB(int obj, IntBuffer length, ByteBuffer source) {
   /* 531 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 532 */ long function_pointer = caps.glGetShaderSourceARB;
   /* 533 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 534 */ if (length != null) /* 535 */ BufferChecks.checkBuffer(length, 1);
   /* 536 */ BufferChecks.checkDirect(source);
   /* 537 */ nglGetShaderSourceARB(
       obj,
       source.remaining(),
       MemoryUtil.getAddressSafe(length),
       MemoryUtil.getAddress(source),
       function_pointer);
   /*     */ }
Exemplo n.º 2
0
 /*     */ 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);
   /*     */ }