Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class GL15

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

The OpenGL functionality up to version 1.5. Includes the deprecated symbols of the Compatibility Profile.

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_COLOR_ARRAY_BUFFER_BINDING

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

public static final int
GL_CURRENT_FOG_COORD

New token names.

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_EDGE_FLAG_ARRAY_BUFFER_BINDING

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

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_FOG_COORD

New token names.

public static final int
GL_FOG_COORD_ARRAY

New token names.

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

New token names.

public static final int
GL_FOG_COORD_ARRAY_TYPE

New token names.

public static final int
GL_FOG_COORD_SRC

New token names.

public static final int
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING

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

public static final int
GL_INDEX_ARRAY_BUFFER_BINDING

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

public static final int
GL_NORMAL_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_SECONDARY_COLOR_ARRAY_BUFFER_BINDING

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

public static final int
GL_SRC0_ALPHA

New token names.

public static final int
GL_SRC0_RGB

New token names.

public static final int
GL_SRC1_ALPHA

New token names.

public static final int
GL_SRC1_RGB

New token names.

public static final int
GL_SRC2_ALPHA

New token names.

public static final int
GL_SRC2_RGB

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_TEXTURE_COORD_ARRAY_BUFFER_BINDING

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

public static final int
GL_VERTEX_ARRAY_BUFFER_BINDING

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

public static final int
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

Accepted by the pname parameter of GetVertexAttribiv.

public static final int
GL_WEIGHT_ARRAY_BUFFER_BINDING

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

public static final int
GL_WRITE_ONLY

Accepted by the access parameter of MapBuffer.

Inherited from org.lwjgl.opengl.GL14:
GL_BLEND_DST_ALPHAGL_BLEND_DST_RGBGL_BLEND_SRC_ALPHAGL_BLEND_SRC_RGBGL_COLOR_SUMGL_COMPARE_R_TO_TEXTUREGL_CONSTANT_ALPHAGL_CONSTANT_COLORGL_CURRENT_FOG_COORDINATEGL_CURRENT_SECONDARY_COLORGL_DECR_WRAPGL_DEPTH_COMPONENT16GL_DEPTH_COMPONENT24GL_DEPTH_COMPONENT32GL_DEPTH_TEXTURE_MODEGL_FOG_COORDINATEGL_FOG_COORDINATE_ARRAYGL_FOG_COORDINATE_ARRAY_POINTERGL_FOG_COORDINATE_ARRAY_STRIDEGL_FOG_COORDINATE_ARRAY_TYPEGL_FOG_COORDINATE_SOURCEGL_FRAGMENT_DEPTHGL_FUNC_ADDGL_FUNC_REVERSE_SUBTRACTGL_FUNC_SUBTRACTGL_GENERATE_MIPMAPGL_GENERATE_MIPMAP_HINTGL_INCR_WRAPGL_MAXGL_MAX_TEXTURE_LOD_BIASGL_MINGL_MIRRORED_REPEATGL_ONE_MINUS_CONSTANT_ALPHAGL_ONE_MINUS_CONSTANT_COLORGL_POINT_DISTANCE_ATTENUATIONGL_POINT_FADE_THRESHOLD_SIZEGL_POINT_SIZE_MAXGL_POINT_SIZE_MINGL_SECONDARY_COLOR_ARRAYGL_SECONDARY_COLOR_ARRAY_POINTERGL_SECONDARY_COLOR_ARRAY_SIZEGL_SECONDARY_COLOR_ARRAY_STRIDEGL_SECONDARY_COLOR_ARRAY_TYPEGL_TEXTURE_COMPARE_FUNCGL_TEXTURE_COMPARE_MODEGL_TEXTURE_DEPTH_SIZEGL_TEXTURE_FILTER_CONTROLGL_TEXTURE_LOD_BIAS

Constructor Summary

AccessConstructor and Description
protected
GL15()

Method Summary

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

Creates a query object and makes it active.

public static 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 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 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 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 boolean
public static 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 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 void
nglDeleteBuffers(int
the number of buffer objects to be deleted
n
,
long buffers)

Unsafe version of: DeleteBuffers

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

Unsafe version of: DeleteQueries

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

Unsafe version of: GenBuffers

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

Unsafe version of: GenQueries

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

Unsafe version of: GetBufferParameteriv

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

Unsafe version of: GetBufferPointerv

public static 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 void
nglGetQueryiv(int target, int pname, long params)

Unsafe version of: GetQueryiv

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

Unsafe version of: GetQueryObjectiv

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

Unsafe version of: GetQueryObjectuiv

public static long
nglMapBuffer(int target, int access)

Unsafe version of: MapBuffer

Inherited from org.lwjgl.opengl.GL14:
glBlendColorglBlendEquationglBlendFuncSeparateglFogCoorddglFogCoorddvglFogCoorddvglFogCoordfglFogCoordfvglFogCoordfvglFogCoordPointerglFogCoordPointerglFogCoordPointerglFogCoordPointerglMultiDrawArraysglMultiDrawArraysglMultiDrawElementsglMultiDrawElementsglPointParameterfglPointParameterfvglPointParameterfvglPointParameteriglPointParameterivglPointParameterivglSecondaryColor3bglSecondaryColor3bvglSecondaryColor3dglSecondaryColor3dvglSecondaryColor3dvglSecondaryColor3fglSecondaryColor3fvglSecondaryColor3fvglSecondaryColor3iglSecondaryColor3ivglSecondaryColor3ivglSecondaryColor3sglSecondaryColor3svglSecondaryColor3svglSecondaryColor3ubglSecondaryColor3ubvglSecondaryColor3uiglSecondaryColor3uivglSecondaryColor3uivglSecondaryColor3usglSecondaryColor3usvglSecondaryColor3usvglSecondaryColorPointerglSecondaryColorPointerglSecondaryColorPointerglSecondaryColorPointerglSecondaryColorPointerglWindowPos2dglWindowPos2dvglWindowPos2dvglWindowPos2fglWindowPos2fvglWindowPos2fvglWindowPos2iglWindowPos2ivglWindowPos2ivglWindowPos2sglWindowPos2svglWindowPos2svglWindowPos3dglWindowPos3dvglWindowPos3dvglWindowPos3fglWindowPos3fvglWindowPos3fvglWindowPos3iglWindowPos3ivglWindowPos3ivglWindowPos3sglWindowPos3svglWindowPos3svnglFogCoorddvnglFogCoordfvnglFogCoordPointernglMultiDrawArraysnglMultiDrawElementsnglPointParameterfvnglPointParameterivnglSecondaryColor3bvnglSecondaryColor3dvnglSecondaryColor3fvnglSecondaryColor3ivnglSecondaryColor3svnglSecondaryColor3ubvnglSecondaryColor3uivnglSecondaryColor3usvnglSecondaryColorPointernglWindowPos2dvnglWindowPos2fvnglWindowPos2ivnglWindowPos2svnglWindowPos3dvnglWindowPos3fvnglWindowPos3ivnglWindowPos3sv