Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 795 Bytes

Buffers.rst

File metadata and controls

28 lines (21 loc) · 795 Bytes

Buffers

ModernGL

Context.buffer(data=None, reserve=0, dynamic=False) -> Buffer

Buffer

access(size=-1, offset=0, readonly=False) -> BufferAccess

read(size=-1, offset=0) -> bytes

read_into(buffer, size=-1, offset=0, write_offset=0)

write(data, offset=0)

orphan()

bind_to_uniform_block(binding=0)

bind_to_storage_buffer(binding=0)

ModernGL.BufferAccess

open()

close()

read(size=-1, offset=0) -> bytes

read_into(buffer, size=-1, offset=0, write_offset=0)

write(data, offset=0)