Top Fields Constructors Methods
org.lwjgl.opengl

public final Class GL15

extends Object
Class Inheritance
Imports
org.lwjgl.*, java.nio.*

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
GL_CURRENT_QUERY

Accepted by the <pname> parameter of GetQueryiv:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
GL_QUERY_COUNTER_BITS

Accepted by the <pname> parameter of GetQueryiv:

public static final int
GL_QUERY_RESULT

Accepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv:

public static final int
GL_QUERY_RESULT_AVAILABLE

Accepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv:

public static final int
public static final int
public static final int
GL_SAMPLES_PASSED

Accepted by the <target> parameter of BeginQuery, EndQuery, and GetQueryiv:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
private
GL15()

Method Summary

Modifier and TypeMethod and Description
public static void
glBeginQuery(int target, int id)

public static void
glBindBuffer(int target, int buffer)

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

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

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

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

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

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

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

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

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

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

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

public static void
public static void
glDeleteBuffers(int buffer)

Overloads glDeleteBuffers.

public static void
public static void
glDeleteQueries(int id)

Overloads glDeleteQueries.

public static void
glEndQuery(int target)

public static void
public static int
glGenBuffers()

Overloads glGenBuffers.

public static void
public static int
glGenQueries()

Overloads glGenQueries.

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

public static int
glGetBufferParameter(int target, int pname)

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

Overloads glGetBufferParameteriv.

public static ByteBuffer
glGetBufferPointer(int target, int pname)

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

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

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

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

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

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

public static int
glGetQuery(int target, int pname)

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

Overloads glGetQueryiv.

public static void
glGetQueryObject(int id, int pname, IntBuffer params)

public static int
glGetQueryObjecti(int id, int pname)

Overloads glGetQueryObjectiv.

public static void
glGetQueryObjectu(int id, int pname, IntBuffer params)

public static int
glGetQueryObjectui(int id, int pname)

Overloads glGetQueryObjectuiv.

public static boolean
glIsBuffer(int buffer)

public static boolean
glIsQuery(int id)

public static ByteBuffer

Returns:

A ByteBuffer representing the mapped buffer memory.
glMapBuffer
(int 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
)

glMapBuffer maps a GL buffer object to a ByteBuffer.

public static ByteBuffer

Returns:

A ByteBuffer representing the mapped buffer memory.
glMapBuffer
(int target, int access, long 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
)

glMapBuffer maps a GL buffer object to a ByteBuffer.

public static boolean
glUnmapBuffer(int target)

pack-priv static native void
nglBeginQuery(int target, int id, long function_pointer)

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

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

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

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

pack-priv static native void
nglDeleteQueries(int ids_n, long ids, long function_pointer)

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

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

pack-priv static native void
nglGenQueries(int ids_n, long ids, long function_pointer)

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

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

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

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

pack-priv static native void
nglGetQueryObjectiv(int id, int pname, long params, long function_pointer)

pack-priv static native void
nglGetQueryObjectuiv(int id, int pname, long params, long function_pointer)

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

pack-priv static native boolean
nglIsQuery(int id, long function_pointer)

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_ARRAY_BUFFERback to summary
public static final int GL_ARRAY_BUFFER
GL_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_ARRAY_BUFFER_BINDING
GL_BUFFER_ACCESSback to summary
public static final int GL_BUFFER_ACCESS
GL_BUFFER_MAP_POINTERback to summary
public static final int GL_BUFFER_MAP_POINTER
GL_BUFFER_MAPPEDback to summary
public static final int GL_BUFFER_MAPPED
GL_BUFFER_SIZEback to summary
public static final int GL_BUFFER_SIZE
GL_BUFFER_USAGEback to summary
public static final int GL_BUFFER_USAGE
GL_COLOR_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_COLOR_ARRAY_BUFFER_BINDING
GL_CURRENT_FOG_COORDback to summary
public static final int GL_CURRENT_FOG_COORD
GL_CURRENT_QUERYback to summary
public static final int GL_CURRENT_QUERY

Accepted by the <pname> parameter of GetQueryiv:

GL_DYNAMIC_COPYback to summary
public static final int GL_DYNAMIC_COPY
GL_DYNAMIC_DRAWback to summary
public static final int GL_DYNAMIC_DRAW
GL_DYNAMIC_READback to summary
public static final int GL_DYNAMIC_READ
GL_EDGE_FLAG_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING
GL_ELEMENT_ARRAY_BUFFERback to summary
public static final int GL_ELEMENT_ARRAY_BUFFER
GL_ELEMENT_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING
GL_FOG_COORDback to summary
public static final int GL_FOG_COORD
GL_FOG_COORD_ARRAYback to summary
public static final int GL_FOG_COORD_ARRAY
GL_FOG_COORD_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_FOG_COORD_ARRAY_BUFFER_BINDING
GL_FOG_COORD_ARRAY_POINTERback to summary
public static final int GL_FOG_COORD_ARRAY_POINTER
GL_FOG_COORD_ARRAY_STRIDEback to summary
public static final int GL_FOG_COORD_ARRAY_STRIDE
GL_FOG_COORD_ARRAY_TYPEback to summary
public static final int GL_FOG_COORD_ARRAY_TYPE
GL_FOG_COORD_SRCback to summary
public static final int GL_FOG_COORD_SRC
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
GL_INDEX_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_INDEX_ARRAY_BUFFER_BINDING
GL_NORMAL_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_NORMAL_ARRAY_BUFFER_BINDING
GL_QUERY_COUNTER_BITSback to summary
public static final int GL_QUERY_COUNTER_BITS

