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.DefaultFramebuffer class

Default framebuffer

Static methods

def blit(source: AbstractFramebuffer, destination: AbstractFramebuffer, source_rectangle: Range2Di, destination_rectangle: Range2Di, mask: FramebufferBlit, filter: FramebufferBlitFilter) -> None
Copy a block of pixels
def blit(source: AbstractFramebuffer, destination: AbstractFramebuffer, rectangle: Range2Di, mask: FramebufferBlit) -> None
Copy a block of pixels

Methods

def bind(self, /) -> None
Bind framebuffer for drawing
def clear(self, arg0: FramebufferClear, /) -> None
Clear specified buffers in the framebuffer
def read(self, rectangle: Range2Di, image: MutableImageView2D) -> None
Read a block of pixels from the framebuffer to an image view
def read(self, rectangle: Range2Di, image: Image2D) -> None
Read a block of pixels from the framebuffer to an image

Properties

viewport: Range2Di get set
Viewport