glAttachShader

Attaches a shader object to a program object

Signature

glAttachShader( GLuint ( program ) , GLuint ( shader ) )-> void
glAttachShader( program , shader )

Parameters

VariablesDescription
program
Specifies the program object to which a shader object will be attached.
shader
Specifies the shader object that is to be attached.

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.

glAttachShader
OpenGLContext OpenGLContext/scenegraph/shaders.py Lines: 466
{LGPL} PyMT pymt/graphx/shader.py Lines: 12, 35, 40
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 95, 96
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 115, 116
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 123, 124
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 101, 102
{GPL3} OpenGL-Programmable 05-shader.py Lines: 87, 88
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 101, 102