glGetShaderSource

Returns the source code string from a shader object

Signature

glGetShaderSource( GLuint ( shader ) , GLsizei ( bufSize ) , GLsizei *( length ) , GLchar *( source ) )-> void
glGetShaderSource( shader , bufSize , length , source )
Retrieve the program/shader's source code as a Python string
 returns string which is '' if no source code
 

Parameters

VariablesDescription
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.

Copyright Notices

This documentation is based on documentation licensed under the SGI Free Software License B.

AltStyle によって変換されたページ (->オリジナル) /