Пример #1
0
 /*     */ public static void glGetInfoLogARB(int obj, IntBuffer length, ByteBuffer infoLog) {
   /* 379 */ ContextCapabilities caps = GLContext.getCapabilities();
   /* 380 */ long function_pointer = caps.glGetInfoLogARB;
   /* 381 */ BufferChecks.checkFunctionAddress(function_pointer);
   /* 382 */ if (length != null) /* 383 */ BufferChecks.checkBuffer(length, 1);
   /* 384 */ BufferChecks.checkDirect(infoLog);
   /* 385 */ nglGetInfoLogARB(
       obj,
       infoLog.remaining(),
       MemoryUtil.getAddressSafe(length),
       MemoryUtil.getAddress(infoLog),
       function_pointer);
   /*     */ }
Пример #2
0
 /*     */ 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);
   /*     */ }