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() and updateShaderState() functions.

fsleyes.gl.gl21.glmask_funcs.destroy(self)[source]

Destroys the shader programs.

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.updateShaderState(self)[source]

Updates all shader program variables.

fsleyes.gl.gl21.glmask_funcs.draw2D(self, zpos, axes, xform=None, bbox=None)[source]

Draws a 2D slice at the given zpos. Uses the gl21.glvolume_funcs.draw2D() function.

fsleyes.gl.gl21.glmask_funcs.drawAll(self, axes, zposes, xforms)[source]

Draws all specified slices. Uses the gl21.glvolume_funcs.drawAll() function.