Skip to content

RenderablePolygon

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

new RenderablePolygon()

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

RenderablePolygon.render(c, camera)

renders the polygon 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 polygon on.  
camera Camera - the camera to look at the polygon from.  
Returns
  • Void

Clone this wiki locally