Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class GL15C

extends GL14C
Class Inheritance
Known Direct Subclasses
org.lwjgl.opengl.GL20C
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

The OpenGL functionality of a forward compatible context, up to version 1.5.

Extensions promoted to core in this release:

Field Summary

Modifier and TypeField and Description
public static final int
GL_ARRAY_BUFFER

Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, and GetBufferPointerv.

public static final int
GL_ARRAY_BUFFER_BINDING

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

public static final int
GL_BUFFER_ACCESS

Accepted by the pname parameter of GetBufferParameteriv.

public static final int
GL_BUFFER_MAP_POINTER

Accepted by the pname parameter of GetBufferPointerv.

public static final int
GL_BUFFER_MAPPED

Accepted by the pname parameter of GetBufferParameteriv.

public static final int
GL_BUFFER_SIZE

Accepted by the pname parameter of GetBufferParameteriv.

public static final int
GL_BUFFER_USAGE

Accepted by the pname parameter of GetBufferParameteriv.

public static final int
GL_CURRENT_QUERY

Accepted by the pname parameter of GetQueryiv.

public static final int
GL_DYNAMIC_COPY

Accepted by the usage parameter of BufferData.

public static final int
GL_DYNAMIC_DRAW

Accepted by the usage parameter of BufferData.

public static final int
GL_DYNAMIC_READ

Accepted by the usage parameter of BufferData.

public static final int
GL_ELEMENT_ARRAY_BUFFER

Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBuffer, UnmapBuffer, GetBufferSubData, GetBufferParameteriv, and GetBufferPointerv.

public static final int
GL_ELEMENT_ARRAY_BUFFER_BINDING

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

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
GL_READ_ONLY

Accepted by the access parameter of MapBuffer.

public static final int
GL_READ_WRITE

Accepted by the access parameter of MapBuffer.

public static final int
GL_SAMPLES_PASSED

Accepted by the target parameter of BeginQuery, EndQuery, and GetQueryiv.

public static final int
GL_SRC1_ALPHA

New token names.

public static final int
GL_STATIC_COPY

Accepted by the usage parameter of BufferData.

public static final int
GL_STATIC_DRAW

Accepted by the usage parameter of BufferData.

public static final int
GL_STATIC_READ

Accepted by the usage parameter of BufferData.

public static final int
GL_STREAM_COPY

Accepted by the usage parameter of BufferData.

public static final int
GL_STREAM_DRAW

Accepted by the usage parameter of BufferData.

public static final int
GL_STREAM_READ

Accepted by the usage parameter of BufferData.

public static final int
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

Accepted by the pname parameter of GetVertexAttribiv.

public static final int
GL_WRITE_ONLY

Accepted by the access parameter of MapBuffer.

Inherited from org.lwjgl.opengl.GL14C:
GL_BLEND_DST_ALPHAGL_BLEND_DST_RGBGL_BLEND_SRC_ALPHAGL_BLEND_SRC_RGBGL_CONSTANT_ALPHAGL_CONSTANT_COLORGL_DECR_WRAPGL_DEPTH_COMPONENT16GL_DEPTH_COMPONENT24GL_DEPTH_COMPONENT32GL_FUNC_ADDGL_FUNC_REVERSE_SUBTRACTGL_FUNC_SUBTRACTGL_INCR_WRAPGL_MAXGL_MAX_TEXTURE_LOD_BIASGL_MINGL_MIRRORED_REPEATGL_ONE_MINUS_CONSTANT_ALPHAGL_ONE_MINUS_CONSTANT_COLORGL_POINT_FADE_THRESHOLD_SIZEGL_TEXTURE_COMPARE_FUNCGL_TEXTURE_COMPARE_MODEGL_TEXTURE_DEPTH_SIZEGL_TEXTURE_LOD_BIAS

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glBeginQuery(int target, int
the name of a query object
id
)

Creates a query object and makes it active.

