Skip to content
Snippets Groups Projects

Resolve "Kamera - Erstellung und Handling"

Merged Ghost User requested to merge 35-kamera-erstellung-und-handling into develop
Compare and Show latest version
4 files
+ 106
52
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -21,7 +21,12 @@ namespace vkcv {
float m_fov;
float m_ratio;
glm::vec3 m_up;
glm::vec3 m_up;
glm::vec3 m_position;
float m_cameraSpeed;
float m_roll;
float m_pitch;
float m_yaw;
public:
Camera();
@@ -34,7 +39,7 @@ namespace vkcv {
void getView(glm::vec3 &x, glm::vec3 &y, glm::vec3 &z, glm::vec3 &pos);
void setView(const glm::mat4 view);
glm::mat4 updateView();
void lookAt(glm::vec3 position, glm::vec3 center, glm::vec3 up);
@@ -44,6 +49,8 @@ namespace vkcv {
void getNearFar(float &near, float &far);
void setUp(const glm::vec3 &Up);
float getFov();
void setFov(float fov);
@@ -60,6 +67,24 @@ namespace vkcv {
void setPosition( glm::vec3 position );
float getPitch() const;
void setPitch(float pitch);
float getYaw() const;
void setYaw(float yaw);
void panView( double xOffset, double yOffset );
void moveForward();
void moveBackward();
void moveLeft();
void moveRight();
};
Loading