, shaderType)[source]

Compile shader GLSL code and return a shader object. Shader objects can then be attached to programs an made executable on their respective processors.

  • shaderSrc (str, list of str) – GLSL shader source code text.

  • shaderType (GLenum) – Shader program type. Must be *_ARB enums such as GL_VERTEX_SHADER_ARB, GL_FRAGMENT_SHADER_ARB, GL_GEOMETRY_SHADER_ARB, etc.


OpenGL shader object handle retrieved from a glCreateShaderObjectARB call.

Return type


Back to top