コード例 #1
0
 /** 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
 /**
  * Alternative version of: {@link #glGetPerfMonitorCounterStringAMD
  * GetPerfMonitorCounterStringAMD}
  */
 public static void glGetPerfMonitorCounterStringAMD(
     int group, int counter, IntBuffer length, ByteBuffer counterString) {
   if (LWJGLUtil.CHECKS) if (length != null) checkBuffer(length, 1);
   nglGetPerfMonitorCounterStringAMD(
       group,
       counter,
       counterString == null ? 0 : counterString.remaining(),
       memAddressSafe(length),
       memAddressSafe(counterString));
 }
コード例 #3
0
 /** ByteBuffer version of: {@link #glGetBufferSubData GetBufferSubData} */
 public static void glGetBufferSubData(int target, long offset, ByteBuffer data) {
   nglGetBufferSubData(target, offset, data.remaining(), memAddress(data));
 }
コード例 #4
0
 /** ByteBuffer version of: {@link #glBufferData BufferData} */
 public static void glBufferData(int target, ByteBuffer data, int usage) {
   nglBufferData(target, data.remaining(), memAddress(data), usage);
 }
コード例 #5
0
 /** Alternative version of: {@link #glGetActiveSubroutineName GetActiveSubroutineName} */
 public static void glGetActiveSubroutineName(
     int program, int shadertype, int index, IntBuffer length, ByteBuffer name) {
   if (LWJGLUtil.CHECKS) if (length != null) checkBuffer(length, 1);
   nglGetActiveSubroutineName(
       program, shadertype, index, name.remaining(), memAddressSafe(length), memAddress(name));
 }
コード例 #6
0
 /**
  * Alternative version of: {@link #glGetPerfMonitorGroupStringAMD GetPerfMonitorGroupStringAMD}
  */
 public static void glGetPerfMonitorGroupStringAMD(
     int group, IntBuffer length, ByteBuffer groupString) {
   if (LWJGLUtil.CHECKS) checkBuffer(length, 1);
   nglGetPerfMonitorGroupStringAMD(
       group, groupString.remaining(), memAddress(length), memAddress(groupString));
 }