fsleyes.gl.gl21.glvector_funcs
¶
This module contains logic for managing vertex and fragment shader programs
used for rendering GLRGBVector
and GLLineVector
instances.
These functions are used by the gl21.glrgbvector_funcs
and
gl21.gllinevector_funcs
modules.
-
fsleyes.gl.gl21.glvector_funcs.
compileShaders
(self, vertShader, indexed=False)¶ Compiles the vertex/fragment shader programs (by creating a
GLSLShader
instance).If the
VectorOpts.colourImage
property is set, theglvolume
fragment shader is used. Otherwise, theglvector
fragment shader is used.
-
fsleyes.gl.gl21.glvector_funcs.
updateShaderState
(self, useSpline=False)¶ Updates the state of the vector vertex fragment shader. The fragment shader may be either the
glvolume
or theglvector
shader.