psychopy.tools.gltools.linkProgramObjectARB

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

Link a shader program object. 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 createProgramObjectARB() or glCreateProgramObjectARB call.

Raises
  • ValueError – Specified program handle is invalid.

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


Back to top