Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

camera.h

Go to the documentation of this file.
00001 /*
00002         Dodge This, ClanLib example Game,
00003         Copyright 1999-2000 by the Dodge This Development Team.
00004         
00005         This game is licensed under the GNU PUBLIC LICENSE (GPL), version 2.
00006 */
00007 
00009 
00010 #ifndef header_camera
00011 #define header_camera
00012 
00013 class CL_Viewpoint;
00014 class CL_Camera
00015 //: This is DodgeThis camera class.
00016 // <p>Camera maintains the projection and view matrix in DodgeThis.</p>
00017 {
00018 public:
00019         CL_Camera();
00020         // Constructs an uninitialized camera.
00021 
00022         CL_Camera(
00023                 float nearZ,
00024                 float farZ,
00025                 float fov);
00026         // Constructs a camera.
00033 
00034         void set_viewport(const CL_Viewpoint &viewpoint, float distance) const;
00035         // Set view matrix to look from the camera's point of view.
00036 
00037         float fov, nearZ, farZ;
00038 };
00039 
00040 #endif

Generated at Wed Apr 4 19:53:59 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001