fsleyes.gl.gl21.gllabel_funcs¶
This module provides functions which are used by the GLLabel
class to render Image overlays in an OpenGL 2.1 compatible manner.
Rendering of a GLLabel is very similar to that of a GLVolume, with the
exception that a different fragment shader (gllabel) is used. The
preDraw, draw, drawAll and postDraw functions defined in the
gl21.glvolume_funcs are re-used by this module.
-
fsleyes.gl.gl21.gllabel_funcs.init(self)[source]¶ Calls the
compileShaders()andupdateShaderState()functions.
-
fsleyes.gl.gl21.gllabel_funcs.compileShaders(self)[source]¶ Loads the vertex/fragment shader source code, and creates a
GLSLShaderprogram.
-
fsleyes.gl.gl21.gllabel_funcs.updateShaderState(self)[source]¶ Updates all shader program variables.
-
fsleyes.gl.gl21.gllabel_funcs.draw2D(self, *args, **kwargs)[source]¶ Draws the label overlay in 2D. See
GLObject.draw2D().
-
fsleyes.gl.gl21.gllabel_funcs.drawAll(self, *args, **kwargs)[source]¶ Draws the label overlay in 2D. See
GLObject.draw2D().