Unix and Linux Discussions Tagged with source code |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
3,306 |
Linux |
|
|
|
1 |
5,917 |
Homework & Coursework Questions |
|
|
|
0 |
1,605 |
UNIX and Linux RSS News |
|
|
|
1 |
6,049 |
UNIX and Linux Applications |
|
|
|
9 |
7,556 |
Programming |
|
|
|
4 |
3,437 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,551 |
Programming |
|
|
|
0 |
7,234 |
Programming |
|
|
|
3 |
7,087 |
Programming |
|
|
|
1 |
4,261 |
Programming |
|
|
|
3 |
4,488 |
Programming |
|
|
|
2 |
5,451 |
Programming |
|
|
|
1 |
4,171 |
Programming |
|
|
|
1 |
4,107 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,537 |
Programming |
|
|
|
3 |
3,468 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
19,131 |
Programming |
|
|
|
1 |
4,753 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
7,873 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,769 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,522 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
10,340 |
UNIX for Dummies Questions & Answers |
GLGETSHADERSOURCE(3G) [FIXME: 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/.
[FIXME: source] 05/30/2012 GLGETSHADERSOURCE(3G)