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

Drawable for two-dimensional float scenes

Methods

def draw(self, transformation_matrix: Matrix3, camera: Camera2D) -> None
Draw the object using given camera

Special methods

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

Properties

drawables: DrawableGroup2D get
Group containing this drawable
object: AbstractObject2D get
Object holding this feature