Changed: Renamed a few classes
Changed: Moved most sensible objects into the OpenArena namespace ~g2k
This commit is contained in:
134
include/camera.h
134
include/camera.h
@@ -9,82 +9,82 @@
|
||||
#include "mygl.h"
|
||||
#include "screen.h"
|
||||
|
||||
|
||||
|
||||
class CameraClass
|
||||
namespace OpenArena
|
||||
{
|
||||
public:
|
||||
//Constructors
|
||||
CameraClass(); //Default Constructor
|
||||
//Purpose:
|
||||
//
|
||||
class Camera
|
||||
{
|
||||
public:
|
||||
//Constructors
|
||||
Camera(); //Default Constructor
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
//Camera(const Camera&); //Copy Constructor
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
//Observer Accessors
|
||||
Vec3f Position();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
//CameraClass(const CameraClass&); //Copy Constructor
|
||||
//Purpose:
|
||||
//
|
||||
Vec3f View();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
//Observer Accessors
|
||||
Vec3f Position();
|
||||
//Purpose:
|
||||
//
|
||||
Vec3f UpVector();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
Vec3f View();
|
||||
//Purpose:
|
||||
//
|
||||
Vec3f Strafe();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
Vec3f UpVector();
|
||||
//Purpose:
|
||||
//
|
||||
//Mutators
|
||||
void PositionCamera(double xpos, double ypos, double zpos,
|
||||
double xview, double yview, double zview,
|
||||
double xup, double yup, double zup);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void PositionCamera(Vec3f pos, Vec3f view, Vec3f up);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
Vec3f Strafe();
|
||||
//Purpose:
|
||||
//
|
||||
void RotateView(double angle, double X, double Y, double Z);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
//Mutators
|
||||
void PositionCamera(double xpos, double ypos, double zpos,
|
||||
double xview, double yview, double zview,
|
||||
double xup, double yup, double zup);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void PositionCamera(Vec3f pos, Vec3f view, Vec3f up);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void RotateView(double angle, double X, double Y, double Z);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void SetViewByMouse(SCREEN g_Screen);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void RotateAroundPoint(Vec3f vCenter, double X, double Y, double Z);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void StrafeCamera(double speed);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void MoveCamera(double speed);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void Update();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void Look();
|
||||
//Purpose:
|
||||
//
|
||||
void SetViewByMouse(Screen g_Screen);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void RotateAroundPoint(Vec3f vCenter, double X, double Y, double Z);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void StrafeCamera(double speed);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void MoveCamera(double speed);
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
private:
|
||||
Vec3f m_vPosition;
|
||||
Vec3f m_vView;
|
||||
Vec3f m_vUpVector;
|
||||
Vec3f m_vStrafe;
|
||||
void Update();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
void Look();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
private:
|
||||
Vec3f m_vPosition;
|
||||
Vec3f m_vView;
|
||||
Vec3f m_vUpVector;
|
||||
Vec3f m_vStrafe;
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user