Functions

Camera.aspect GETSET The aspect ratio
Camera:enter() Enter the camera viewing transformation
Camera.eye GETSET The eye position
Camera.far GETSET The far clipping plane distance
Camera:leave() Leave the current viewing transformation
Camera.lens_angle GETSET The lens angle
Camera.look GETSET The look vector
Camera.lookat SET The look at position
Camera:movex(amt) Move in the direction of the local x-axis
Camera:movey(amt) Move in the direction of the local y-axis
Camera:movez(amt) Move in the direction of the local z-axis
Camera.near GETSET The near clipping plane distance
Camera:pitch(angle) Rotate around the x-axis
Camera:roll(angle) Rotate around the z-axis
Camera.up GET The up vector
Camera:update() Update the internal camera parameters
Camera:yaw(angle) Rotate around the y-axis

Functions

Camera.aspect GETSET

The aspect ratio

Camera:enter()

Enter the camera viewing transformation

Camera.eye GETSET

The eye position

Camera.far GETSET

The far clipping plane distance

Camera:leave()

Leave the current viewing transformation

Camera.lens_angle GETSET

The lens angle

Camera.look GETSET

The look vector

Camera.lookat SET

The look at position

Camera:movex(amt)

Move in the direction of the local x-axis

Parameters:

amt Amount to move
Camera:movey(amt)

Move in the direction of the local y-axis

Parameters:

amt Amount to move
Camera:movez(amt)

Move in the direction of the local z-axis

Parameters:

amt Amount to move
Camera.near GETSET

The near clipping plane distance

Camera:pitch(angle)

Rotate around the x-axis

Parameters:

angle Angle in degress
Camera:roll(angle)

Rotate around the z-axis

Parameters:

angle Angle in degress
Camera.up GET

The up vector

Camera:update()

Update should be called once per-frame before calling enter. Update takes the current settings and calculates internal parameters required to build the viewing transformation.

Camera:yaw(angle)

Rotate around the y-axis

Parameters:

angle Angle in degress