camera.cpp
// Processes input received from a mouse scroll-wheel event. Only requires input on the vertical wheel-axis
Processes input received from a mouse scroll-wheel event. Only requires input on the vertical wheel-axis
Processes input received from a mouse scroll - wheel event . Only requires input on the vertical wheel - axis
void Camera::ProcessMouseScroll(GLfloat yoffset)
{
    if (this->Zoom >= 1.0f && this->Zoom <= 45.0f)
        this->Zoom -= yoffset;
    if (this->Zoom <= 1.0f)
        this->Zoom = 1.0f;
    if (this->Zoom >= 45.0f)
        this->Zoom = 45.0f;
}
void Camera :: ProcessMouseScroll ( GLfloat yoffset ) { if ( this -> Zoom >= 1.0f && this -> Zoom <= 45.0f ) this -> Zoom -= yoffset ; if ( this -> Zoom <= 1.0f ) this -> Zoom = 1.0f ; if ( this -> Zoom >= 45.0f ) this -> Zoom = 45.0f ; }
Processes input received from a mouse scroll-wheel event.
Processes input received from a mouse scroll - wheel event .