mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
19 lines
645 B
C++
19 lines
645 B
C++
//
|
|
// Created by Orange on 12/23/2024.
|
|
//
|
|
#pragma once
|
|
#include "Constants.hpp"
|
|
#include "omath/projection/Camera.hpp"
|
|
|
|
namespace omath::opengl
|
|
{
|
|
class Camera final : public projection::Camera<Mat4x4, ViewAngles>
|
|
{
|
|
public:
|
|
Camera(const Vector3<float>& position, const ViewAngles& viewAngles, const projection::ViewPort& viewPort,
|
|
const Angle<float, 0.f, 180.f, AngleFlags::Clamped>& fov, float near, float far);
|
|
void LookAt(const Vector3<float>& target) override;
|
|
[[nodiscard]] Mat4x4 CalcViewMatrix() const override;
|
|
[[nodiscard]] Mat4x4 CalcProjectionMatrix() const override;
|
|
};
|
|
} |