Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CAMERA_H
- #define CAMERA_H
- #include "../Core/Vector3.h"
- namespace Eternal
- {
- namespace Scene
- {
- enum CAM_VIEWTYPE
- {
- CAM_TYPE_FPS, // FPS styled
- CAM_TYPE_MAM, // M&M styled
- CAM_TYPE_ES // Elder scrolls styled
- };
- class Camera
- {
- public:
- Camera();
- ~Camera();
- void AttachPlayer();
- Core::Vector3 *GetPosition();
- void SetViewType(CAM_VIEWTYPE viewtype);
- void UpdateLogic();
- void BeginScene();
- void EndScene();
- private:
- Core::Vector3 Position;
- float f_AngX, f_AngY;
- bool b_IsPlayer;
- private:
- void ShowPlayer(const float xrads, const float yrads);
- };
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement