clearScreen

inline fun clearScreen(red: Float, green: Float, blue: Float, alpha: Float = 1.0f, clearDepth: Boolean = true)

Clears current screen with the selected color. Inlined to lower the total method count. Assumes alpha is 1f. Clears depth by default.

Parameters

red

red color value.

green

green color value.

blue

blue color value.

alpha

color alpha value. Optional, defaults to 1f (non-transparent).

clearDepth

adds the GL_DEPTH_BUFFER_BIT mask if true.

See also

ScreenUtils.clear