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.gl.Attribute class

Vertex attribute location and type

Enums

class Components: ONE = 1 TWO = 2 THREE = 3 FOUR = 4 BGRA = 32993
Component count
class DataType: UNSIGNED_BYTE = 5121 BYTE = 5120 UNSIGNED_SHORT = 5123 SHORT = 5122 UNSIGNED_INT = 5125 INT = 5124 HALF_FLOAT = 5131 FLOAT = 5126 DOUBLE = 5130 UNSIGNED_INT_10F_11F_11F_REV = 35899 UNSIGNED_INT_2_10_10_10_REV = 33640 INT_2_10_10_10_REV = 36255
Data type
class Kind: GENERIC = 0 GENERIC_NORMALIZED = 1 INTEGRAL = 2 LONG = 3
Attribute kind

Special methods

def __init__(self, kind: Kind, location: int, components: Components, data_type: DataType) -> None
Constructor

Properties

components: Components get
Component count
data_type: DataType get
Type of passed data
kind: Kind get
Attribute kind
location: int get
Attribute location