1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
/*
$Id: viewpoint.h,v 1.12 2001/12/15 18:15:45 plasmoid Exp $
------------------------------------------------------------------------
ClanLib, the platform independent game SDK.
Copyright 1999-2000 by the Dodge This Development Team.
This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
version 2. See COPYING for details.
For a total list of contributers see CREDITS.
See http://www.clanlib.org
------------------------------------------------------------------------
*/
//! clanGL="OpenGL"
//! header=gl.h
#ifndef header_viewpoint
#define header_viewpoint
#include "../Core/Math/cl_vector.h"
//: Viewpoint Class
class CL_Viewpoint
{
public:
//! Construction:
//: Default Viewpoint Constructor
CL_Viewpoint()
{
pos = CL_Vector(0,0,0);
dir = CL_Vector(0,0,0);
up = CL_Vector(0,0,0);
}
//: Viewpoint Constructor
CL_Viewpoint(
const CL_Vector &pos,
const CL_Vector &dir,
const CL_Vector &up)
{
this->pos = pos;
this->dir = dir;
this->up = up;
}
//! Variables:
//: Postion
CL_Vector pos;
//: Direction
CL_Vector dir;
//: Up
CL_Vector up;
};
#endif
|