Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.shaders.VertexColorGL2D class

2D vertex color OpenGL shader

Methods

def draw(self, arg0: gl.Mesh, /) -> None
Draw a mesh
def validate(self, /) -> typing.Tuple[bool, str]
Validate program

Special methods

def __init__(self, /) -> None
Constructor

Properties

id: int get
OpenGL program ID
transformation_projection_matrix: Matrix3 set
Transformation and projection matrix

Data

COLOR3: gl.Attribute
Three-component vertex color
COLOR4: gl.Attribute
Four-component vertex color
POSITION: gl.Attribute
Vertex position
TransformFeedbackBufferMode
attach_shader
bind_attribute_location
bind_fragment_data_location
bind_fragment_data_location_indexed
dispatch_compute
retrievable_binary
separable
set_uniform
set_uniform_block_binding
uniform_block_index
uniform_location