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

NameTypeDescription
canvasCanvasThe active Canvas, or nil if no canvas is set.

See also