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.scenegraph.Camera2D class

Camera for two-dimensional float scenes

Methods

def draw(self, arg0: DrawableGroup2D, /) -> None
Draw
def projection_size(self, /) -> Vector2
Size of (near) XY plane in current projection

Special methods

def __init__(self, object: AbstractObject2D) -> None
Constructor

Properties

aspect_ratio_policy: AspectRatioPolicy get set
Aspect ratio policy
camera_matrix: Matrix3 get
Camera matrix
object: AbstractObject2D get
Object holding this feature
projection_matrix: Matrix3 get set
Projection matrix
viewport: Vector2i get set
Viewport size