Skip to content

Commit

Permalink
Merge pull request #46 from hotstreams/feature/enable-camera-mode-set…
Browse files Browse the repository at this point in the history
…ting

enable camera mode setting
  • Loading branch information
hotstreams authored Dec 9, 2023
2 parents 9ea7c07 + e7c6a78 commit e035ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/limitless/camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ namespace Limitless {
void setPosition(const glm::vec3& position) noexcept;
void setFront(const glm::vec3& front) noexcept;
void setFov(glm::uvec2 size, float fov) noexcept;
void setMode(CameraMode mode) noexcept;

void mouseMove(glm::dvec2 offset) noexcept;
void mouseScroll(float yoffset) noexcept;
Expand Down
3 changes: 3 additions & 0 deletions src/limitless/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,6 @@ void Camera::setFov(glm::uvec2 size, float _fov) noexcept {
updateProjection(size);
}

void Camera::setMode(CameraMode new_mode) noexcept {
mode = new_mode;
}

0 comments on commit e035ac4

Please sign in to comment.