![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <sprite_pass.hpp>
Public Member Functions | |
SpritePass (ID3D11Device &device, ID3D11DeviceContext &device_context, StateManager &state_manager, ResourceManager &resource_manager) | |
SpritePass (const SpritePass &pass)=delete | |
SpritePass (SpritePass &&pass) noexcept | |
~SpritePass () | |
SpritePass & | operator= (const SpritePass &pass)=delete |
SpritePass & | operator= (SpritePass &&pass) noexcept |
void | Render (const World &world) |
Private Member Functions | |
void | BindFixedState () const noexcept |
Private Attributes | |
std::reference_wrapper< ID3D11DeviceContext > | m_device_context |
std::reference_wrapper< StateManager > | m_state_manager |
VertexShaderPtr | m_vs |
PixelShaderPtr | m_ps |
SpriteBatch | m_sprite_batch |
A class of sprite passes for rendering sprites.
|
explicit |
Constructs a sprite pass.
[in,out] | device | A reference to the device. |
[in,out] | device_context | A reference to the device context. |
[in,out] | state_manager | A reference to the state manager. |
[in,out] | resource_manager | A reference to the resource manager. |
|
delete |
Constructs a sprite pass from the given sprite pass.
[in] | pass | A reference to the sprite pass to copy. |
|
defaultnoexcept |
Constructs a sprite pass by moving the given sprite pass.
[in] | pass | A reference to the sprite pass to move. |
|
default |
Destructs this sprite pass.
|
privatenoexcept |
Binds the fixed state of this sprite pass.
|
delete |
Copies the given sprite pass to this sprite pass.
[in] | pass | A reference to the sprite pass to copy. |
|
defaultnoexcept |
Moves the given sprite pass to this sprite pass.
[in] | pass | A reference to the sprite pass to move. |
void mage::rendering::SpritePass::Render | ( | const World & | world | ) |
Renders the world.
[in] | world | A reference to the world. |
Exception | Failed to render the world. |
|
private |
A reference to the device context of this sprite pass.
|
private |
A pointer to the pixel shader of this sprite pass.
|
private |
The sprite batch of this sprite pass.
|
private |
A reference to the state manager of this sprite pass.
|
private |
A pointer to the vertex shader of this sprite pass.