fsleyes.gl.gl14.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 gl14.glrgbvector_funcs and
gl14.gllinevector_funcs modules.
-
fsleyes.gl.gl14.glvector_funcs.destroy(self)¶ Destroys the vertex/fragment shader programs created in
init().
-
fsleyes.gl.gl14.glvector_funcs.compileShaders(self, vertShader)¶ Compiles the vertex/fragment shader programs (by creating a
GLSLShaderinstance).If the
VectorOpts.colourImageproperty is set, theglvolumefragment shader is used. Otherwise, theglvectorfragment shader is used.
-
fsleyes.gl.gl14.glvector_funcs.updateShaderState(self)¶ Updates the state of the vector vertex and fragment shaders - the fragment shader may may be either the
glvolumeor theglvectorshader.