public static native void
public static void
public static void
glBufferData(int target, ByteBuffer
a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied
data
,
int usage)

Creates and initializes a buffer object's data store.

public static void
glBufferData(int target, ShortBuffer
a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied
data
,
int usage)

Creates and initializes a buffer object's data store.

public static void
glBufferData(int target, IntBuffer
a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied
data
,
int usage)

Creates and initializes a buffer object's data store.

public static void
glBufferData(int target, LongBuffer
a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied
data
,
int usage)

Creates and initializes a buffer object's data store.

public static void
glBufferData(int target, FloatBuffer
a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied
data
,
int usage)

Creates and initializes a buffer object's data store.

public static void
glBufferData(int target, DoubleBuffer
a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied
data
,
int usage)

Creates and initializes a buffer object's data store.

public static void
glBufferData(int target, short[] data, int usage)

Array version of: BufferData

public static void
glBufferData(int target, int[] data, int usage)

Array version of: BufferData

public static void
glBufferData(int target, long[] data, int usage)

Array version of: BufferData

public static void
glBufferData(int target, float[] data, int usage)

Array version of: BufferData

public static void
glBufferData(int target, double[] data, int usage)

Array version of: BufferData

public static void
glBufferSubData(int target, long
the offset into the buffer object's data store where data replacement will begin, measured in bytes
offset
,
ByteBuffer
a pointer to the new data that will be copied into the data store
data
)

Updates a subset of a buffer object's data store.

public static void
glBufferSubData(int target, long
the offset into the buffer object's data store where data replacement will begin, measured in bytes
offset
,
ShortBuffer
a pointer to the new data that will be copied into the data store
data
)

Updates a subset of a buffer object's data store.

public static void
glBufferSubData(int target, long
the offset into the buffer object's data store where data replacement will begin, measured in bytes
offset
,
IntBuffer
a pointer to the new data that will be copied into the data store
data
)

Updates a subset of a buffer object's data store.

public static void
glBufferSubData(int target, long
the offset into the buffer object's data store where data replacement will begin, measured in bytes
offset
,
LongBuffer
a pointer to the new data that will be copied into the data store
data
)

Updates a subset of a buffer object's data store.

public static void
glBufferSubData(int target, long
the offset into the buffer object's data store where data replacement will begin, measured in bytes
offset
,
FloatBuffer
a pointer to the new data that will be copied into the data store
data
)

Updates a subset of a buffer object's data store.

public static void
glBufferSubData(int target, long
the offset into the buffer object's data store where data replacement will begin, measured in bytes
offset
,
DoubleBuffer
a pointer to the new data that will be copied into the data store
data
)

Updates a subset of a buffer object's data store.

public static void
glBufferSubData(int target, long offset, short[] data)

Array version of: BufferSubData

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

Array version of: BufferSubData

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

Array version of: BufferSubData

public static void
glBufferSubData(int target, long offset, float[] data)

Array version of: BufferSubData

public static void
glBufferSubData(int target, long offset, double[] data)

Array version of: BufferSubData

public static void
glDeleteBuffers(IntBuffer
an array of buffer objects to be deleted
buffers
)

Deletes named buffer objects.

public static void
glDeleteBuffers(int buffer)

Deletes named buffer objects.

public static void
glDeleteBuffers(int[] buffers)

Array version of: DeleteBuffers

public static void
glDeleteQueries(IntBuffer
an array of query objects to be deleted
ids
)

Deletes named query objects.

public static void
glDeleteQueries(int id)

Deletes named query objects.

public static void
glDeleteQueries(int[] ids)

Array version of: DeleteQueries

public static native void
glEndQuery(int target)

Marks the end of the sequence of commands to be tracked for the active query specified by target.

public static void
glGenBuffers(IntBuffer
a buffer in which the generated buffer object names are stored
buffers
)

Generates buffer object names.

public static int
glGenBuffers()

Generates buffer object names.

