mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 13:41:06 +03:00
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
#ifndef UI_GAME_C_G_CAMERA_HPP
|
|
#define UI_GAME_C_G_CAMERA_HPP
|
|
|
|
#include "ui/simple/CSimpleCamera.hpp"
|
|
#include "util/GUID.hpp"
|
|
|
|
class CGCamera : public CSimpleCamera {
|
|
public:
|
|
// Public structs
|
|
struct CameraViewData {
|
|
const char* m_distance;
|
|
const char* m_pitch;
|
|
const char* m_yaw;
|
|
};
|
|
|
|
// Public static variables
|
|
static CameraViewData s_cameraViewDataDefault[];
|
|
|
|
// Virtual public member functions
|
|
virtual ~CGCamera() = default;
|
|
virtual float FOV() const;
|
|
virtual C3Vector Forward() const;
|
|
virtual C3Vector Right() const;
|
|
virtual C3Vector Up() const;
|
|
|
|
// Public member functions
|
|
CGCamera();
|
|
C33Matrix ParentToWorld() const;
|
|
void SetupWorldProjection(const CRect& projRect);
|
|
|
|
private:
|
|
// Private member variables
|
|
// TODO
|
|
WOWGUID m_relativeTo;
|
|
// TODO
|
|
int32_t m_view;
|
|
// TODO
|
|
float m_distance;
|
|
float m_yaw;
|
|
float m_pitch;
|
|
float m_roll;
|
|
// TODO
|
|
float m_fovOffset;
|
|
};
|
|
|
|
void CameraRegisterCVars();
|
|
|
|
#endif
|