mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
added open gl stuff
This commit is contained in:
@@ -26,11 +26,12 @@ namespace omath::source
|
||||
|
||||
Mat4x4 Camera::CalcViewMatrix() const
|
||||
{
|
||||
return source::CalcViewMatrix(m_viewAngles, m_origin);
|
||||
return source::CalcViewMatrix(m_viewAngles, m_origin);
|
||||
}
|
||||
|
||||
Mat4x4 Camera::CalcProjectionMatrix() const
|
||||
{
|
||||
return CalcPerspectiveProjectionMatrix(m_fieldOfView.AsDegrees(), m_viewPort.AspectRatio(), m_nearPlaneDistance, m_farPlaneDistance);
|
||||
return CalcPerspectiveProjectionMatrix(m_fieldOfView.AsDegrees(), m_viewPort.AspectRatio(), m_nearPlaneDistance,
|
||||
m_farPlaneDistance);
|
||||
}
|
||||
} // namespace omath::source
|
||||
|
||||
Reference in New Issue
Block a user