psychopy.tools.gltools.attachShader

psychopy.tools.gltools.attachShader(program, shader)[source]

Attach a shader to a program.

Parameters:
  • program (int) – Program handle to attach shader to. Must have originated from a createProgram() or glCreateProgram call.

  • shader (int) – Handle of shader object to attach. Must have originated from a compileShader() or glCreateShader call.


Back to top