|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Component representing a sprite. More...
#include <Sprite.hpp>
Public Attributes | |
| std::string | texturePath {"0"} |
| Identifier for the texture resource. | |
| int | rectLeft {0} |
| Left position of the texture rectangle. | |
| int | rectTop {0} |
| Top position of the texture rectangle. | |
| int | rectWidth {0} |
| Width of the texture rectangle. | |
| int | rectHeight {0} |
| Height of the texture rectangle. | |
| int | zIndex {0} |
| Z-index for rendering order. | |
| std::uint8_t | opacity {255} |
| Opacity of the sprite (0-255) | |
| std::uint8_t | red {255} |
| Red color component. | |
| std::uint8_t | green {255} |
| Green color component. | |
| std::uint8_t | blue {255} |
| Blue color component. | |
Component representing a sprite.
Definition at line 21 of file Sprite.hpp.
| std::uint8_t rtp::ecs::components::Sprite::blue {255} |
Blue color component.
Definition at line 34 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef().
| std::uint8_t rtp::ecs::components::Sprite::green {255} |
Green color component.
Definition at line 33 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef().
| std::uint8_t rtp::ecs::components::Sprite::opacity {255} |
Opacity of the sprite (0-255)
Definition at line 31 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeParallax().
| int rtp::ecs::components::Sprite::rectHeight {0} |
Height of the texture rectangle.
Definition at line 27 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef(), and rtp::client::EntityTemplate::makeParallax().
| int rtp::ecs::components::Sprite::rectLeft {0} |
Left position of the texture rectangle.
Definition at line 24 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef(), and rtp::client::EntityTemplate::makeParallax().
| int rtp::ecs::components::Sprite::rectTop {0} |
Top position of the texture rectangle.
Definition at line 25 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef(), and rtp::client::EntityTemplate::makeParallax().
| int rtp::ecs::components::Sprite::rectWidth {0} |
Width of the texture rectangle.
Definition at line 26 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef(), and rtp::client::EntityTemplate::makeParallax().
| std::uint8_t rtp::ecs::components::Sprite::red {255} |
Red color component.
Definition at line 32 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef(), and rtp::client::EntityTemplate::makeParallax().
| std::string rtp::ecs::components::Sprite::texturePath {"0"} |
Identifier for the texture resource.
Definition at line 22 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef(), rtp::client::EntityTemplate::makeParallax(), and rtp::client::RenderSystem::update().
| int rtp::ecs::components::Sprite::zIndex {0} |
Z-index for rendering order.
Definition at line 29 of file Sprite.hpp.
Referenced by rtp::client::EntityTemplate::makeFromDef(), and rtp::client::EntityTemplate::makeParallax().