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)

Calls the compileShaders() and updateShaderState() functions.

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

Destroys the vertex/fragment shader programs created in init().

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

Calls the gl14.glvector_funcs.compileShaders function.

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

Updates all variables used by the vertex/fragment shader programs. The fragment shader is configured by the :func:.gl21.glvector_funcs.updateFragmentShaderState` function.