fsleyes.gl.gl14.glmask_funcs¶
This module provides functions which are used by the GLMask
class to render Image overlays in an OpenGL 1.4 compatible manner.
-
fsleyes.gl.gl14.glmask_funcs.init(self)¶ Calls the
compileShaders()andupdateShaderState()functions.
-
fsleyes.gl.gl14.glmask_funcs.destroy(self)¶ Destroys the shader programs.
-
fsleyes.gl.gl14.glmask_funcs.compileShaders(self)¶ Loads the vertex/fragment shader source code, and creates a
ARBPShaderprogram.
-
fsleyes.gl.gl14.glmask_funcs.updateShaderState(self)¶ Updates all shader program variables.
-
fsleyes.gl.gl14.glmask_funcs.draw2D(self, zpos, axes, xform=None, bbox=None)¶ Draws a 2D slice at the given
zpos. Uses theglvolume_funcs.draw2D()function.
-
fsleyes.gl.gl14.glmask_funcs.drawAll(self, axes, zposes, xforms)¶ Draws all specified slices. Uses the
glvolume_funcs.drawAll()function.