vispy.visuals.shaders.expression module

class vispy.visuals.shaders.expression.Expression[source]

Bases: vispy.visuals.shaders.shader_object.ShaderObject

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

definition(names, version)[source]

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)[source]

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)[source]

Return the GLSL expression used to reference this object inline.

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

Bases: vispy.visuals.shaders.expression.Expression

Plain GLSL text to insert inline

expression(names=None)[source]

Return the GLSL expression used to reference this object inline.

property text