Rendering.Renderer2d
Description: Defines a 2d renderer that uses a double buffer to draw graphics.
Implements: EndGate.IDisposable
Constructors
Renderer2d (renderOnto)
Creates a new instance of the Renderer2d object.
renderOnto: HTMLCanvasElement
The canvas to render onto.
Fields
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.
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.