29 float fov,
float ratio,
float nearPlane,
float farPlane);
32 chag::float4x4 getViewMatrix();
33 chag::float4x4 getProjectionMatrix();
35 void update(
float dt);
36 void setPosition(chag::float3 position);
37 void setLookAt(chag::float3 lookAt);
38 void setUpVector(chag::float3 up);
40 chag::float4x4 lookAt(
const chag::float3 &eye,
const chag::float3 ¢er,
const chag::float3 &up);
41 chag::float4x4 perspectiveMatrix(
float fov,
float aspectRatio,
float n,
float f);
Implementation of the Camera interface.