![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <perspective_camera.hpp>
Public Member Functions | |
PerspectiveCamera (ID3D11Device &device) | |
PerspectiveCamera (const PerspectiveCamera &camera)=delete | |
PerspectiveCamera (PerspectiveCamera &&camera) noexcept | |
virtual | ~PerspectiveCamera () |
PerspectiveCamera & | operator= (const PerspectiveCamera &camera)=delete |
PerspectiveCamera & | operator= (PerspectiveCamera &&camera) noexcept |
F32 | GetFOVX () const noexcept |
F32 | GetFOVY () const noexcept |
void | SetFOVY (F32 fov_y) noexcept |
F32 | GetAspectRatio () const noexcept |
void | SetAspectRatio (F32 aspect_ratio) noexcept |
void | SetAspectRatio (F32 width, F32 height) noexcept |
virtual const XMMATRIX XM_CALLCONV | GetCameraToProjectionMatrix () const noexcept override |
virtual const XMMATRIX XM_CALLCONV | GetProjectionToCameraMatrix () const noexcept override |
![]() | |
virtual | ~Camera () |
Camera & | operator= (const Camera &camera)=delete |
Camera & | operator= (Camera &&camera) noexcept |
const F32x2 | GetClippingPlanes () const noexcept |
void | SetClippingPlanes (F32x2 clipping_planes) noexcept |
CameraLens & | GetLens () noexcept |
const CameraLens & | GetLens () const noexcept |
Viewport & | GetViewport () noexcept |
const Viewport & | GetViewport () const noexcept |
CameraSettings & | GetSettings () noexcept |
const CameraSettings & | GetSettings () const noexcept |
void | UpdateBuffer (ID3D11DeviceContext &device_context, AntiAliasing aa) const |
template<typename PipelineStageT > | |
void | BindBuffer (ID3D11DeviceContext &device_context, U32 slot) const noexcept |
![]() | |
virtual | ~Component () |
Component & | operator= (const Component &component) noexcept |
Component & | operator= (Component &&component) noexcept |
State | GetState () const noexcept |
void | SetState (State state) noexcept |
U64 | GetGuid () const noexcept |
bool | HasOwner () const noexcept |
ProxyPtr< Node > | GetOwner () noexcept |
ProxyPtr< const Node > | GetOwner () const noexcept |
Private Attributes | |
F32 | m_aspect_ratio |
F32 | m_fov_y |
Additional Inherited Members | |
![]() | |
Camera (ID3D11Device &device) | |
Camera (const Camera &camera)=delete | |
Camera (Camera &&camera) noexcept | |
![]() | |
Component () noexcept | |
Component (const Component &component) noexcept | |
Component (Component &&component) noexcept | |
A class of perspective cameras.
|
explicit |
Constructs a perspective camera.
[in,out] | device | A reference to the device. |
|
delete |
Constructs a perspective camera from the given perspective camera.
[in] | camera | A reference to the perspective camera to copy. |
|
defaultnoexcept |
Constructs a perspective camera by moving the given perspective camera.
[in] | camera | A reference to the perspective camera to move. |
|
virtualdefault |
Destructs this perspective camera.
|
noexcept |
Returns the aspect ratio of this perspective camera.
|
overridevirtualnoexcept |
Returns the camera-to-projection matrix of this perspective camera.
Implements mage::rendering::Camera.
|
noexcept |
Returns the horizontal field-of-view of this perspective camera.
|
noexcept |
Returns the vertical field-of-view of this perspective camera.
|
overridevirtualnoexcept |
Returns the projection-to-camera matrix of this perspective camera.
Implements mage::rendering::Camera.
|
delete |
Copies the given perspective camera to this perspective camera.
[in] | camera | A reference to the perspective camera to copy. |
|
defaultnoexcept |
Moves the given perspective camera to this perspective camera.
[in] | camera | A reference to the perspective camera to move. |
|
noexcept |
Sets the aspect ratio of this perspective camera to the given value.
[in] | aspect_ratio | The aspect ratio. |
Sets the aspect ratio of this perspective camera.
[in] | width | The width. |
[in] | height | The height. |
|
noexcept |
Sets the vertical field-of-view of this perspective camera to the given value.
[in] | fov_y | The vertical field-of-view. |
|
private |
The aspect ratio of this perspective camera.
|
private |
The vertical field-of-view of this perspective camera.