natiny_camera_create
NatinyCamera natiny_camera_create(void);
Creates a new 3D camera.
Returns
| Type | Description |
|---|---|
NatinyCamera |
Camera handle. 0 on failure. |
Example
NatinyCamera cam = natiny_camera_create();
Notes
- Initial values are a 1-radian field of view, near clip
0.1fand far clip100.0f. - Destroy the camera with
natiny_camera_destroywhen it is no longer needed.