Module containers

Source
Expand description

This modules holds some miscellaneous tools for containing and manipulating CanDraw elements. Since every container itself implements Candraw, containers can often be combined by nesting inside of each other.

Structs§

CollisionContainer
Container for references to collider objects
PixelContainer
A PixelContainer acts as an intermediary between Canvases and structs implementing CanDraw. Objects can draw to the PixelContainer, which in turn can draw to any other Canvas implementing struct
VisibilityToggle
VisibilityToggle is a container for a CanDraw with a property visible. When drawn to a Canvas the contained element will only appear if visible is true

Traits§

CanCollide
Must be implemented to be used by the CollisionContainer
CanShade
To write a shader you must have a struct that implements this shader