![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <renderer.hpp>
Classes | |
class | Impl |
Public Member Functions | |
Renderer (ID3D11Device &device, ID3D11DeviceContext &device_context, DisplayConfiguration &display_configuration, SwapChain &swap_chain, ResourceManager &resource_manager) | |
Renderer (const Renderer &renderer)=delete | |
Renderer (Renderer &&renderer) noexcept | |
~Renderer () | |
Renderer & | operator= (const Renderer &renderer)=delete |
Renderer & | operator= (Renderer &&renderer) noexcept |
void | BindPersistentState () |
void | Render (const World &world, const GameTime &time) |
Private Attributes | |
UniquePtr< Impl > | m_impl |
A class of renderers.
|
explicit |
Constructs a renderer.
[in,out] | device | A reference to the device. |
[in,out] | device_context | A reference to the device context. |
[in,out] | display_configuration | A reference to the display configuration. |
[in,out] | swap_chain | A reference to the swap chain. |
[in,out] | resource_manager | A pointer to the resource manager. |
|
delete |
Constructs a renderer from the given renderer.
[in] | renderer | A reference to the renderer to copy. |
|
defaultnoexcept |
Constructs a renderer by moving the given renderer.
[in] | renderer | A reference to the renderer to move. |
|
default |
Destructs this renderer.
void mage::rendering::Renderer::BindPersistentState | ( | ) |
Binds the persistent state of this renderer.
Exception | Failed to bind the persistent state of this renderer. |
Copies the given renderer to this renderer.
[in] | renderer | A reference to the renderer to copy. |
Moves the given renderer to this renderer.
[in] | renderer | A reference to the renderer to move. |
Renders the given world.
[in] | world | A reference to the world. |
[in] | time | A reference to the game time. |
Exception | Failed to render the world. |