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.
Buffer class
Buffer
Enums
- class TargetHint: ARRAY = 34962 ATOMIC_COUNTER = 37568 COPY_READ = 36662 COPY_WRITE = 36663 DISPATCH_INDIRECT = 37102 DRAW_INDIRECT = 36671 ELEMENT_ARRAY = 34963 PIXEL_PACK = 35051 PIXEL_UNPACK = 35052 SHADER_STORAGE = 37074 TEXTURE = 35882 TRANSFORM_FEEDBACK = 35982 UNIFORM = 35345
- Buffer target
Methods
- def set_data(self, data: corrade.containers.ArrayView, usage: BufferUsage = BufferUsage.STATIC_DRAW) -> None
- Set buffer data
Special methods
- def __init__(self, target_hint: TargetHint = TargetHint.ARRAY) -> None
- Constructor
Properties
- id: int get
- OpenGL buffer ID
- target_hint: TargetHint get set
- Target hint