Skip to content

RenderableSprite

Isuru Kusumal Rajapakse edited this page Jun 18, 2017 · 1 revision

new RenderableSprite()

  • Represents a component that defines renderable behaviour of a sprite
Returns
  • Void

RenderableSprite.render(c, camera)

renders the sprite on the given canvas, and if a camera is provided, then as seen from given camera

Parameters
Name Type Description
c context - the canvas context to draw the sprite on.  
camera Camera - the camera to look at the sprite from.  
Returns
  • Void

Clone this wiki locally