psychopy.tools.gltools.linkProgram

psychopy.tools.gltools.linkProgram(program)[source]

Link a shader program. Any attached shader objects will be made executable to run on associated GPU processor units when the program is used.

Parameters:

program (int) – Program handle to link. Must have originated from a createProgram() or glCreateProgram call.

Raises:
  • ValueError – Specified program handle is invalid.

  • RuntimeError – Program failed to link. Log will be dumped to sterr.


Back to top