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§
- Collision
Container - Container for references to collider objects
- Pixel
Container - A
PixelContainer
acts as an intermediary between Canvases and structs implementingCanDraw
. Objects can draw to thePixelContainer
, which in turn can draw to any otherCanvas
implementing struct - Visibility
Toggle VisibilityToggle
is a container for aCanDraw
with a propertyvisible
. When drawn to aCanvas
the contained element will only appear ifvisible
istrue
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