fsleyes.gl.gl14.glrgbvector_funcs
This module provides functions which are used by the GLRGBVector
class to render Image
overlays as RGB vector images in an OpenGL 1.4
compatible manner.
This module uses functions in the gl14.glvector_funcs
module, which
contains logic used for rendering both GLRGBVector
and GLLineVector
instances.
Rendering of a GLRGBVector
is very similar to that of a
GLVolume
, with the exception that a different fragment shader
(glvector
) may be used. Therefore, the preDraw
, draw2D
,
draw3D
, drawAll
and postDraw
functions defined in the
gl14.glvolume_funcs
are re-used by this module.
- fsleyes.gl.gl14.glrgbvector_funcs.init(self)[source]
Calls the
compileShaders()
andupdateShaderState()
functions.
- fsleyes.gl.gl14.glrgbvector_funcs.destroy(self)[source]
Destroys the vertex/fragment shader programs created in
init()
.