Package: graphene

Function graphene:matrix-init-ortho

Lambda List

graphene:matrix-init-ortho (matrix left right top bottom znear zfar)

Arguments

matrix -- a graphene:matrix-t instance
left -- a number for the left edge of the clipping plane
right -- a number for the right edge of the clipping plane
top -- a number for the top edge of the clipping plane
bottom -- a number for the bottom edge of the clipping plane
znear -- a number for the distance of the near clipping plane
zfar -- a number or the distance of the far clipping plane

Return Value

The initialized graphene:matrix-t instance.

Details

Initializes the matrix with an orthographic projection.

Notes

All numbers are coerced to a single float before being passed to the foreign C function.
 

See also

#2024-12-30