Function ul_sys::ulApplyProjection [−][src]
pub unsafe extern "C" fn ulApplyProjection(
transform: ULMatrix4x4,
viewport_width: f32,
viewport_height: f32,
flip_y: bool
) -> ULMatrix4x4
Expand description
Sets up an orthographic projection matrix with a certain viewport width and height, multiplies it by ‘transform’, and returns the result.
This should be used to calculate the model-view projection matrix for the vertex shaders using the current ULGPUState.
The ‘flip_y’ can be optionally used to flip the Y coordinate-space. (Usually flip_y == true for OpenGL)