Accepted by the <pname> parameter of GetQueryiv:

GL_QUERY_RESULTback to summary
public static final int GL_QUERY_RESULT

Accepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv:

GL_QUERY_RESULT_AVAILABLEback to summary
public static final int GL_QUERY_RESULT_AVAILABLE

Accepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv:

GL_READ_ONLYback to summary
public static final int GL_READ_ONLY
GL_READ_WRITEback to summary
public static final int GL_READ_WRITE
GL_SAMPLES_PASSEDback to summary
public static final int GL_SAMPLES_PASSED

Accepted by the <target> parameter of BeginQuery, EndQuery, and GetQueryiv:

GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING
GL_SRC0_ALPHAback to summary
public static final int GL_SRC0_ALPHA
GL_SRC0_RGBback to summary
public static final int GL_SRC0_RGB
GL_SRC1_ALPHAback to summary
public static final int GL_SRC1_ALPHA
GL_SRC1_RGBback to summary
public static final int GL_SRC1_RGB
GL_SRC2_ALPHAback to summary
public static final int GL_SRC2_ALPHA
GL_SRC2_RGBback to summary
public static final int GL_SRC2_RGB
GL_STATIC_COPYback to summary
public static final int GL_STATIC_COPY
GL_STATIC_DRAWback to summary
public static final int GL_STATIC_DRAW
GL_STATIC_READback to summary
public static final int GL_STATIC_READ
GL_STREAM_COPYback to summary
public static final int GL_STREAM_COPY
GL_STREAM_DRAWback to summary
public static final int GL_STREAM_DRAW
GL_STREAM_READback to summary
public static final int GL_STREAM_READ
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING
GL_VERTEX_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_VERTEX_ARRAY_BUFFER_BINDING
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
GL_WEIGHT_ARRAY_BUFFER_BINDINGback to summary
public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING
GL_WRITE_ONLYback to summary
public static final int GL_WRITE_ONLY

Constructor Detail

GL15back to summary
private GL15()

Method Detail

glBeginQueryback to summary
public static void glBeginQuery(int target, int id)
glBindBufferback to summary
public static void glBindBuffer(int target, int buffer)
glBufferDataback to summary
public static void glBufferData(int target, long data_size, int usage)
glBufferDataback to summary
public static void glBufferData(int target, ByteBuffer data, int usage)
glBufferDataback to summary
public static void glBufferData(int target, DoubleBuffer data, int usage)
glBufferDataback to summary
public static void glBufferData(int target, FloatBuffer data, int usage)
glBufferDataback to summary
public static void glBufferData(int target, IntBuffer data, int usage)
glBufferDataback to summary
public static void glBufferData(int target, ShortBuffer data, int usage)
glBufferSubDataback to summary
public static void glBufferSubData(int target, long offset, ByteBuffer data)
glBufferSubDataback to summary
public static void glBufferSubData(int target, long offset, DoubleBuffer data)
glBufferSubDataback to summary
public static void glBufferSubData(int target, long offset, FloatBuffer data)
glBufferSubDataback to summary
public static void glBufferSubData(int target, long offset, IntBuffer data)
glBufferSubDataback to summary
public static void glBufferSubData(int target, long offset, ShortBuffer data)
glDeleteBuffersback to summary
public static void glDeleteBuffers(IntBuffer buffers)
glDeleteBuffersback to summary
public static void glDeleteBuffers(int buffer)

Overloads glDeleteBuffers.

glDeleteQueriesback to summary
public static void glDeleteQueries(IntBuffer ids)
glDeleteQueriesback to summary
public static void glDeleteQueries(int id)

Overloads glDeleteQueries.

glEndQueryback to summary
public static void glEndQuery(int target)
glGenBuffersback to summary
public static void glGenBuffers(IntBuffer buffers)
glGenBuffersback to summary
public static int glGenBuffers()

Overloads glGenBuffers.

glGenQueriesback to summary
public static void glGenQueries(IntBuffer ids)
glGenQueriesback to summary
public static int glGenQueries()

Overloads glGenQueries.

glGetBufferParameterback to summary
public static void glGetBufferParameter(int target, int pname, IntBuffer params)
glGetBufferParameterback to summary
public static int glGetBufferParameter(int target, int pname)

Deprecated

Will be removed in 3.0. Use glGetBufferParameteri instead.

Overloads glGetBufferParameteriv.

