Пример #1
0
 /** FloatBuffer version of: {@link #glBufferData BufferData} */
 public static void glBufferData(int target, FloatBuffer data, int usage) {
   nglBufferData(target, data.remaining() << 2, memAddress(data), usage);
 }
Пример #2
0
 /** FloatBuffer version of: {@link #glGetBufferSubData GetBufferSubData} */
 public static void glGetBufferSubData(int target, long offset, FloatBuffer data) {
   nglGetBufferSubData(target, offset, data.remaining() << 2, memAddress(data));
 }
 /** Alternative version of: {@link #glViewportArrayv ViewportArrayv} */
 public static void glViewportArrayv(int first, FloatBuffer v) {
   nglViewportArrayv(first, v.remaining() >> 2, memAddress(v));
 }