class virtual camera : object .. end
Interface defining a camera position. See
This interface is likely to change in the near future,
to fully describe the viewing volume. The position_for*
methods may be renamed.
method virtual fovy : float
Vertical Field-Of-View in degrees.
method virtual apply : render_context -> unit
Applies transformations to the projection
and modelview matricies to prepare
a scene for rendering from the perspective of this camera.
The parameter render_context contains jitter
values to use if this camera supports antialiasing.
method virtual z_bounds : float * float
Returns the (near, far) bounds.
method virtual resize_viewport : int * int -> unit
Sets the camera's viewport size.
method virtual viewport_size : int * int
Returns the camera's viewport size.