Package: graphene

Function graphene:matrix-init-perspective

Lambda List

graphene:matrix-init-perspective (matrix fovy aspect znear zfar)

Arguments

matrix -- a graphene:matrix-t instance
fovy -- a number for the field of view angle, in degrees
aspect -- a number for the aspect value
znear -- a number for the near z plane
zfar -- a number for the far z plane

Return Value

The initialized graphene:matrix-t instance.

Details

Initializes the matrix with a perspective projection.

Notes

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

See also

#2024-12-30