You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
380 B
16 lines
380 B
#pragma once
|
|
#include "vector3.h"
|
|
|
|
class Camera {
|
|
public:
|
|
Camera();
|
|
Vector3f mPos, mViewCenter, mUp;
|
|
bool mbMoveLeft, mbMoveRight, mbMoveForward, mbMoveBack;
|
|
int mViewportWidth, mViewportHeight;
|
|
void Update(float deltaTime);
|
|
void Picth(float angle);
|
|
void Yaw(float angle);
|
|
void RotateView(float angle, float x, float y, float z);
|
|
void SwitchTo3D();
|
|
void SwitchTo2D();
|
|
};
|