Public Methods |
virtual iCamera* | Clone () const=0 |
| Create a clone of this camera.
|
virtual int | GetFOV () const=0 |
| Return the FOV (field of view) in pixels.
|
virtual float | GetInvFOV () const=0 |
| Return the inverse flield of view (1/FOV) in pixels.
|
virtual float | GetFOVAngle () const=0 |
| Return the FOV (field of view) in radians.
|
virtual void | SetFOV (int fov, int width)=0 |
| Set the FOV in pixels. More...
|
virtual void | SetFOVAngle (float fov, int width)=0 |
| Set the FOV in radians. More...
|
virtual float | GetShiftX () const=0 |
| Set the X shift amount. More...
|
virtual float | GetShiftY () const=0 |
| Set the Y shift amount. More...
|
virtual void | SetPerspectiveCenter (float x, float y)=0 |
| Set the shift amount. More...
|
virtual csOrthoTransform& | GetTransform ()=0 |
| Get the transform corresponding to this camera. More...
|
virtual const csOrthoTransform& | GetTransform () const=0 |
| 'const' version of GetTransform ().
|
virtual void | SetTransform (const csOrthoTransform &tr)=0 |
| Set the transform corresponding to this camera. More...
|
virtual void | MoveWorld (const csVector3 &v, bool cd=true)=0 |
| Moves the camera a relative amount in world coordinates. More...
|
virtual void | Move (const csVector3 &v, bool cd=true)=0 |
| Moves the camera a relative amount in camera coordinates.
|
virtual void | MoveWorldUnrestricted (const csVector3 &v)=0 |
| Moves the camera a relative amount in world coordinates, ignoring portals and walls. More...
|
virtual void | MoveUnrestricted (const csVector3 &v)=0 |
| Moves the camera a relative amount in camera coordinates, ignoring portals and walls. More...
|
virtual iSector* | GetSector () const=0 |
| Get the current sector.
|
virtual void | SetSector (iSector *)=0 |
| Move to another sector.
|
virtual void | Correct (int n)=0 |
| Eliminate roundoff error by snapping the camera orientation to a grid of density n.
|
virtual bool | IsMirrored () const=0 |
| Return true if space is mirrored.
|
virtual void | SetMirrored (bool m)=0 |
| Set mirrored state.
|
virtual iPolygon3D* | GetHit (csVector3 &v)=0 |
| Check if there is a polygon in front of us in the direction defined by 'v' (world space coordinates). More...
|
virtual csPlane3* | GetFarPlane () const=0 |
| Get the 3D far plane that should be used to clip all geometry. More...
|
virtual void | SetFarPlane (csPlane3 *fp)=0 |
| Set the 3D far plane used to clip all geometry. More...
|
virtual long | GetCameraNumber () const=0 |
| Get the camera number. More...
|
virtual void | Perspective (const csVector3 &v, csVector2 &p) const=0 |
| Calculate perspective corrected point for this camera.
|
virtual void | InvPerspective (const csVector2 &p, float z, csVector3 &v) const=0 |
| Calculate inverse perspective corrected point for this camera.
|
virtual void | OnlyPortals (bool hop)=0 |
| If the hit-only-portals flag is true then only portals will be checked with the 'MoveWorld()' function. More...
|
virtual bool | GetOnlyPortals ()=0 |
| Get the hit-only-portals flag.
|
This class represents camera objects which can be used to render a world in the engine. A camera has the following properties: