|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration options for a sprite in a SpriteAtlas. More...
#include <GREM/graphics/SpriteAtlas.hpp>
Public Types | |
| enum | FlipAxis : Flip { NO_FLIP = 0 , FLIP_HORIZONTALLY = 1 << 0 , FLIP_VERTICALLY = 1 << 1 } |
| Flag values for Flip that describe how a sprite is flipped when rendered. More... | |
| using | Flip = uint8_t |
| Flags that describe how a sprite is flipped when rendered. | |
Public Member Functions | |
| bool | operator== (const SpriteOptions &other) const =default |
| Compare this set of options to another set for equality. | |
Public Attributes | |
| Flip | flip = NO_FLIP |
| Flags that describe how the sprite should be flipped when rendered. | |
| bool | convertToPremultipliedAlpha = true |
| Convert the inserted sprite image from straight to pre-multiplied alpha. | |
Configuration options for a sprite in a SpriteAtlas.
| using grem::graphics::SpriteOptions::Flip = uint8_t |
Flags that describe how a sprite is flipped when rendered.
|
nodiscarddefault |
Compare this set of options to another set for equality.
| other | the options to compare these to. |
Flags that describe how the sprite should be flipped when rendered.
| bool grem::graphics::SpriteOptions::convertToPremultipliedAlpha = true |
Convert the inserted sprite image from straight to pre-multiplied alpha.