lovr.graphics.getCanvas
Returns the active Canvas. Usually when you render something it will render directly to the headset. If a Canvas object is active, things will be rendered to the textures attached to the Canvas instead.
canvas = lovr.graphics.getCanvas()
Arguments
None
Returns
Name | Type | Description |
canvas | Canvas | The active Canvas, or nil if no canvas is set.
|
See also
Canvas:renderTo
Canvas
lovr.graphics.setCanvas
lovr.graphics