|
R-Type 0.1
|
Everything the renderer needs to draw one sprite. More...
#include <systems/RenderConcept.hpp>
Public Attributes | |
| utils::vec2 | position |
| Screen position, in pixels. | |
| utils::vec2 | scale {1.f, 1.f} |
| Scale factor on each axis. | |
| utils::vec2 | size |
| Size before scaling, in pixels. | |
| utils::vec2 | origin |
| Pivot point, relative to the sprite. | |
| TextureRectU16 | textureRect {} |
| Area of the texture to draw. | |
| ColorRGBA8 | color {} |
| Color multiplied with the texture. | |
| float | rotation {0.f} |
| Rotation in radians. | |
| uint32_t | textureId {0} |
| Texture handle returned by the window. | |
| int32_t | layer {0} |
| Draw order, higher layers are drawn on top. | |
| uint32_t | flags {0} |
| Bit 0 flips horizontally, bit 1 vertically. | |
| uint32_t | reserved {0} |
| Unused, keeps the layout aligned. | |
Everything the renderer needs to draw one sprite.
The layout matches the sprite type of the graphical library so that both can be converted with std::bit_cast.