NasNas
An intuitive and beginner friendly 2D game framework for C++
TransformComponent.hpp
1 // Created by Modar Nasser on 06/02/2021.
2 
3 #pragma once
4 
5 #include <SFML/Graphics/Transformable.hpp>
6 
7 namespace ns::ecs {
8 
9  class TransformComponent : public sf::Transformable {
10  public:
11  TransformComponent() = default;
12 
13  void setPositionX(float x);
14  void setPositionY(float y);
15 
16  void setScaleX(float x);
17  void setScaleY(float y);
18  };
19 
21 
22 }