public static void
glGenBuffers(int[] buffers)

Array version of: GenBuffers

public static void
glGenQueries(IntBuffer
a buffer in which the generated query object names are stored
ids
)

Generates query object names.

public static int
glGenQueries()

Generates query object names.

public static void
glGenQueries(int[] ids)

Array version of: GenQueries

public static int
public static void
public static void
glGetBufferParameteriv(int target, int pname, int[] params)

Array version of: GetBufferParameteriv

public static long
public static void
public static void
glGetBufferSubData(int target, long
the offset into the buffer object's data store from which data will be returned, measured in bytes
offset
,
ByteBuffer
a pointer to the location where buffer object data is returned
data
)

Returns a subset of a buffer object's data store.

public static void
glGetBufferSubData(int target, long
the offset into the buffer object's data store from which data will be returned, measured in bytes
offset
,
ShortBuffer
a pointer to the location where buffer object data is returned
data
)

Returns a subset of a buffer object's data store.

public static void
glGetBufferSubData(int target, long
the offset into the buffer object's data store from which data will be returned, measured in bytes
offset
,
IntBuffer
a pointer to the location where buffer object data is returned
data
)

Returns a subset of a buffer object's data store.

public static void
glGetBufferSubData(int target, long
the offset into the buffer object's data store from which data will be returned, measured in bytes
offset
,
LongBuffer
a pointer to the location where buffer object data is returned
data
)

Returns a subset of a buffer object's data store.

public static void
glGetBufferSubData(int target, long
the offset into the buffer object's data store from which data will be returned, measured in bytes
offset
,
FloatBuffer
a pointer to the location where buffer object data is returned
data
)

Returns a subset of a buffer object's data store.

public static void
glGetBufferSubData(int target, long
the offset into the buffer object's data store from which data will be returned, measured in bytes
offset
,
DoubleBuffer
a pointer to the location where buffer object data is returned
data
)

Returns a subset of a buffer object's data store.

public static void
glGetBufferSubData(int target, long offset, short[] data)

Array version of: GetBufferSubData

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

Array version of: GetBufferSubData

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

Array version of: GetBufferSubData

public static void
glGetBufferSubData(int target, long offset, float[] data)

Array version of: GetBufferSubData

public static void
glGetBufferSubData(int target, long offset, double[] data)

Array version of: GetBufferSubData

public static int
glGetQueryi(int target, int
the symbolic name of a query object target parameter. One of:
QUERY_COUNTER_BITSCURRENT_QUERY
pname
)

Returns parameters of a query object target.

public static void
glGetQueryiv(int target, int
the symbolic name of a query object target parameter. One of:
QUERY_COUNTER_BITSCURRENT_QUERY
pname
,
IntBuffer
the requested data
params
)

Returns parameters of a query object target.

public static void
glGetQueryiv(int target, int pname, int[] params)

Array version of: GetQueryiv

public static int
glGetQueryObjecti(int
the name of a query object
id
,
int
the symbolic name of a query object parameter. One of:
QUERY_RESULTQUERY_RESULT_AVAILABLE
pname
)

Returns the integer value of a query object parameter.

public static void
glGetQueryObjectiv(int
the name of a query object
id
,
int
the symbolic name of a query object parameter. One of:
QUERY_RESULTQUERY_RESULT_AVAILABLE
pname
,
IntBuffer
the requested data
params
)

Returns the integer value of a query object parameter.

public static void
glGetQueryObjectiv(int
the name of a query object
id
,
int
the symbolic name of a query object parameter. One of:
QUERY_RESULTQUERY_RESULT_AVAILABLE
pname
,
long
the requested data
params
)

Returns the integer value of a query object parameter.

public static void
glGetQueryObjectiv(int id, int pname, int[] params)

Array version of: GetQueryObjectiv

public static int
glGetQueryObjectui(int
the name of a query object
id
,
int
the symbolic name of a query object parameter. One of:
QUERY_RESULTQUERY_RESULT_AVAILABLE
pname
)

