Sprite - Team-Innis/UtH-Engine GitHub Wiki
The Sprite
component is used to simply draw a texture or a colored rectangle.
Basic usage
- Allocate a new
Sprite
on the heap, passing a texture or a Vec4(representing the color) into the constructor. - Add the
Sprite
into aGameObject
. - take care of drawing the object.