fsleyes.gl.gl21.glmip_funcs¶
This module contains functions used by the GLMIP class for
rendering in an OpenGL 2.1 environment.
-
fsleyes.gl.gl21.glmip_funcs.init(self)¶ Initialise the shader programs.
-
fsleyes.gl.gl21.glmip_funcs.destroy(self)¶ Destroy the shader programs.
-
fsleyes.gl.gl21.glmip_funcs.compileShaders(self)¶ Compiles vertex and fragment shaders.
-
fsleyes.gl.gl21.glmip_funcs.updateShaderState(self)¶ Updates the vertex/fragment shader state based on the current state of the
MIPOptsinstance.
-
fsleyes.gl.gl21.glmip_funcs.draw2D(self, zpos, axes, xform=None, bbox=None)¶ Draws a 2D slice at the given
zpos. Uses thegl21.glvolume_funcs.draw2D()function.