Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
NDK class that represents the component for camera. More...
Public Member Functions | |
CameraComponent () | |
Constructs an CameraComponent object by default. | |
CameraComponent (const CameraComponent &camera) | |
Constructs a CameraComponent object by copy semantic. More... | |
void | ApplyView () const override |
Applys the view of the camera. More... | |
void | EnsureFrustumUpdate () const |
Ensures the frustum is up to date. | |
void | EnsureProjectionMatrixUpdate () const |
Ensures the projection matrix is up to date. | |
void | EnsureViewMatrixUpdate () const |
Ensures the view matrix is up to date. | |
void | EnsureViewportUpdate () const |
Ensures the view port is up to date. | |
float | GetAspectRatio () const override |
Gets the aspect ratio of the camera. More... | |
Nz::Vector3f | GetEyePosition () const override |
Gets the eye position of the camera. More... | |
Nz::Vector3f | GetForward () const override |
Gets the forward direction of the camera. More... | |
float | GetFOV () const |
Gets the field of view of the camera. More... | |
const Nz::Frustumf & | GetFrustum () const override |
Gets the frutum of the camera. More... | |
unsigned int | GetLayer () const |
Gets the layer of the camera. More... | |
const Nz::Matrix4f & | GetProjectionMatrix () const override |
Gets the projection matrix of the camera. More... | |
Nz::ProjectionType | GetProjectionType () const override |
Gets the projection type of the camera. More... | |
const Nz::Vector2f & | GetSize () const |
Gets the size of the camera. More... | |
const Nz::RenderTarget * | GetTarget () const override |
Gets the target of the camera. More... | |
const Nz::Rectf & | GetTargetRegion () const |
Gets the target region of the camera. More... | |
const Nz::Matrix4f & | GetViewMatrix () const override |
Gets the view matrix of the camera. More... | |
const Nz::Recti & | GetViewport () const override |
Gets the view port of the camera. More... | |
float | GetZFar () const override |
Gets the Z far distance of the camera. More... | |
float | GetZNear () const override |
Gets the Z near distance of the camera. More... | |
void | SetFOV (float fov) |
Sets the field of view of the camera. More... | |
void | SetLayer (unsigned int layer) |
Sets the layer of the camera in case of multiples fields. More... | |
void | SetProjectionType (Nz::ProjectionType projection) |
Sets the projection type of the camera. More... | |
void | SetSize (const Nz::Vector2f &size) |
Sets the size of the camera. More... | |
void | SetSize (float width, float height) |
Sets the size of the camera. More... | |
void | SetTarget (const Nz::RenderTarget *renderTarget) |
Sets the target of the camera. More... | |
void | SetTargetRegion (const Nz::Rectf ®ion) |
Sets the target region of the camera. More... | |
void | SetViewport (const Nz::Recti &viewport) |
Sets the view port of the camera. More... | |
void | SetZFar (float zFar) |
Sets the Z far distance of the camera. More... | |
void | SetZNear (float zNear) |
Sets the Z near distance of the camera. More... | |
bool | UpdateVisibility (std::size_t visibilityHash) |
Update the camera component visibility hash. More... | |
Public Member Functions inherited from Nz::AbstractViewer | |
AbstractViewer (const AbstractViewer &)=default | |
AbstractViewer (AbstractViewer &&) noexcept=default | |
AbstractViewer & | operator= (const AbstractViewer &)=default |
AbstractViewer & | operator= (AbstractViewer &&) noexcept=default |
Static Public Attributes | |
static ComponentIndex | componentIndex |
NDK class that represents the component for camera.
|
inline |
Constructs a CameraComponent object by copy semantic.
camera | CameraComponent to copy |
|
overridevirtual |
Applys the view of the camera.
Implements Nz::AbstractViewer.
|
overridevirtual |
Gets the aspect ratio of the camera.
Implements Nz::AbstractViewer.
|
overridevirtual |
Gets the eye position of the camera.
Implements Nz::AbstractViewer.
|
overridevirtual |
Gets the forward direction of the camera.
Implements Nz::AbstractViewer.
|
inline |
Gets the field of view of the camera.
|
overridevirtual |
Gets the frutum of the camera.
Implements Nz::AbstractViewer.
|
inline |
Gets the layer of the camera.
|
overridevirtual |
Gets the projection matrix of the camera.
Implements Nz::AbstractViewer.
|
overridevirtual |
Gets the projection type of the camera.
Implements Nz::AbstractViewer.
|
inline |
Gets the size of the camera.
|
overridevirtual |
Gets the target of the camera.
Implements Nz::AbstractViewer.
|
inline |
Gets the target region of the camera.
|
overridevirtual |
Gets the view matrix of the camera.
Implements Nz::AbstractViewer.
|
overridevirtual |
Gets the view port of the camera.
Implements Nz::AbstractViewer.
|
overridevirtual |
Gets the Z far distance of the camera.
Implements Nz::AbstractViewer.
|
overridevirtual |
Gets the Z near distance of the camera.
Implements Nz::AbstractViewer.
|
inline |
Sets the field of view of the camera.
fov | Field of view of the camera |
void Ndk::CameraComponent::SetLayer | ( | unsigned int | layer | ) |
Sets the layer of the camera in case of multiples fields.
layer | Layer of the camera |
|
inline |
Sets the projection type of the camera.
projectionType | Projection type of the camera |
|
inline |
Sets the size of the camera.
size | Size of the camera |
|
inline |
Sets the size of the camera.
width | Size in X of the camera |
height | Size in Y of the camera |
|
inline |
Sets the target of the camera.
renderTarget | A constant reference to the render target of the camera |
|
inline |
Sets the target region of the camera.
region | A constant reference to the target region of the camera |
|
inline |
Sets the view port of the camera.
viewport | A constant reference to the view port of the camera |
|
inline |
Sets the Z far distance of the camera.
zFar | Z far distance of the camera |
|
inline |
Sets the Z near distance of the camera.
zNear | Z near distance of the camera |
|
inline |
Update the camera component visibility hash.
This is used with CullingList (which produce a visibility hash)
visibilityHash | New visibility hash |