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