Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

globjectlabel(3g) [centos man page]

GLOBJECTLABEL(3G)						   OpenGL Manual						 GLOBJECTLABEL(3G)

NAME
glObjectLabel - label a named object identified within a namespace C SPECIFICATION
void glObjectLabel(GLenum identifier, GLuint name, GLsizei length, const char * label); PARAMETERS
identifier The namespace from which the name of the object is allocated. name The name of the object to label. length The length of the label to be used for the object. label The address of a string containing the label to assign to the object. DESCRIPTION
glObjectLabel labels the object identified by name within the namespace given by identifier. identifier must be one of GL_BUFFER, GL_SHADER, GL_PROGRAM, GL_VERTEX_ARRAY, GL_QUERY, GL_PROGRAM_PIPELINE, GL_TRANSFORM_FEEDBACK, GL_SAMPLER, GL_TEXTURE, GL_RENDERBUFFER, GL_FRAMEBUFFER, to indicate the namespace containing the names of buffers, shaders, programs, vertex array objects, query objects, program pipelines, transform feedback objects, samplers, textures, renderbuffers and frame buffers, respectively. label is the address of a string that will be used to label an object. length contains the number of characters in label. If length is negative, it is implied that label contains a null-terminated string. If label is NULL, any debug label is effectively removed from the object. ERRORS
GL_INVALID_ENUM is generated if identifier is not one of the accepted object types. GL_INVALID_OPERATION is generated if name is not the name of an existing object of the type specified by identifier. GL_INVALID_VALUE is generated if the number of characters in label, excluding the null terminator when length is negative, is greater than the value of GL_MAX_LABEL_LENGTH. ASSOCIATED GETS
glGet() with argument GL_MAX_LABEL_LENGTH. SEE ALSO
glPushDebugGroup(), glPopDebugGroup(), glObjectPtrLabel(). COPYRIGHT
Copyright (C) 2012 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. AUTHORS
opengl.org opengl.org 06/10/2014 GLOBJECTLABEL(3G)

Check Out this Related Man Page

GLGETSHADERSOURCE(3G)						   OpenGL Manual					     GLGETSHADERSOURCE(3G)

NAME
glGetShaderSource - Returns the source code string from a shader object C SPECIFICATION
void glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); PARAMETERS
shader Specifies the shader object to be queried. bufSize Specifies the size of the character buffer for storing the returned source code string. length Returns the length of the string returned in source (excluding the null terminator). source Specifies an array of characters that is used to return the source code string. DESCRIPTION
glGetShaderSource returns the concatenation of the source code strings from the shader object specified by shader. The source code strings for a shader object are the result of a previous call to glShaderSource(). The string returned by the function will be null terminated. glGetShaderSource returns in source as much of the source code string as it can, up to a maximum of bufSize characters. The number of characters actually returned, excluding the null termination character, is specified by length. If the length of the returned string is not required, a value of NULL can be passed in the length argument. The size of the buffer required to store the returned source code string can be obtained by calling glGetShader() with the value GL_SHADER_SOURCE_LENGTH. ERRORS
GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL. GL_INVALID_OPERATION is generated if shader is not a shader object. GL_INVALID_VALUE is generated if bufSize is less than 0. ASSOCIATED GETS
glGetShader() with argument GL_SHADER_SOURCE_LENGTH glIsShader() SEE ALSO
glCreateShader(), glShaderSource() COPYRIGHT
Copyright (C) 2003-2005 3Dlabs Inc. Ltd. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. AUTHORS
opengl.org opengl.org 06/10/2014 GLGETSHADERSOURCE(3G)
Man Page