Sprite - Team-Innis/UtH-Engine GitHub Wiki

The Sprite component is used to simply draw a texture or a colored rectangle.


Basic usage

  1. Allocate a new Sprite on the heap, passing a texture or a Vec4(representing the color) into the constructor.
  2. Add the Sprite into a GameObject.
  3. take care of drawing the object.