Shader
- class Shader[source]
Bases:
object
The shader used by the OpenGL view.
Methods
Bind the shader program.
Bind a named attribute to a buffer.
Draw a 2D box.
Draw arrows.
Draw lines.
Draw points.
Draw texts.
Draw triangles.
Enable a named attribute in the shader program.
Release (unbind) the shader program.
Store a uniform float in the shader program at a named location.
Store a uniform integer in the shader program at a named location.
Store a uniform list of 3 floats in the shader program at a named location.
Store a uniform 4x4 transformation matrix in the shader program at a named location.
Store a uniform texture in the shader program at a named location.