natiny_camera_set_fov

C
void natiny_camera_set_fov(NatinyCamera cam, float fov);

Sets the vertical field of view for a camera.

Parameters

Name Type Description
cam NatinyCamera Camera handle from natiny_camera_create
fov float Vertical field of view in radians - the Lua binding is the one that takes degrees

Example

C
NatinyCamera cam = natiny_camera_create();
natiny_camera_set_fov(cam, 1.13f);   /* 65 degrees */