setting up 3d

This commit is contained in:
Erris
2026-03-02 00:49:08 +01:00
parent 90a6ea00c0
commit 03bca252d3
6 changed files with 132 additions and 11 deletions

View File

@@ -31,6 +31,7 @@ namespace OpenEngine {
glm::vec3 GetForwardDirection() const;
const glm::vec3& GetPosition() const { return position; }
glm::quat GetOrientation() const;
void ResetMousePosition();
float GetPitch() const { return pitch; }
float GetYaw() const { return yaw; }
@@ -61,6 +62,7 @@ namespace OpenEngine {
glm::vec3 focal_point = { 0.0f, 0.0f, 0.0f };
glm::vec2 initial_mouse_position = { 0.0f, 0.0f };
bool mouse_button_was_pressed = false;
float distance = 10.0f;
float pitch = 0.0f, yaw = 0.0f;