Top Fields Constructors Methods
org.lwjgl.opengl

public Class ARBBufferObject

extends Object
Class Inheritance
Known Direct Subclasses
org.lwjgl.opengl.ARBPixelBufferObject, org.lwjgl.opengl.ARBVertexBufferObject, org.lwjgl.opengl.EXTPixelBufferObject
Imports
org.lwjgl.*, java.nio.*

Field Summary

Modifier and TypeField and Description
public static final int
GL_BUFFER_ACCESS_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

public static final int
GL_BUFFER_MAP_POINTER_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

public static final int
GL_BUFFER_MAPPED_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

public static final int
GL_BUFFER_SIZE_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

public static final int
GL_BUFFER_USAGE_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

public static final int
GL_DYNAMIC_COPY_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_DYNAMIC_DRAW_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_DYNAMIC_READ_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_READ_ONLY_ARB

Accepted by the <access> parameter of MapBufferARB:

public static final int
GL_READ_WRITE_ARB

Accepted by the <access> parameter of MapBufferARB:

public static final int
GL_STATIC_COPY_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_STATIC_DRAW_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_STATIC_READ_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_STREAM_COPY_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_STREAM_DRAW_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_STREAM_READ_ARB

Accepted by the <usage> parameter of BufferDataARB:

public static final int
GL_WRITE_ONLY_ARB

Accepted by the <access> parameter of MapBufferARB:

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
glBindBufferARB(int target, int buffer)

public static void
glBufferDataARB(int target, long data_size, int usage)

public static void
glBufferDataARB(int target, ByteBuffer data, int usage)

public static void
glBufferDataARB(int target, DoubleBuffer data, int usage)

public static void
glBufferDataARB(int target, FloatBuffer data, int usage)

public static void
glBufferDataARB(int target, IntBuffer data, int usage)

public static void
glBufferDataARB(int target, ShortBuffer data, int usage)

public static void
glBufferSubDataARB(int target, long offset, ByteBuffer data)

public static void
glBufferSubDataARB(int target, long offset, DoubleBuffer data)

public static void
glBufferSubDataARB(int target, long offset, FloatBuffer data)

public static void
glBufferSubDataARB(int target, long offset, IntBuffer data)

public static void
glBufferSubDataARB(int target, long offset, ShortBuffer data)

public static void
public static void
glDeleteBuffersARB(int buffer)

Overloads glDeleteBuffersARB.

public static void
public static int
glGenBuffersARB()

Overloads glGenBuffersARB.

public static void
glGetBufferParameterARB(int target, int pname, IntBuffer params)

public static int
glGetBufferParameterARB(int target, int pname)

Deprecated Will be removed in 3.0. Use glGetBufferParameteriARB instead.
Overloads glGetBufferParameterivARB.
public static int
glGetBufferParameteriARB(int target, int pname)

Overloads glGetBufferParameterivARB.

public static ByteBuffer
glGetBufferPointerARB(int target, int pname)

public static void
glGetBufferSubDataARB(int target, long offset, ByteBuffer data)

public static void
glGetBufferSubDataARB(int target, long offset, DoubleBuffer data)

public static void
glGetBufferSubDataARB(int target, long offset, FloatBuffer data)

public static void
glGetBufferSubDataARB(int target, long offset, IntBuffer data)

public static void
glGetBufferSubDataARB(int target, long offset, ShortBuffer data)

public static boolean
glIsBufferARB(int buffer)

public static ByteBuffer

Returns:

A ByteBuffer representing the mapped buffer memory.
glMapBufferARB
(int
the length of the mapped memory in bytes.
target
,
int access, ByteBuffer
A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.

old_buffer
)

glMapBufferARB maps a GL buffer object to a ByteBuffer.

public static ByteBuffer

Returns:

A ByteBuffer representing the mapped buffer memory.
glMapBufferARB
(int target, int access, long
the length of the mapped memory in bytes.
length
,
ByteBuffer
A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.

old_buffer
)

glMapBufferARB maps a GL buffer object to a ByteBuffer.

public static boolean
glUnmapBufferARB(int target)

pack-priv static native void
nglBindBufferARB(int target, int buffer, long function_pointer)

pack-priv static native void
nglBufferDataARB(int target, long data_size, long data, int usage, long function_pointer)

pack-priv static native void
nglBufferSubDataARB(int target, long offset, long data_size, long data, long function_pointer)

pack-priv static native void
nglDeleteBuffersARB(int buffers_n, long buffers, long function_pointer)

pack-priv static native void
nglGenBuffersARB(int buffers_n, long buffers, long function_pointer)

pack-priv static native void
nglGetBufferParameterivARB(int target, int pname, long params, long function_pointer)

