Exemplo n.º 1
0
 /** Single return value version of: {@link #glGetBufferPointerv GetBufferPointerv} */
 public static long glGetBufferPointer(int target, int pname) {
   APIBuffer __buffer = apiBuffer();
   int params = __buffer.pointerParam();
   nglGetBufferPointerv(target, pname, __buffer.address(params));
   return __buffer.pointerValue(params);
 }
Exemplo n.º 2
0
 /**
  * <a href="http://www.opengl.org/sdk/docs/man/html/glGetBufferPointer.xhtml">OpenGL SDK
  * Reference</a> Returns the pointer to a mapped buffer object's data store.
  *
  * @param target the target buffer object. One of:<br>
  *     {@link #GL_ARRAY_BUFFER ARRAY_BUFFER}, {@link #GL_ELEMENT_ARRAY_BUFFER
  *     ELEMENT_ARRAY_BUFFER}, {@link GL21#GL_PIXEL_PACK_BUFFER PIXEL_PACK_BUFFER}, {@link
  *     GL21#GL_PIXEL_UNPACK_BUFFER PIXEL_UNPACK_BUFFER}, {@link GL30#GL_TRANSFORM_FEEDBACK_BUFFER
  *     TRANSFORM_FEEDBACK_BUFFER}, {@link GL31#GL_UNIFORM_BUFFER UNIFORM_BUFFER}, {@link
  *     GL31#GL_TEXTURE_BUFFER TEXTURE_BUFFER}, {@link GL31#GL_COPY_READ_BUFFER COPY_READ_BUFFER},
  *     {@link GL31#GL_COPY_WRITE_BUFFER COPY_WRITE_BUFFER}, {@link GL40#GL_DRAW_INDIRECT_BUFFER
  *     DRAW_INDIRECT_BUFFER}, {@link GL42#GL_ATOMIC_COUNTER_BUFFER ATOMIC_COUNTER_BUFFER}, {@link
  *     GL43#GL_DISPATCH_INDIRECT_BUFFER DISPATCH_INDIRECT_BUFFER}, {@link
  *     GL43#GL_SHADER_STORAGE_BUFFER SHADER_STORAGE_BUFFER}, {@link
  *     ARBIndirectParameters#GL_PARAMETER_BUFFER_ARB PARAMETER_BUFFER_ARB}
  * @param pname the pointer to be returned. Must be:<br>
  *     {@link #GL_BUFFER_MAP_POINTER BUFFER_MAP_POINTER}
  * @param params the pointer value specified by {@code pname}
  */
 public static void glGetBufferPointerv(int target, int pname, ByteBuffer params) {
   if (LWJGLUtil.CHECKS) checkBuffer(params, 1 << POINTER_SHIFT);
   nglGetBufferPointerv(target, pname, memAddress(params));
 }
Exemplo n.º 3
0
 /** Alternative version of: {@link #glGetBufferPointerv GetBufferPointerv} */
 public static void glGetBufferPointerv(int target, int pname, PointerBuffer params) {
   if (LWJGLUtil.CHECKS) checkBuffer(params, 1);
   nglGetBufferPointerv(target, pname, memAddress(params));
 }
Exemplo n.º 4
0
 /** Unsafe version of {@link #glGetBufferPointerv GetBufferPointerv} */
 @JavadocExclude
 public static void nglGetBufferPointerv(int target, int pname, long params) {
   long __functionAddress = getInstance().GetBufferPointerv;
   nglGetBufferPointerv(target, pname, params, __functionAddress);
 }