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.
class
VectorGL2D2D vector OpenGL shader
Enums
- class Flags: TEXTURE_TRANSFORMATION = 1 NONE = 0
- Flags
Methods
- def bind_vector_texture(self, arg0: gl.Texture2D, /) -> None
- Bind a vector texture
- def draw(self, arg0: gl.Mesh, /) -> None
- Draw a mesh
- def validate(self, /) -> tuple[bool, str]
- Validate program
Special methods
- def __init__(self, *, flags: Flags = Flags.NONE) -> None
- Constructor
Properties
- background_color: Color4 set
- Background color
- color: Color4 set
- Fill color
- flags: Flags get
- Flags
- id: int get
- OpenGL program ID
- texture_matrix: Matrix3 set
- Texture matrix
- transformation_projection_matrix: Matrix3 set
- Transformation and projection matrix
Data
- POSITION: gl.Attribute
- Vertex position
- TEXTURE_COORDINATES: gl.Attribute
- 2D texture coordinates
- TransformFeedbackBufferMode
- attach_shader
- bind_attribute_location
- bind_fragment_data_location
- bind_fragment_data_location_indexed
- dispatch_compute
- link
- retrievable_binary
- separable
- set_uniform
- set_uniform_block_binding
- uniform_block_index
- uniform_location
Property documentation
magnum. shaders. VectorGL2D. texture_matrix: Matrix3 set
Texture matrix
Exceptions | |
---|---|
AttributeError | If the shader was not created with Flags.TEXTURE_TRANSFORMATION |