Lugdunum  0.1.0
Perspective.cpp
Go to the documentation of this file.
2 
5 
6 namespace lug {
7 namespace Graphics {
8 namespace Render {
9 namespace Camera {
10 
11 Perspective::Perspective(const std::string& name) : Camera(name) {}
12 
14  if (!_renderView) {
15  return;
16  }
17 
21  _znear,
22  _zfar
23  );
24 
25  _needUpdateProj = false;
26 }
27 
28 } // Camera
29 } // Render
30 } // Graphics
31 } // lug
Perspective(const Perspective &)=delete
const Viewport & getViewport() const
Definition: View.inl:9
T radians(T degrees)
Definition: Trigonometry.inl:2
Matrix< 4, 4, T > perspective(T fovy, T aspect, T zNear, T zFar)
Definition: Transform.inl:95