Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glgetshadersource(3g) [centos 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)

Check Out this Related Man Page

GLSHADERSOURCE(3G)						  [FIXME: manual]						GLSHADERSOURCE(3G)

NAME
glShaderSource - Replaces the source code in a shader object C SPECIFICATION
void glShaderSource(GLuint shader, GLsizei count, const GLchar **string, const GLint *length); PARAMETERS
shader Specifies the handle of the shader object whose source code is to be replaced. count Specifies the number of elements in the string and length arrays. string Specifies an array of pointers to strings containing the source code to be loaded into the shader. length Specifies an array of string lengths. DESCRIPTION
glShaderSource sets the source code in shader to the source code in the array of strings specified by string. Any source code previously stored in the shader object is completely replaced. The number of strings in the array is specified by count. If length is NULL, each string is assumed to be null terminated. If length is a value other than NULL, it points to an array containing a string length for each of the corresponding elements of string. Each element in the length array may contain the length of the corresponding string (the null character is not counted as part of the string length) or a value less than 0 to indicate that the string is null terminated. The source code strings are not scanned or parsed at this time; they are simply copied into the specified shader object. NOTES
OpenGL copies the shader source code strings when glShaderSource is called, so an application may free its copy of the source code strings immediately after the function returns. 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 count is less than 0. ASSOCIATED GETS
glGetShader() with arguments shader and GL_SHADER_SOURCE_LENGTH glGetShaderSource() with argument shader glIsShader() SEE ALSO
glCompileShader(), glCreateShader(), glDeleteShader() 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/. [FIXME: source] 05/30/2012 GLSHADERSOURCE(3G)
Man Page