예제 #1
0
 /*     */ 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);
   /*     */ }
예제 #2
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);
   /*     */ }
예제 #3
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);
   /*     */ }
예제 #4
0
 /*     */ 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);
   /*     */ }
예제 #5
0
 /*     */ public static void glGetActiveUniformARB(
     int programObj,
     int index,
     IntBuffer length,
     IntBuffer size,
     IntBuffer type,
     ByteBuffer name) {
   /* 439 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 440 */ long function_pointer = caps.glGetActiveUniformARB;
   /* 441 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 442 */ if (length != null) /* 443 */ BufferChecks.checkBuffer(length, 1);
   /* 444 */ BufferChecks.checkBuffer(size, 1);
   /* 445 */ BufferChecks.checkBuffer(type, 1);
   /* 446 */ BufferChecks.checkDirect(name);
   /* 447 */ nglGetActiveUniformARB(
       programObj,
       index,
       name.remaining(),
       MemoryUtil.getAddressSafe(length),
       MemoryUtil.getAddress(size),
       MemoryUtil.getAddress(type),
       MemoryUtil.getAddress(name),
       function_pointer);
   /*     */ }