Beispiel #1
0
 /** ShortBuffer version of: {@link #glBufferData BufferData} */
 public static void glBufferData(int target, ShortBuffer data, int usage) {
   nglBufferData(target, data.remaining() << 1, memAddress(data), usage);
 }
Beispiel #2
0
 /** ShortBuffer version of: {@link #glGetBufferSubData GetBufferSubData} */
 public static void glGetBufferSubData(int target, long offset, ShortBuffer data) {
   nglGetBufferSubData(target, offset, data.remaining() << 1, memAddress(data));
 }
Beispiel #3
0
 /** GL_UNSIGNED_SHORT version of: {@link #glDrawRangeElements DrawRangeElements} */
 public static void glDrawRangeElements(int mode, int start, int end, ShortBuffer indices) {
   if (LWJGLUtil.CHECKS) GLChecks.ensureBufferObject(GL15.GL_ELEMENT_ARRAY_BUFFER_BINDING, false);
   nglDrawRangeElements(
       mode, start, end, indices.remaining(), GL11.GL_UNSIGNED_SHORT, memAddress(indices));
 }