*** empty log message ***
This commit is contained in:
88
include/camera.h
Normal file
88
include/camera.h
Normal file
@@ -0,0 +1,88 @@
|
||||
#ifndef __camera_h__
|
||||
#define __camera_h__
|
||||
|
||||
#include <cmath>
|
||||
#include <windows.h>
|
||||
#include "vector.h"
|
||||
#include "myGl.h"
|
||||
#include "screen.h"
|
||||
|
||||
|
||||
|
||||
class CameraClass
|
||||
{
|
||||
public:
|
||||
//Constructors
|
||||
CameraClass(); //Default Constructor
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
//CameraClass(const CameraClass&); //Copy Constructor
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
//Observer Accessors
|
||||
Vec3f Position();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
Vec3f View();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
Vec3f UpVector();
|
||||
//Purpose:
|
||||
//
|
||||
|
||||
Vec3f Strafe();
|
||||
//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:
|
||||
//
|
||||
|
||||
|
||||
private:
|
||||
Vec3f m_vPosition;
|
||||
Vec3f m_vView;
|
||||
Vec3f m_vUpVector;
|
||||
Vec3f m_vStrafe;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user