Unsigned version of GetQueryObjectiv.

public static void
glGetQueryObjectuiv(int
the name of a query object
id
,
int
the symbolic name of a query object parameter. One of:
QUERY_RESULTQUERY_RESULT_AVAILABLE
pname
,
IntBuffer
the requested data
params
)

Unsigned version of GetQueryObjectiv.

public static void
glGetQueryObjectuiv(int
the name of a query object
id
,
int
the symbolic name of a query object parameter. One of:
QUERY_RESULTQUERY_RESULT_AVAILABLE
pname
,
long
the requested data
params
)

Unsigned version of GetQueryObjectiv.

public static void
glGetQueryObjectuiv(int id, int pname, int[] params)

Array version of: GetQueryObjectuiv

public static native boolean
glIsBuffer(int
a value that may be the name of a buffer object
buffer
)

Determines if a name corresponds to a buffer object.

public static native boolean
glIsQuery(int
a value that may be the name of a query object
id
)

Determine if a name corresponds to a query object.

public static ByteBuffer
glMapBuffer(int target, int
the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's mapped data store. One of:
READ_ONLYWRITE_ONLYREAD_WRITE
access
)

Maps a buffer object's data store.

public static ByteBuffer
glMapBuffer(int target, int
the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's mapped data store. One of:
READ_ONLYWRITE_ONLYREAD_WRITE
access
,
ByteBuffer old_buffer)

Maps a buffer object's data store.

public static ByteBuffer
glMapBuffer(int target, int
the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's mapped data store. One of:
READ_ONLYWRITE_ONLYREAD_WRITE
access
,
long length, ByteBuffer old_buffer)

Maps a buffer object's data store.

public static native boolean
public static native void
nglBufferData(int target, long
the size in bytes of the buffer object's new data store
size
,
long data, int usage)

Unsafe version of: BufferData

public static native void
nglBufferSubData(int target, long offset, long
the size in bytes of the data store region being replaced
size
,
long data)

Unsafe version of: BufferSubData

public static native void
nglDeleteBuffers(int
the number of buffer objects to be deleted
n
,
long buffers)

Unsafe version of: DeleteBuffers

public static native void
nglDeleteQueries(int
the number of query objects to be deleted
n
,
long ids)

Unsafe version of: DeleteQueries

public static native void
nglGenBuffers(int
the number of buffer object names to be generated
n
,
long buffers)

Unsafe version of: GenBuffers

public static native void
nglGenQueries(int
the number of query object names to be generated
n
,
long ids)

Unsafe version of: GenQueries

public static native void
nglGetBufferParameteriv(int target, int pname, long params)

Unsafe version of: GetBufferParameteriv

public static native void
nglGetBufferPointerv(int target, int pname, long params)

Unsafe version of: GetBufferPointerv

public static native void
nglGetBufferSubData(int target, long offset, long
the size in bytes of the data store region being returned
size
,
long data)

Unsafe version of: GetBufferSubData

public static native void
nglGetQueryiv(int target, int pname, long params)

Unsafe version of: GetQueryiv

public static native void
nglGetQueryObjectiv(int id, int pname, long params)

Unsafe version of: GetQueryObjectiv

public static native void
nglGetQueryObjectuiv(int id, int pname, long params)

Unsafe version of: GetQueryObjectuiv

public static native long
nglMapBuffer(int target, int access)

Unsafe version of: MapBuffer

Inherited from org.lwjgl.opengl.GL14C:
glBlendColorglBlendEquationglBlendFuncSeparateglMultiDrawArraysglMultiDrawArraysglMultiDrawElementsglMultiDrawElementsglPointParameterfglPointParameterfvglPointParameterfvglPointParameteriglPointParameterivglPointParameterivnglMultiDrawArraysnglMultiDrawElementsnglPointParameterfvnglPointParameteriv