Class for camera.
More...
#include <Camera.hpp>
Class for camera.
This class represents a Camera in the 3D engine. A Camera can be attached to only one Render::View and one Scene::Node.
Definition at line 30 of file Camera.hpp.
◆ Camera() [1/3]
lug::Graphics::Render::Camera::Camera::Camera |
( |
const Camera & |
| ) |
|
|
delete |
◆ Camera() [2/3]
lug::Graphics::Render::Camera::Camera::Camera |
( |
Camera && |
| ) |
|
|
delete |
◆ ~Camera()
virtual lug::Graphics::Render::Camera::Camera::~Camera |
( |
| ) |
|
|
virtualdefault |
◆ Camera() [3/3]
lug::Graphics::Render::Camera::Camera::Camera |
( |
const std::string & |
name | ) |
|
|
explicitprotected |
◆ operator=() [1/2]
Camera& lug::Graphics::Render::Camera::Camera::operator= |
( |
const Camera & |
| ) |
|
|
delete |
◆ operator=() [2/2]
Camera& lug::Graphics::Render::Camera::Camera::operator= |
( |
Camera && |
| ) |
|
|
delete |
◆ setZNear()
void Camera::setZNear |
( |
float |
znear | ) |
|
|
inline |
Sets the znear (distance of near plane).
- Parameters
-
Definition at line 29 of file Camera.inl.
◆ getZNear()
float Camera::getZNear |
( |
| ) |
const |
|
inline |
Gets the znear (distance of near plane).
- Returns
- The near value.
Definition at line 10 of file Camera.inl.
◆ setZFar()
void Camera::setZFar |
( |
float |
zfar | ) |
|
|
inline |
Sets the zfar (distance of far plane).
- Parameters
-
Definition at line 33 of file Camera.inl.
◆ getZFar()
float Camera::getZFar |
( |
| ) |
const |
|
inline |
Gets the zfar (distance of far plane)
- Returns
- The zfar value.
Definition at line 1 of file Camera.inl.
◆ getProjectionMatrix()
const Math::Mat4x4f & Camera::getProjectionMatrix |
( |
| ) |
|
|
inline |
Gets the projection matrix. Computes it if needed, but internally the projection matrix is cached.
- Returns
- The projection matrix.
Definition at line 33 of file Camera.inl.
◆ getViewMatrix()
const Math::Mat4x4f & Camera::getViewMatrix |
( |
| ) |
|
|
inline |
Gets the view matrix. Computes it if needed, but internally the view matrix is cached.
- Returns
- The view matrix.
Definition at line 41 of file Camera.inl.
◆ update()
void lug::Graphics::Render::Camera::Camera::update |
( |
const Renderer & |
renderer, |
|
|
const View & |
renderView, |
|
|
Queue & |
renderQueue |
|
) |
| |
Update the render queue of the Camera by fetching the visible objects of the attached scene.
- Parameters
-
[in] | renderer | The renderer |
[in] | renderView | The render view |
[in] | renderQueue | The render queue |
Definition at line 22 of file Camera.cpp.
◆ setRenderView()
void Camera::setRenderView |
( |
View * |
renderView | ) |
|
|
inline |
◆ getParent()
◆ setParent()
◆ needUpdateProj()
void Camera::needUpdateProj |
( |
| ) |
|
|
inline |
◆ needUpdateView()
void Camera::needUpdateView |
( |
| ) |
|
|
inline |
◆ lookAt()
◆ updateProj()
virtual void lug::Graphics::Render::Camera::Camera::updateProj |
( |
| ) |
|
|
protectedpure virtual |
◆ updateView()
void lug::Graphics::Render::Camera::Camera::updateView |
( |
| ) |
|
|
protected |
◆ _parent
Scene::Node* lug::Graphics::Render::Camera::Camera::_parent {nullptr} |
|
protected |
◆ _renderView
View* lug::Graphics::Render::Camera::Camera::_renderView {nullptr} |
|
protected |
◆ _znear
float lug::Graphics::Render::Camera::Camera::_znear {0.1f} |
|
protected |
◆ _zfar
float lug::Graphics::Render::Camera::Camera::_zfar {100.0f} |
|
protected |
◆ _needUpdateProj
bool lug::Graphics::Render::Camera::Camera::_needUpdateProj {true} |
|
protected |
◆ _needUpdateView
bool lug::Graphics::Render::Camera::Camera::_needUpdateView {true} |
|
protected |
◆ _projMatrix
Math::Mat4x4f lug::Graphics::Render::Camera::Camera::_projMatrix {Math::Mat4x4f::identity()} |
|
protected |
◆ _viewMatrix
Math::Mat4x4f lug::Graphics::Render::Camera::Camera::_viewMatrix {Math::Mat4x4f::identity()} |
|
protected |
The documentation for this class was generated from the following files: