|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Base type for all objects that update the view/projection matrices. More...
#include <ICamera.hpp>

Public Member Functions | |
| Matrix4x4 | GetViewMatrix () |
| Matrix4x4 | GetProjectionMatrix () |
| virtual Math::Matrix4x4 | GetViewMatrix () const noexcept=0 |
| Calculates the view matrix. | |
| virtual Math::Matrix4x4 | GetProjectionMatrix () const =0 |
| Calculates the projection matrix. | |
| virtual Math::ViewingFrustum | GetViewingFrustum () const |
| Calculates the viewing frustum from the view and projection matrices. | |
| virtual | ~ICamera ()=default |
Public Attributes | |
| Math::Vector3 | Normal |
| Normal vector of the camera. | |
| float | AspectRatio |
| Aspect ratio of the camera (width / height). | |
| float | FieldOfView |
| Field of view in radians. | |
| float | NearPlaneDistance |
| Minimal rendering distance. | |
| float | FarPlaneDistance |
| Maximum rendering distance. | |
Protected Member Functions | |
| ICamera (const Math::Vector3 &normal, float aspectRatio, float fov, float npd, float fpd) | |
| ICamera complete constructor. | |
| ICamera (const ICamera &)=delete | |
| ICamera & | operator= (const ICamera &)=delete |
| ICamera (ICamera &&) noexcept=default | |
| ICamera & | operator= (ICamera &&) noexcept=default |
Base type for all objects that update the view/projection matrices.
|
protected |
ICamera complete constructor.
| normal | Normal vector of the camera. |
| aspectRatio | Aspect ratio of the camera. |
| fov | Field of view of the camera. |
| npd | Near plane distance of the camera. |
| fpd | Far plane distance of the camera. |
|
protecteddelete |
|
protecteddefaultnoexcept |
|
virtualdefault |
| Matrix4x4 Engine3DRadSpace.Objects.ICamera.GetProjectionMatrix | ( | ) |
|
pure virtual |
Calculates the projection matrix.
Implemented in Engine3DRadSpace.Objects.Camera.
|
virtual |
Calculates the viewing frustum from the view and projection matrices.
| Matrix4x4 Engine3DRadSpace.Objects.ICamera.GetViewMatrix | ( | ) |
|
pure virtualnoexcept |
Calculates the view matrix.
Implemented in Engine3DRadSpace.Objects.Camera, and Engine3DRadSpace.Physics::Objects::FPCharacter.
| float Engine3DRadSpace.Objects.ICamera.AspectRatio |
Aspect ratio of the camera (width / height).
| float Engine3DRadSpace.Objects.ICamera.FarPlaneDistance |
Maximum rendering distance.
| float Engine3DRadSpace.Objects.ICamera.FieldOfView |
Field of view in radians.
| float Engine3DRadSpace.Objects.ICamera.NearPlaneDistance |
Minimal rendering distance.
| Math::Vector3 Engine3DRadSpace.Objects.ICamera.Normal |
Normal vector of the camera.