Shader

class Shader[source]

Bases: object

The shader used by the OpenGL view.

Methods

bind

Bind the shader program.

bind_attribute

disable_attribute

draw_2d_box

draw_arrows

draw_lines

draw_points

draw_texts

draw_triangles

enable_attribute

release

Release (unbind) the shader program.

uniform1f

Store a uniform float in the shader program at a named location.

uniform1i

Store a uniform integer in the shader program at a named location.

uniform3f

Store a uniform list of 3 floats in the shader program at a named location.

uniform4x4

Store a uniform 4x4 transformation matrix in the shader program at a named location.

uniformTex