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