lovr.graphics.fill

Draws a fullscreen textured quad.

Fills the screen with a region of a Texture.

lovr.graphics.fill(texture, u, v, w, h)

Arguments

NameTypeDefaultDescription
textureTextureThe texture to use.
unumber0The x component of the uv offset.
vnumber0The y component of the uv offset.
wnumber1 - uThe width of the Texture to render, in uv coordinates.
hnumber1 - vThe height of the Texture to render, in uv coordinates.

Returns

Nothing


Fills the screen with the active color.

lovr.graphics.fill()

Arguments

None

Returns

Nothing

Notes

This function ignores stereo rendering, so it will stretch the input across the entire Canvas if it's stereo. Special shaders are currently required for correct stereo fills.

See also