R-Type
TextureComponent.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** R-Type
4 ** File description:
5 ** Texture
6 */
7 
8 #ifndef TEXTURE_HPP_
9 #define TEXTURE_HPP_
10 #include "utils/Vector.hpp"
11 #include "utils/SfmlTypes.hpp"
12 
13 namespace GameEngine
14 {
16  {
17  std::string path;
19  bool animated;
21  std::vector<Rect<int>> textureRects;
23  bool isRendered;
24  float lastUpdate;
25  size_t animeid;
26  size_t renderLayer;
27  };
28 } // namespace GameEngine
29 
30 #endif /* !TEXTURE_HPP_ */
Class representing a sprite wrapper for sf::Sprite with additional functionality.
Definition: SfmlTypes.hpp:311
Definition: AssetManager.hpp:15
Definition: TextureComponent.hpp:16
size_t renderLayer
Definition: TextureComponent.hpp:26
bool animated
Definition: TextureComponent.hpp:19
float animationSpeed
Definition: TextureComponent.hpp:22
Sprite sprite
Definition: TextureComponent.hpp:18
std::vector< Rect< int > > textureRects
Definition: TextureComponent.hpp:21
float lastUpdate
Definition: TextureComponent.hpp:24
Rect< int > textureSize
Definition: TextureComponent.hpp:20
size_t animeid
Definition: TextureComponent.hpp:25
std::string path
Definition: TextureComponent.hpp:17
bool isRendered
Definition: TextureComponent.hpp:23