3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Objects.ICamera Class Referenceabstract

Base type for all objects that update the view/projection matrices. More...

#include <ICamera.hpp>

Inheritance diagram for Engine3DRadSpace.Objects.ICamera:

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

Detailed Description

Base type for all objects that update the view/projection matrices.

Constructor & Destructor Documentation

◆ ICamera() [1/3]

ICamera::ICamera ( const Math::Vector3 & normal,
float aspectRatio,
float fov,
float npd,
float fpd )
protected

ICamera complete constructor.

Parameters
normalNormal vector of the camera.
aspectRatioAspect ratio of the camera.
fovField of view of the camera.
npdNear plane distance of the camera.
fpdFar plane distance of the camera.

◆ ICamera() [2/3]

Engine3DRadSpace.Objects.ICamera.ICamera ( const ICamera & )
protecteddelete

◆ ICamera() [3/3]

Engine3DRadSpace.Objects.ICamera.ICamera ( ICamera && )
protecteddefaultnoexcept

◆ ~ICamera()

virtual Engine3DRadSpace.Objects.ICamera.~ICamera ( )
virtualdefault

Member Function Documentation

◆ GetProjectionMatrix() [1/2]

Matrix4x4 Engine3DRadSpace.Objects.ICamera.GetProjectionMatrix ( )

◆ GetProjectionMatrix() [2/2]

Calculates the projection matrix.

Returns
The projection matrix.

Implemented in Engine3DRadSpace.Objects.Camera.

◆ GetViewingFrustum()

ViewingFrustum ICamera::GetViewingFrustum ( ) const
virtual

Calculates the viewing frustum from the view and projection matrices.

Returns
The viewing frustum.

◆ GetViewMatrix() [1/2]

Matrix4x4 Engine3DRadSpace.Objects.ICamera.GetViewMatrix ( )

◆ GetViewMatrix() [2/2]

virtual Math::Matrix4x4 Engine3DRadSpace.Objects.ICamera.GetViewMatrix ( ) const
pure virtualnoexcept

Calculates the view matrix.

Returns
The view matrix.

Implemented in Engine3DRadSpace.Objects.Camera, and Engine3DRadSpace.Physics::Objects::FPCharacter.

◆ operator=() [1/2]

ICamera & Engine3DRadSpace.Objects.ICamera.operator= ( const ICamera & )
protecteddelete

◆ operator=() [2/2]

ICamera & Engine3DRadSpace.Objects.ICamera.operator= ( ICamera && )
protecteddefaultnoexcept

Member Data Documentation

◆ AspectRatio

float Engine3DRadSpace.Objects.ICamera.AspectRatio

Aspect ratio of the camera (width / height).

◆ FarPlaneDistance

float Engine3DRadSpace.Objects.ICamera.FarPlaneDistance

Maximum rendering distance.

◆ FieldOfView

float Engine3DRadSpace.Objects.ICamera.FieldOfView

Field of view in radians.

◆ NearPlaneDistance

float Engine3DRadSpace.Objects.ICamera.NearPlaneDistance

Minimal rendering distance.

◆ Normal

Math::Vector3 Engine3DRadSpace.Objects.ICamera.Normal

Normal vector of the camera.


The documentation for this class was generated from the following files: