ortho
Sets the projection matrix to orthogonal using the sizes of a RenderTarget
Parameters
renderTarget
the render target to take the sizes from
Sets the projection matrix to orthogonal using the drawer's current size
fun ortho(left: Double, right: Double, bottom: Double, top: Double, near: Double, far: Double)(source)
Sets the projection matrix to orthogonal using left, right, bottom, top, near, far
Usage example:
drawer.ortho(left = 0.0, right = 100.0, bottom = 100.0, top = 0.0, near = -1.0, far = 1.0)Content copied to clipboard
Parameters
left
left value
right
right value
bottom
bottom value
top
top value
near
near value
far
far value