![]()  | 
  
    MAGE
    v0.171.0
    
   Matthias Advanced Game Engine 
   | 
 
#include <camera.hpp>
  
 Public Member Functions | |
| virtual | ~Camera () | 
| Camera & | operator= (const Camera &camera)=delete | 
| Camera & | operator= (Camera &&camera) noexcept | 
| const F32x2 | GetClippingPlanes () const noexcept | 
| void | SetClippingPlanes (F32x2 clipping_planes) noexcept | 
| virtual const XMMATRIX XM_CALLCONV | GetCameraToProjectionMatrix () const noexcept=0 | 
| virtual const XMMATRIX XM_CALLCONV | GetProjectionToCameraMatrix () const noexcept=0 | 
| 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 | 
  Public Member Functions inherited from mage::Component | |
| 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 | 
Protected Member Functions | |
| Camera (ID3D11Device &device) | |
| Camera (const Camera &camera)=delete | |
| Camera (Camera &&camera) noexcept | |
  Protected Member Functions inherited from mage::Component | |
| Component () noexcept | |
| Component (const Component &component) noexcept | |
| Component (Component &&component) noexcept | |
Private Attributes | |
| ConstantBuffer< CameraBuffer > | m_buffer | 
| F32x2 | m_clipping_planes | 
| CameraLens | m_lens | 
| Viewport | m_viewport | 
| CameraSettings | m_settings | 
A class of cameras.
      
  | 
  virtualdefault | 
Destructs this camera.
      
  | 
  explicitprotected | 
Constructs a camera.
| [in,out] | device | A reference to the device. | 
      
  | 
  protecteddelete | 
Constructs a camera from the given camera.
| [in] | camera | A reference to the camera to copy. | 
      
  | 
  protecteddefaultnoexcept | 
Constructs a camera by moving the given camera.
| [in] | camera | A reference to the camera to move. | 
      
  | 
  noexcept | 
Binds the buffer of this camera to the given pipeline stage.
| PipelineStageT | The pipeline stage type. | 
| [in,out] | device_context | A reference to the device context. | 
| [in] | slot | The index into the device's zero-based array to set the constant buffer to (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1).  | 
      
  | 
  pure virtualnoexcept | 
Returns the camera-to-projection matrix of this camera.
Implemented in mage::rendering::PerspectiveCamera, and mage::rendering::OrthographicCamera.
      
  | 
  noexcept | 
Returns the clipping planes of this camera expressed in camera space.
      
  | 
  noexcept | 
Returns the lens of this camera.
      
  | 
  noexcept | 
Returns the lens of this camera.
      
  | 
  pure virtualnoexcept | 
Returns the projection-to-camera matrix of this camera.
Implemented in mage::rendering::PerspectiveCamera, and mage::rendering::OrthographicCamera.
      
  | 
  noexcept | 
Returns the settings of this camera.
      
  | 
  noexcept | 
Returns the settings of this camera.
      
  | 
  noexcept | 
Returns the viewport of this camera.
      
  | 
  noexcept | 
Returns the viewport of this camera.
Copies the given camera to this camera.
| [in] | camera | A reference to the camera to copy. | 
Moves the given camera to this camera.
| [in] | camera | A reference to the camera to move. | 
      
  | 
  noexcept | 
Sets the clipping planes of this camera expressed in camera space to the given clipping planes.
| [in] | clipping_planes | The clipping planes. | 
| void mage::rendering::Camera::UpdateBuffer | ( | ID3D11DeviceContext & | device_context, | 
| AntiAliasing | aa | ||
| ) | const | 
Updates the buffer of this camera.
| [in,out] | device_context | A reference to the device context. | 
| [in] | aa | The anti-aliasing mode. | 
      
  | 
  mutableprivate | 
The buffer of this camera.
      
  | 
  private | 
The clipping planes of this camera expressed in camera space.
      
  | 
  private | 
The lens of this camera.
      
  | 
  private | 
The settings of this camera.
      
  | 
  private | 
The viewport of this camera.