Package org.lwjgl.opengl
Class GL15
java.lang.Object
org.lwjgl.opengl.GL15
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intAccepted by the <pname> parameter of GetQueryiv:static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intAccepted by the <pname> parameter of GetQueryiv:static final intAccepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv:static final intAccepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv:static final intstatic final intstatic final intAccepted by the <target> parameter of BeginQuery, EndQuery, and GetQueryiv:static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglBeginQuery(int target, int id) static voidglBindBuffer(int target, int buffer) static voidglBufferData(int target, long data_size, int usage) static voidglBufferData(int target, ByteBuffer data, int usage) static voidglBufferData(int target, DoubleBuffer data, int usage) static voidglBufferData(int target, FloatBuffer data, int usage) static voidglBufferData(int target, IntBuffer data, int usage) static voidglBufferData(int target, ShortBuffer data, int usage) static voidglBufferSubData(int target, long offset, ByteBuffer data) static voidglBufferSubData(int target, long offset, DoubleBuffer data) static voidglBufferSubData(int target, long offset, FloatBuffer data) static voidglBufferSubData(int target, long offset, IntBuffer data) static voidglBufferSubData(int target, long offset, ShortBuffer data) static voidglDeleteBuffers(int buffer) Overloads glDeleteBuffers.static voidglDeleteBuffers(IntBuffer buffers) static voidglDeleteQueries(int id) Overloads glDeleteQueries.static voidglDeleteQueries(IntBuffer ids) static voidglEndQuery(int target) static intOverloads glGenBuffers.static voidglGenBuffers(IntBuffer buffers) static intOverloads glGenQueries.static voidglGenQueries(IntBuffer ids) static intglGetBufferParameter(int target, int pname) Deprecated.Will be removed in 3.0.static voidglGetBufferParameter(int target, int pname, IntBuffer params) static intglGetBufferParameteri(int target, int pname) Overloads glGetBufferParameteriv.static ByteBufferglGetBufferPointer(int target, int pname) static voidglGetBufferSubData(int target, long offset, ByteBuffer data) static voidglGetBufferSubData(int target, long offset, DoubleBuffer data) static voidglGetBufferSubData(int target, long offset, FloatBuffer data) static voidglGetBufferSubData(int target, long offset, IntBuffer data) static voidglGetBufferSubData(int target, long offset, ShortBuffer data) static intglGetQuery(int target, int pname) Deprecated.Will be removed in 3.0.static voidglGetQuery(int target, int pname, IntBuffer params) static intglGetQueryi(int target, int pname) Overloads glGetQueryiv.static voidglGetQueryObject(int id, int pname, IntBuffer params) static intglGetQueryObjecti(int id, int pname) Overloads glGetQueryObjectiv.static voidglGetQueryObjectu(int id, int pname, IntBuffer params) static intglGetQueryObjectui(int id, int pname) Overloads glGetQueryObjectuiv.static booleanglIsBuffer(int buffer) static booleanglIsQuery(int id) static ByteBufferglMapBuffer(int target, int access, long length, ByteBuffer old_buffer) glMapBuffer maps a GL buffer object to a ByteBuffer.static ByteBufferglMapBuffer(int target, int access, ByteBuffer old_buffer) glMapBuffer maps a GL buffer object to a ByteBuffer.static booleanglUnmapBuffer(int target)
-
Field Details
-
GL_ARRAY_BUFFER
public static final int GL_ARRAY_BUFFER- See Also:
-
GL_ELEMENT_ARRAY_BUFFER
public static final int GL_ELEMENT_ARRAY_BUFFER- See Also:
-
GL_ARRAY_BUFFER_BINDING
public static final int GL_ARRAY_BUFFER_BINDING- See Also:
-
GL_ELEMENT_ARRAY_BUFFER_BINDING
public static final int GL_ELEMENT_ARRAY_BUFFER_BINDING- See Also:
-
GL_VERTEX_ARRAY_BUFFER_BINDING
public static final int GL_VERTEX_ARRAY_BUFFER_BINDING- See Also:
-
GL_NORMAL_ARRAY_BUFFER_BINDING
public static final int GL_NORMAL_ARRAY_BUFFER_BINDING- See Also:
-
GL_COLOR_ARRAY_BUFFER_BINDING
public static final int GL_COLOR_ARRAY_BUFFER_BINDING- See Also:
-
GL_INDEX_ARRAY_BUFFER_BINDING
public static final int GL_INDEX_ARRAY_BUFFER_BINDING- See Also:
-
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING
public static final int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING- See Also:
-
GL_EDGE_FLAG_ARRAY_BUFFER_BINDING
public static final int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING- See Also:
-
GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING
public static final int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING- See Also:
-
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
public static final int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING- See Also:
-
GL_WEIGHT_ARRAY_BUFFER_BINDING
public static final int GL_WEIGHT_ARRAY_BUFFER_BINDING- See Also:
-
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
public static final int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING- See Also:
-
GL_STREAM_DRAW
public static final int GL_STREAM_DRAW- See Also:
-
GL_STREAM_READ
public static final int GL_STREAM_READ- See Also:
-
GL_STREAM_COPY
public static final int GL_STREAM_COPY- See Also:
-
GL_STATIC_DRAW
public static final int GL_STATIC_DRAW- See Also:
-
GL_STATIC_READ
public static final int GL_STATIC_READ- See Also:
-
GL_STATIC_COPY
public static final int GL_STATIC_COPY- See Also:
-
GL_DYNAMIC_DRAW
public static final int GL_DYNAMIC_DRAW- See Also:
-
GL_DYNAMIC_READ
public static final int GL_DYNAMIC_READ- See Also:
-
GL_DYNAMIC_COPY
public static final int GL_DYNAMIC_COPY- See Also:
-
GL_READ_ONLY
public static final int GL_READ_ONLY- See Also:
-
GL_WRITE_ONLY
public static final int GL_WRITE_ONLY- See Also:
-
GL_READ_WRITE
public static final int GL_READ_WRITE- See Also:
-
GL_BUFFER_SIZE
public static final int GL_BUFFER_SIZE- See Also:
-
GL_BUFFER_USAGE
public static final int GL_BUFFER_USAGE- See Also:
-
GL_BUFFER_ACCESS
public static final int GL_BUFFER_ACCESS- See Also:
-
GL_BUFFER_MAPPED
public static final int GL_BUFFER_MAPPED- See Also:
-
GL_BUFFER_MAP_POINTER
public static final int GL_BUFFER_MAP_POINTER- See Also:
-
GL_FOG_COORD_SRC
public static final int GL_FOG_COORD_SRC- See Also:
-
GL_FOG_COORD
public static final int GL_FOG_COORD- See Also:
-
GL_CURRENT_FOG_COORD
public static final int GL_CURRENT_FOG_COORD- See Also:
-
GL_FOG_COORD_ARRAY_TYPE
public static final int GL_FOG_COORD_ARRAY_TYPE- See Also:
-
GL_FOG_COORD_ARRAY_STRIDE
public static final int GL_FOG_COORD_ARRAY_STRIDE- See Also:
-
GL_FOG_COORD_ARRAY_POINTER
public static final int GL_FOG_COORD_ARRAY_POINTER- See Also:
-
GL_FOG_COORD_ARRAY
public static final int GL_FOG_COORD_ARRAY- See Also:
-
GL_FOG_COORD_ARRAY_BUFFER_BINDING
public static final int GL_FOG_COORD_ARRAY_BUFFER_BINDING- See Also:
-
GL_SRC0_RGB
public static final int GL_SRC0_RGB- See Also:
-
GL_SRC1_RGB
public static final int GL_SRC1_RGB- See Also:
-
GL_SRC2_RGB
public static final int GL_SRC2_RGB- See Also:
-
GL_SRC0_ALPHA
public static final int GL_SRC0_ALPHA- See Also:
-
GL_SRC1_ALPHA
public static final int GL_SRC1_ALPHA- See Also:
-
GL_SRC2_ALPHA
public static final int GL_SRC2_ALPHA- See Also:
-
GL_SAMPLES_PASSED
public static final int GL_SAMPLES_PASSEDAccepted by the <target> parameter of BeginQuery, EndQuery, and GetQueryiv:- See Also:
-
GL_QUERY_COUNTER_BITS
public static final int GL_QUERY_COUNTER_BITSAccepted by the <pname> parameter of GetQueryiv:- See Also:
-
GL_CURRENT_QUERY
public static final int GL_CURRENT_QUERYAccepted by the <pname> parameter of GetQueryiv:- See Also:
-
GL_QUERY_RESULT
public static final int GL_QUERY_RESULTAccepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv:- See Also:
-
GL_QUERY_RESULT_AVAILABLE
public static final int GL_QUERY_RESULT_AVAILABLEAccepted by the <pname> parameter of GetQueryObjectiv and GetQueryObjectuiv:- See Also:
-
-
Method Details
-
glBindBuffer
public static void glBindBuffer(int target, int buffer) -
glDeleteBuffers
-
glDeleteBuffers
public static void glDeleteBuffers(int buffer) Overloads glDeleteBuffers. -
glGenBuffers
-
glGenBuffers
public static int glGenBuffers()Overloads glGenBuffers. -
glIsBuffer
public static boolean glIsBuffer(int buffer) -
glBufferData
public static void glBufferData(int target, long data_size, int usage) -
glBufferData
-
glBufferData
-
glBufferData
-
glBufferData
-
glBufferData
-
glBufferSubData
-
glBufferSubData
-
glBufferSubData
-
glBufferSubData
-
glBufferSubData
-
glGetBufferSubData
-
glGetBufferSubData
-
glGetBufferSubData
-
glGetBufferSubData
-
glGetBufferSubData
-
glMapBuffer
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- 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:
- A ByteBuffer representing the mapped buffer memory.
-
glMapBuffer
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- 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:
- A ByteBuffer representing the mapped buffer memory.
-
glUnmapBuffer
public static boolean glUnmapBuffer(int target) -
glGetBufferParameter
-
glGetBufferParameter
Deprecated.Will be removed in 3.0. UseglGetBufferParameteri(int, int)instead.Overloads glGetBufferParameteriv. -
glGetBufferParameteri
public static int glGetBufferParameteri(int target, int pname) Overloads glGetBufferParameteriv. -
glGetBufferPointer
-
glGenQueries
-
glGenQueries
public static int glGenQueries()Overloads glGenQueries. -
glDeleteQueries
-
glDeleteQueries
public static void glDeleteQueries(int id) Overloads glDeleteQueries. -
glIsQuery
public static boolean glIsQuery(int id) -
glBeginQuery
public static void glBeginQuery(int target, int id) -
glEndQuery
public static void glEndQuery(int target) -
glGetQuery
-
glGetQuery
Deprecated.Will be removed in 3.0. UseglGetQueryi(int, int)instead.Overloads glGetQueryiv. -
glGetQueryi
public static int glGetQueryi(int target, int pname) Overloads glGetQueryiv. -
glGetQueryObject
-
glGetQueryObjecti
public static int glGetQueryObjecti(int id, int pname) Overloads glGetQueryObjectiv. -
glGetQueryObjectu
-
glGetQueryObjectui
public static int glGetQueryObjectui(int id, int pname) Overloads glGetQueryObjectuiv.
-