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
PixelContaineracts as an intermediary between Canvases and structs implementingCanDraw. Objects can draw to thePixelContainer, which in turn can draw to any otherCanvasimplementing struct - Visibility
Toggle VisibilityToggleis a container for aCanDrawwith a propertyvisible. When drawn to aCanvasthe contained element will only appear ifvisibleistrue
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