mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 05:31:07 +03:00
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run
50 lines
1.2 KiB
C++
50 lines
1.2 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);
|
|
C3Vector Target() const;
|
|
|
|
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
|