Skip to content
DrJonki edited this page Oct 10, 2014 · 1 revision

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.

Clone this wiki locally