Package org.lwjgl.opengl
Class EXTDebugLabel
java.lang.Object
org.lwjgl.opengl.EXTDebugLabel
Native bindings to the EXT_debug_label extension.
This extension defines a mechanism for OpenGL and OpenGL ES applications to label their objects (textures, buffers, shaders, etc.) with a descriptive string.
When profiling or debugging such an application within a debugger or profiler it is difficult to identify resources from their object names. Even when the resource itself is viewed it can be problematic to differentiate between similar resources. Attaching a label to an object helps obviate this difficulty.
The intended purpose of this is purely to improve the user experience within OpenGL and OpenGL ES development tools.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.static final int
Accepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.static final int
Accepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.static final int
Accepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.static final int
Accepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.static final int
Accepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
glGetObjectLabelEXT
(int type, int object, int bufSize) static void
glGetObjectLabelEXT
(int type, int object, int[] length, ByteBuffer label) Array version of:GetObjectLabelEXT
static void
glGetObjectLabelEXT
(int type, int object, IntBuffer length, ByteBuffer label) static void
glLabelObjectEXT
(int type, int object, CharSequence label) static void
glLabelObjectEXT
(int type, int object, ByteBuffer label) static void
nglGetObjectLabelEXT
(int type, int object, int bufSize, long length, long label) static void
nglLabelObjectEXT
(int type, int object, int length, long label)
-
Field Details
-
GL_BUFFER_OBJECT_EXT
public static final int GL_BUFFER_OBJECT_EXTAccepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.- See Also:
-
GL_SHADER_OBJECT_EXT
public static final int GL_SHADER_OBJECT_EXTAccepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.- See Also:
-
GL_PROGRAM_OBJECT_EXT
public static final int GL_PROGRAM_OBJECT_EXTAccepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.- See Also:
-
GL_VERTEX_ARRAY_OBJECT_EXT
public static final int GL_VERTEX_ARRAY_OBJECT_EXTAccepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.- See Also:
-
GL_QUERY_OBJECT_EXT
public static final int GL_QUERY_OBJECT_EXTAccepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.- See Also:
-
GL_PROGRAM_PIPELINE_OBJECT_EXT
public static final int GL_PROGRAM_PIPELINE_OBJECT_EXTAccepted by thetype
parameter of LabelObjectEXT and GetObjectLabelEXT.- See Also:
-
-
Method Details
-
nglLabelObjectEXT
public static void nglLabelObjectEXT(int type, int object, int length, long label) -
glLabelObjectEXT
-
glLabelObjectEXT
-
nglGetObjectLabelEXT
public static void nglGetObjectLabelEXT(int type, int object, int bufSize, long length, long label) -
glGetObjectLabelEXT
-
glGetObjectLabelEXT
-
glGetObjectLabelEXT
Array version of:GetObjectLabelEXT
-