vispy.visuals.shaders.expression module

class vispy.visuals.shaders.expression.Expression

Bases: vispy.visuals.shaders.shader_object.ShaderObject

Base class for expressions (ShaderObjects that do not have a definition nor dependencies)

definition(names, version)

Return the GLSL definition for this object. Use obj_names to determine the names of dependencies, and version (number, qualifier) to adjust code output.

class vispy.visuals.shaders.expression.FunctionCall(function, args)

Bases: vispy.visuals.shaders.expression.Expression

Representation of a call to a function

Essentially this is container for a Function along with its signature.

property dtype
expression(names)

Return the GLSL expression used to reference this object inline.

property function
class vispy.visuals.shaders.expression.TextExpression(text)

Bases: vispy.visuals.shaders.expression.Expression

Plain GLSL text to insert inline

expression(names=None)

Return the GLSL expression used to reference this object inline.

property text