whoa/src/ui/simple/CSimpleCamera.hpp
fallenoak 7d491570e4
Some checks failed
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) Has been cancelled
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) Has been cancelled
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) Has been cancelled
feat(ui): add CSimpleCamera::GetScene
2026-02-15 21:02:06 -06:00

39 lines
1.0 KiB
C++

#ifndef UI_SIMPLE_C_SIMPLE_CAMERA_HPP
#define UI_SIMPLE_C_SIMPLE_CAMERA_HPP
#include <tempest/Matrix.hpp>
#include <tempest/Vector.hpp>
class CM2Scene;
class CSimpleCamera {
public:
// Virtual public member functions
virtual float FOV();
virtual C3Vector Forward() const;
virtual C3Vector Right() const;
virtual C3Vector Up() const;
// Public member functions
CSimpleCamera(float nearZ, float farZ, float fov);
CM2Scene* GetScene();
void SetFacing(const C3Vector& forward);
void SetFacing(const C3Vector& forward, const C3Vector& up);
void SetFacing(float yaw, float pitch, float roll);
void SetFarZ(float farZ);
void SetFieldOfView(float fov);
void SetNearZ(float nearZ);
protected:
// Protected member variables
CM2Scene* m_scene;
C3Vector m_position;
C33Matrix m_facing;
float m_nearZ;
float m_farZ;
float m_fov;
float m_aspect;
};
#endif