glCreateShader

Creates a shader object

Signature

glCreateShader( GLenum ( shaderType ) )-> GLuint
glCreateShader( type ) -> <class 'ctypes.c_uint'>

Parameters

VariablesDescription
shaderType
Specifies the type of shader to be created. Must be one of GL_COMPUTE_SHADER , GL_VERTEX_SHADER , GL_TESS_CONTROL_SHADER , GL_TESS_EVALUATION_SHADER , GL_GEOMETRY_SHADER , or GL_FRAGMENT_SHADER .

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glCreateShader
{LGPL} PyMT pymt/graphx/shader.py Lines: 11, 48
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 35
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 36
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 35
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 35
{GPL3} OpenGL-Programmable 05-shader.py Lines: 35
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 35