![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <sprite_image.hpp>
Public Member Functions | |
SpriteImage () noexcept | |
SpriteImage (const SpriteImage &sprite) noexcept | |
SpriteImage (SpriteImage &&sprite) noexcept | |
virtual | ~SpriteImage () |
SpriteImage & | operator= (const SpriteImage &sprite) noexcept |
SpriteImage & | operator= (SpriteImage &&sprite) noexcept |
void | Draw (SpriteBatch &sprite_batch) const |
SpriteTransform2D & | GetSpriteTransform () noexcept |
const SpriteTransform2D & | GetSpriteTransform () const noexcept |
SpriteEffect | GetSpriteEffects () const noexcept |
void | SetSpriteEffects (SpriteEffect sprite_effects) noexcept |
RGBA & | GetBaseColor () noexcept |
const RGBA & | GetBaseColor () const noexcept |
const RECT | GetBaseColorTextureRegion () const noexcept |
bool | HasMaximumBaseColorTextureRegion () const noexcept |
void | SetMaximumBaseColorTextureRegion () noexcept |
void | SetBaseColorTextureRegion (RECT texture_region) noexcept |
TexturePtr | GetBaseColorTexture () const noexcept |
ID3D11ShaderResourceView * | GetBaseColorSRV () const noexcept |
void | SetBaseColorTexture (TexturePtr base_color_texture) 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 | |
SpriteTransform2D | m_sprite_transform |
SpriteEffect | m_sprite_effects |
RGBA | m_base_color |
RECT | m_base_color_texture_region |
TexturePtr | m_base_color_texture |
Additional Inherited Members | |
![]() | |
Component () noexcept | |
Component (const Component &component) noexcept | |
Component (Component &&component) noexcept | |
A class of sprite images.
|
noexcept |
Constructs a sprite image.
|
defaultnoexcept |
Constructs a sprite image from the given sprite image.
[in] | sprite | A reference to the sprite image to copy. |
|
defaultnoexcept |
Constructs a sprite image by moving the given sprite image.
[in] | sprite | A reference to the sprite image to move. |
|
virtualdefault |
Destruct this sprite image.
void mage::rendering::SpriteImage::Draw | ( | SpriteBatch & | sprite_batch | ) | const |
Draws this sprite image.
[in,out] | sprite_batch | A reference to the sprite batch used for rendering this sprite image. |
|
noexcept |
Returns the (linear) base color of this sprite image.
|
noexcept |
Returns the (linear) base color of this sprite image.
|
noexcept |
Returns the shader resource view of the base color texture of this sprite image.
nullptr
, if this sprite image has no base color texture.
|
noexcept |
Returns the base color texture of this sprite image.
|
noexcept |
Returns the base color texture region of this sprite image.
|
noexcept |
Returns the sprite effects of this sprite image.
|
noexcept |
Returns the sprite transform of this sprite image.
|
noexcept |
Returns the sprite transform of this sprite image.
|
noexcept |
Checks whether the base color texture region of this sprite image corresponds to the maximum texture region.
true
if the base color texture region of this sprite image corresponds to the maximum texture region. false
otherwise.
|
defaultnoexcept |
Copies the given sprite image to this sprite image.
[in] | sprite | A reference to the sprite image to copy. |
|
defaultnoexcept |
Moves the given sprite image to this sprite image.
[in] | sprite | A reference to the sprite image to move. |
|
noexcept |
Sets the base color texture of this sprite image to the given base color texture.
[in] | base_color_texture | A pointer to the base color texture. |
|
noexcept |
Sets the base color texture region of this sprite image to the given texture region.
[in] | texture_region | The texture region. |
|
noexcept |
Sets the base color texture region of this sprite image to the maximum texture region.
|
noexcept |
Sets the sprite effects of this sprite image to the given sprite effects.
[in] | sprite_effects | The sprite effects. |
|
private |
The (linear) base color of this sprite image.
|
private |
A pointer to the base color texture of this sprite image.
|
private |
A pointer to the base color texture region of this sprite image.
If every member variable of the rectangle is zero, the full texture region is considered.
|
private |
The sprite effects of this sprite image.
|
private |
The sprite transform of this sprite image.