Rendering.Camera2dRenderer

Description: Defines a camera rendering object that when used in conjunction with a Camera2d draws all objects in a camera relative position.

Extends: Rendering.Renderer2d

Constructors

Camera2dRenderer (renderOnto, camera)
Creates a new instance of the Camera2dRenderer.

renderOnto: HTMLCanvasElement
The canvas to render onto.

camera: Rendering.Camera2d
The camera that ultimately decides what is drawn to the renderOnto canvas.

Fields

Inherited from: Rendering.Renderer2d

OnRendererSizeChange: EndGate.EventHandler1 <EndGate.Size2d>
Gets an event that is triggered when the renderOnto canvas changes size. Functions can be bound or unbound to this event to be executed when the event triggers.

Methods

Render()
Renders the provided renderables onto the renderOnto canvas. Returns the canvas that was rendered onto.

Inherited from: Rendering.Renderer2d

Dispose()
Destroys the visible canvas.

Examples

There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.