Annotations
@Deprecated
glGetBufferParameteriback to summary
public static int glGetBufferParameteri(int target, int pname)

Overloads glGetBufferParameteriv.

glGetBufferPointerback to summary
public static ByteBuffer glGetBufferPointer(int target, int pname)
glGetBufferSubDataback to summary
public static void glGetBufferSubData(int target, long offset, ByteBuffer data)
glGetBufferSubDataback to summary
public static void glGetBufferSubData(int target, long offset, DoubleBuffer data)
glGetBufferSubDataback to summary
public static void glGetBufferSubData(int target, long offset, FloatBuffer data)
glGetBufferSubDataback to summary
public static void glGetBufferSubData(int target, long offset, IntBuffer data)
glGetBufferSubDataback to summary
public static void glGetBufferSubData(int target, long offset, ShortBuffer data)
glGetQueryback to summary
public static void glGetQuery(int target, int pname, IntBuffer params)
glGetQueryback to summary
public static int glGetQuery(int target, int pname)

Deprecated

Will be removed in 3.0. Use glGetQueryi instead.

Overloads glGetQueryiv.

Annotations
@Deprecated
glGetQueryiback to summary
public static int glGetQueryi(int target, int pname)

Overloads glGetQueryiv.

glGetQueryObjectback to summary
public static void glGetQueryObject(int id, int pname, IntBuffer params)
glGetQueryObjectiback to summary
public static int glGetQueryObjecti(int id, int pname)

Overloads glGetQueryObjectiv.

glGetQueryObjectuback to summary
public static void glGetQueryObjectu(int id, int pname, IntBuffer params)
glGetQueryObjectuiback to summary
public static int glGetQueryObjectui(int id, int pname)

Overloads glGetQueryObjectuiv.

glIsBufferback to summary
public static boolean glIsBuffer(int buffer)
glIsQueryback to summary
public static boolean glIsQuery(int id)
glMapBufferback to summary
public static ByteBuffer glMapBuffer(int target, int access, ByteBuffer old_buffer)

glMapBuffer 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 glMapBuffer like this:

ByteBuffer mapped_buffer; mapped_buffer = glMapBuffer(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBuffer(..., ..., 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 glGetBufferParameter 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
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.

glMapBufferback to summary
public static ByteBuffer glMapBuffer(int target, int access, long length, ByteBuffer old_buffer)

glMapBuffer 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 glMapBuffer like this:

ByteBuffer mapped_buffer; mapped_buffer = glMapBuffer(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBuffer(..., ..., 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 glGetBufferParameter 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
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.

glUnmapBufferback to summary
public static boolean glUnmapBuffer(int target)
nglBeginQueryback to summary
pack-priv static native void nglBeginQuery(int target, int id, long function_pointer)
nglBindBufferback to summary
pack-priv static native void nglBindBuffer(int target, int buffer, long function_pointer)
nglBufferDataback to summary
pack-priv static native void nglBufferData(int target, long data_size, long data, int usage, long function_pointer)
nglBufferSubDataback to summary
pack-priv static native void nglBufferSubData(int target, long offset, long data_size, long data, long function_pointer)
nglDeleteBuffersback to summary
pack-priv static native void nglDeleteBuffers(int buffers_n, long buffers, long function_pointer)
nglDeleteQueriesback to summary
pack-priv static native void nglDeleteQueries(int ids_n, long ids, long function_pointer)
nglEndQueryback to summary
pack-priv static native void nglEndQuery(int target, long function_pointer)
nglGenBuffersback to summary
pack-priv static native void nglGenBuffers(int buffers_n, long buffers, long function_pointer)
nglGenQueriesback to summary
pack-priv static native void nglGenQueries(int ids_n, long ids, long function_pointer)
nglGetBufferParameterivback to summary
pack-priv static native void nglGetBufferParameteriv(int target, int pname, long params, long function_pointer)
nglGetBufferPointervback to summary
pack-priv static native ByteBuffer nglGetBufferPointerv(int target, int pname, long result_size, long function_pointer)
nglGetBufferSubDataback to summary
pack-priv static native void nglGetBufferSubData(int target, long offset, long data_size, long data, long function_pointer)
nglGetQueryivback to summary
pack-priv static native void nglGetQueryiv(int target, int pname, long params, long function_pointer)
nglGetQueryObjectivback to summary
pack-priv static native void nglGetQueryObjectiv(int id, int pname, long params, long function_pointer)
nglGetQueryObjectuivback to summary
pack-priv static native void nglGetQueryObjectuiv(int id, int pname, long params, long function_pointer)
nglIsBufferback to summary
pack-priv static native boolean nglIsBuffer(int buffer, long function_pointer)
nglIsQueryback to summary
pack-priv static native boolean nglIsQuery(int id, long function_pointer)
nglMapBufferback to summary
pack-priv static native ByteBuffer nglMapBuffer(int target, int access, long result_size, ByteBuffer old_buffer, long function_pointer)
nglUnmapBufferback to summary
pack-priv static native boolean nglUnmapBuffer(int target, long function_pointer)