/** Alternative version of: {@link #glGetActiveUniformBlockName GetActiveUniformBlockName} */
 public static void glGetActiveUniformBlockName(
     int program, int uniformBlockIndex, IntBuffer length, ByteBuffer uniformBlockName) {
   if (LWJGLUtil.CHECKS) if (length != null) checkBuffer(length, 1);
   nglGetActiveUniformBlockName(
       program,
       uniformBlockIndex,
       uniformBlockName.remaining(),
       memAddressSafe(length),
       memAddress(uniformBlockName));
 }
示例#2
0
 /** ByteBuffer version of: {@link #glGetBufferSubData GetBufferSubData} */
 public static void glGetBufferSubData(int target, long offset, ByteBuffer data) {
   nglGetBufferSubData(target, offset, data.remaining(), memAddress(data));
 }
示例#3
0
 /** ByteBuffer version of: {@link #glBufferData BufferData} */
 public static void glBufferData(int target, ByteBuffer data, int usage) {
   nglBufferData(target, data.remaining(), memAddress(data), usage);
 }