Clears resources, such as the backbuffer and keyboard inputs.
Clears resources, such as the backbuffer and keyboard inputs.
set of Canvas.Resources to be cleared
Returns the backbuffer.
Returns the backbuffer. This operation can be perfomance intensive, so it might be worthwile to implement this operation on the application code.
backbuffer
Gets the color from the backbuffer.
Gets the color from the backbuffer.
This operation can be perfomance intensive, so it might be worthwile
to either use getBackbuffer
to fetch multiple pixels at the same time or
to implement this operation on the application code.
pixel x position
pixel y position
pixel color
Gets the current keyboard input.
Gets the current pointer input.
Puts a pixel in the back buffer with a certain color.
Puts a pixel in the back buffer with a certain color.
pixel x position
pixel y position
Color
to apply to the pixel
Flips buffers and redraws the screen.
Flips buffers and redraws the screen.
The settings used to create this canvas
The settings used to create this canvas
Destroys the canvas window.
Destroys the canvas window.
Rendering operations cannot be called after calling this
Creates the canvas window.
Creates the canvas window.
Rendering operations can only be called after calling this.
canvas object linked to the created window
Checks if the window is created or if it has been destroyed
Checks if the window is created or if it has been destroyed
A low-level version of a canvas that provides its own canvas manager.