Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Sprite.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Air-Trap
4** File description:
5** Sprite
6*/
7
8#pragma once
9
10#include <cstdint>
11#include <string>
12
14{
21 struct Sprite {
22 std::string texturePath{"0"};
24 int rectLeft{0};
25 int rectTop{0};
26 int rectWidth{0};
27 int rectHeight{0};
29 int zIndex{0};
31 std::uint8_t opacity{255};
32 std::uint8_t red{255};
33 std::uint8_t green{255};
34 std::uint8_t blue{255};
35 };
36} // namespace rtp::ecs::components
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition Ammo.hpp:13
Component representing a sprite.
Definition Sprite.hpp:21
std::string texturePath
Identifier for the texture resource.
Definition Sprite.hpp:22
std::uint8_t blue
Blue color component.
Definition Sprite.hpp:34
int rectLeft
Left position of the texture rectangle.
Definition Sprite.hpp:24
int rectHeight
Height of the texture rectangle.
Definition Sprite.hpp:27
std::uint8_t red
Red color component.
Definition Sprite.hpp:32
std::uint8_t opacity
Opacity of the sprite (0-255)
Definition Sprite.hpp:31
std::uint8_t green
Green color component.
Definition Sprite.hpp:33
int rectTop
Top position of the texture rectangle.
Definition Sprite.hpp:25
int zIndex
Z-index for rendering order.
Definition Sprite.hpp:29
int rectWidth
Width of the texture rectangle.
Definition Sprite.hpp:26