My Project
CRect.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** CRect
6 */
7 
8 #ifndef CRECT_HPP_
9  #define CRECT_HPP_
10 
14 namespace component {
18  struct crect_t {
19  float x;
20  float y;
21  float width;
22  float height;
24  int nb_frames;
25  };
26 }
27 #endif /* !CRECT_HPP_ */
component::crect_t::width
float width
width of the rect of the entity
Definition: CRect.hpp:20
component::crect_t::nb_frames
int nb_frames
Number of frame in the rectangle.
Definition: CRect.hpp:24
component::crect_t::x
float x
Position x inside the rectangle.
Definition: CRect.hpp:19
component::crect_t::height
float height
height of the rect of the entity
Definition: CRect.hpp:19
component::crect_t::current_frame
int current_frame
Current frame in the rectangle.
Definition: CRect.hpp:23
component
Namespace for all components.
Definition: CDamage.hpp:14
component::crect_t::y
float y
Position y inside the rectangle.
Definition: CRect.hpp:20