NasNas
An intuitive and beginner friendly 2D game framework for C++
Public Member Functions | List of all members
ns::ecs::ShapeComponent< T > Class Template Reference
Inheritance diagram for ns::ecs::ShapeComponent< T >:
ns::ecs::GraphicsComponent

Public Member Functions

 ShapeComponent (const T &shape, const sf::Vector2f &pos_offset={0, 0})
 
auto getDrawable () -> T &override
 
auto getGlobalBounds () -> ns::FloatRect override
 
void update () override
 

Additional Inherited Members

- Protected Attributes inherited from ns::ecs::GraphicsComponent
sf::Transform m_transform
 

Detailed Description

template<typename T>
class ns::ecs::ShapeComponent< T >

Definition at line 16 of file ShapeComponent.hpp.


The documentation for this class was generated from the following file: