camera.cpp
// Processes input received from a mouse input system. Expects the offset value in both the x and y direction.
Processes input received from a mouse input system. Expects the offset value in both the x and y direction.
Processes input received from a mouse input system . Expects the offset value in both the x and y direction .
void Camera::ProcessLeftMouseMovement(GLfloat xoffset, GLfloat yoffset)
{
    this->Position.x += 0.01 * (xoffset * glm::dot(glm::vec3(1.0, 0.0, 0.0), this->Right)
                                + yoffset * glm::dot(glm::vec3(0.0, 1.0, 0.0), this->Right));
    this->Position.y += 0.01 * (xoffset * glm::dot(glm::vec3(1.0, 0.0, 0.0), this->Front)
                                + yoffset * glm::dot(glm::vec3(0.0, 1.0, 0.0), this->Front));
}
void Camera :: ProcessLeftMouseMovement ( GLfloat xoffset , GLfloat yoffset ) { this -> Position . x += 0.01 * ( xoffset * glm :: dot ( glm :: vec3 ( 1.0 , 0.0 , 0.0 ) , this -> Right ) + yoffset * glm :: dot ( glm :: vec3 ( 0.0 , 1.0 , 0.0 ) , this -> Right ) ) ; this -> Position . y += 0.01 * ( xoffset * glm :: dot ( glm :: vec3 ( 1.0 , 0.0 , 0.0 ) , this -> Front ) + yoffset * glm :: dot ( glm :: vec3 ( 0.0 , 1.0 , 0.0 ) , this -> Front ) ) ; }
Processes input received from a mouse input system.
Processes input received from a mouse input system .