fsleyes.gl.gl14.glrgbvolume_funcs

This module contains functions used by the GLRGBVolume class for rendering RGB(A) Image overlays in an OpenGL 1.4 environment.

fsleyes.gl.gl14.glrgbvolume_funcs.init(self)

Compiles and initialises the shader program.

fsleyes.gl.gl14.glrgbvolume_funcs.destroy(self)

Destroys the shader program.

fsleyes.gl.gl14.glrgbvolume_funcs.compileShaders(self)

Loads the vertex/fragment shader source code, and creates a GLSLShader program.

fsleyes.gl.gl14.glrgbvolume_funcs.updateShaderState(self)

Updates all shader program variables.

fsleyes.gl.gl14.glrgbvolume_funcs.draw2D(self, zpos, axes, xform=None, bbox=None)

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

fsleyes.gl.gl14.glrgbvolume_funcs.drawAll(self, axes, zposes, xforms)

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