pack-priv static native ByteBuffer
nglGetBufferPointervARB(int target, int pname, long result_size, long function_pointer)

pack-priv static native void
nglGetBufferSubDataARB(int target, long offset, long data_size, long data, long function_pointer)

pack-priv static native boolean
nglIsBufferARB(int buffer, long function_pointer)

pack-priv static native ByteBuffer
nglMapBufferARB(int target, int access, long result_size, ByteBuffer old_buffer, long function_pointer)

pack-priv static native boolean
nglUnmapBufferARB(int target, long function_pointer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_BUFFER_ACCESS_ARBback to summary
public static final int GL_BUFFER_ACCESS_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

GL_BUFFER_MAP_POINTER_ARBback to summary
public static final int GL_BUFFER_MAP_POINTER_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

GL_BUFFER_MAPPED_ARBback to summary
public static final int GL_BUFFER_MAPPED_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

GL_BUFFER_SIZE_ARBback to summary
public static final int GL_BUFFER_SIZE_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

GL_BUFFER_USAGE_ARBback to summary
public static final int GL_BUFFER_USAGE_ARB

Accepted by the <pname> parameter of GetBufferParameterivARB:

GL_DYNAMIC_COPY_ARBback to summary
public static final int GL_DYNAMIC_COPY_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_DYNAMIC_DRAW_ARBback to summary
public static final int GL_DYNAMIC_DRAW_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_DYNAMIC_READ_ARBback to summary
public static final int GL_DYNAMIC_READ_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_READ_ONLY_ARBback to summary
public static final int GL_READ_ONLY_ARB

Accepted by the <access> parameter of MapBufferARB:

GL_READ_WRITE_ARBback to summary
public static final int GL_READ_WRITE_ARB

Accepted by the <access> parameter of MapBufferARB:

GL_STATIC_COPY_ARBback to summary
public static final int GL_STATIC_COPY_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_STATIC_DRAW_ARBback to summary
public static final int GL_STATIC_DRAW_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_STATIC_READ_ARBback to summary
public static final int GL_STATIC_READ_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_STREAM_COPY_ARBback to summary
public static final int GL_STREAM_COPY_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_STREAM_DRAW_ARBback to summary
public static final int GL_STREAM_DRAW_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_STREAM_READ_ARBback to summary
public static final int GL_STREAM_READ_ARB

Accepted by the <usage> parameter of BufferDataARB:

GL_WRITE_ONLY_ARBback to summary
public static final int GL_WRITE_ONLY_ARB

Accepted by the <access> parameter of MapBufferARB:

Constructor Detail

ARBBufferObjectback to summary
public ARBBufferObject()

Method Detail

glBindBufferARBback to summary
public static void glBindBufferARB(int target, int buffer)
glBufferDataARBback to summary
public static void glBufferDataARB(int target, long data_size, int usage)
glBufferDataARBback to summary
public static void glBufferDataARB(int target, ByteBuffer data, int usage)
glBufferDataARBback to summary
public static void glBufferDataARB(int target, DoubleBuffer data, int usage)
glBufferDataARBback to summary
public static void glBufferDataARB(int target, FloatBuffer data, int usage)
glBufferDataARBback to summary
public static void glBufferDataARB(int target, IntBuffer data, int usage)
glBufferDataARBback to summary
public static void glBufferDataARB(int target, ShortBuffer data, int usage)
glBufferSubDataARBback to summary
public static void glBufferSubDataARB(int target, long offset, ByteBuffer data)
glBufferSubDataARBback to summary
public static void glBufferSubDataARB(int target, long offset, DoubleBuffer data)
glBufferSubDataARBback to summary
public static void glBufferSubDataARB(int target, long offset, FloatBuffer data)
glBufferSubDataARBback to summary
public static void glBufferSubDataARB(int target, long offset, IntBuffer data)
glBufferSubDataARBback to summary
public static void glBufferSubDataARB(int target, long offset, ShortBuffer data)
glDeleteBuffersARBback to summary
public static void glDeleteBuffersARB(IntBuffer buffers)
glDeleteBuffersARBback to summary
public static void glDeleteBuffersARB(int buffer)

Overloads glDeleteBuffersARB.

glGenBuffersARBback to summary
public static void glGenBuffersARB(IntBuffer buffers)
glGenBuffersARBback to summary
public static int glGenBuffersARB()

Overloads glGenBuffersARB.

glGetBufferParameterARBback to summary
public static void glGetBufferParameterARB(int target, int pname, IntBuffer params)
glGetBufferParameterARBback to summary
public static int glGetBufferParameterARB(int target, int pname)

Deprecated

Will be removed in 3.0. Use glGetBufferParameteriARB instead.

Overloads glGetBufferParameterivARB.

Annotations
@Deprecated
glGetBufferParameteriARBback to summary
public static int glGetBufferParameteriARB(int target, int pname)

Overloads glGetBufferParameterivARB.

glGetBufferPointerARBback to summary
public static ByteBuffer glGetBufferPointerARB(int target, int pname)
glGetBufferSubDataARBback to summary
public static void glGetBufferSubDataARB(int target, long offset, ByteBuffer data)
glGetBufferSubDataARBback to summary
public static void glGetBufferSubDataARB(int target, long offset, DoubleBuffer data)
glGetBufferSubDataARBback to summary
public static void glGetBufferSubDataARB(int target, long offset, FloatBuffer data)
glGetBufferSubDataARBback to summary
public static void glGetBufferSubDataARB(int target, long offset, IntBuffer data)
glGetBufferSubDataARBback to summary
public static void glGetBufferSubDataARB(int target, long offset, ShortBuffer data)
glIsBufferARBback to summary
public static boolean glIsBufferARB(int buffer)
glMapBufferARBback to summary
public static ByteBuffer glMapBufferARB(int target, int access, ByteBuffer old_buffer)

glMapBufferARB maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null, in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null, it will be returned if it points to the same mapped memory and has the same capacity as the buffer object, otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferARB like this:

ByteBuffer mapped_buffer; mapped_buffer = glMapBufferARB(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferARB(..., ..., mapped_buffer);

Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.

The version of this method without an explicit length argument calls glGetBufferParameterARB internally to retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.

The version of this method with an explicit length argument is a fast alternative to the one without. No GL call is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
Security warning: The length argument should match the buffer object size. Reading from or writing to outside the memory region that corresponds to the mapped buffer object will cause native crashes.

Parameters
target:int

the length of the mapped memory in bytes.

old_buffer:ByteBuffer

A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.

Returns:ByteBuffer

A ByteBuffer representing the mapped buffer memory.

glMapBufferARBback to summary
public static ByteBuffer glMapBufferARB(int target, int access, long length, ByteBuffer old_buffer)

glMapBufferARB maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null, in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null, it will be returned if it points to the same mapped memory and has the same capacity as the buffer object, otherwise a new ByteBuffer is created. That way, an application will normally use glMapBufferARB like this:

ByteBuffer mapped_buffer; mapped_buffer = glMapBufferARB(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferARB(..., ..., mapped_buffer);

Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.

The version of this method without an explicit length argument calls glGetBufferParameterARB internally to retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.

The version of this method with an explicit length argument is a fast alternative to the one without. No GL call is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
Security warning: The length argument should match the buffer object size. Reading from or writing to outside the memory region that corresponds to the mapped buffer object will cause native crashes.

Parameters
length:long

the length of the mapped memory in bytes.

old_buffer:ByteBuffer

A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.

Returns:ByteBuffer

A ByteBuffer representing the mapped buffer memory.

glUnmapBufferARBback to summary
public static boolean glUnmapBufferARB(int target)
nglBindBufferARBback to summary
pack-priv static native void nglBindBufferARB(int target, int buffer, long function_pointer)
nglBufferDataARBback to summary
pack-priv static native void nglBufferDataARB(int target, long data_size, long data, int usage, long function_pointer)
nglBufferSubDataARBback to summary
pack-priv static native void nglBufferSubDataARB(int target, long offset, long data_size, long data, long function_pointer)
nglDeleteBuffersARBback to summary
pack-priv static native void nglDeleteBuffersARB(int buffers_n, long buffers, long function_pointer)
nglGenBuffersARBback to summary
pack-priv static native void nglGenBuffersARB(int buffers_n, long buffers, long function_pointer)
nglGetBufferParameterivARBback to summary
pack-priv static native void nglGetBufferParameterivARB(int target, int pname, long params, long function_pointer)
nglGetBufferPointervARBback to summary
pack-priv static native ByteBuffer nglGetBufferPointervARB(int target, int pname, long result_size, long function_pointer)
nglGetBufferSubDataARBback to summary
pack-priv static native void nglGetBufferSubDataARB(int target, long offset, long data_size, long data, long function_pointer)
nglIsBufferARBback to summary
pack-priv static native boolean nglIsBufferARB(int buffer, long function_pointer)
nglMapBufferARBback to summary
pack-priv static native ByteBuffer nglMapBufferARB(int target, int access, long result_size, ByteBuffer old_buffer, long function_pointer)
nglUnmapBufferARBback to summary
pack-priv static native boolean nglUnmapBufferARB(int target, long function_pointer)