DrawContext
data class DrawContext(val model: Matrix44, val view: Matrix44, val projection: Matrix44, val width: Int, val height: Int, val contentScale: Double, val modelViewScalingFactor: Double)(source)
Represents the drawing context containing transformation matrices and additional parameters necessary to configure a rendering shader.
Constructors
Properties
Link copied to clipboard
The scale factor used to adjust content rendering based on display scaling or resolution.
Link copied to clipboard
A scaling factor combining model and view transformations for additional adjustments.
Link copied to clipboard
The projection matrix defining the perspective or orthographic projection of the view.