3 #ifndef GDK_GFX_ENTITY_H 4 #define GDK_GFX_ENTITY_H 6 #include <gdk/graphics_types.h> 18 virtual void hide() = 0;
21 virtual void show() = 0;
28 const graphics_quaternion_type &aRotation,
29 const graphics_vector3_type &aScale = graphics_vector3_type::One) = 0;
35 virtual void set_model(
const std::shared_ptr<model> a) = 0;
represents an observable 3d object.
Definition: entity.h:14
virtual ~entity()=default
dtor
virtual void set_model(const std::shared_ptr< model > a)=0
set the model
virtual void show()=0
allow this entity to be drawn
virtual bool isHidden() const =0
check if the entity is hidden
virtual void set_model_matrix(const graphics_vector3_type &aWorldPos, const graphics_quaternion_type &aRotation, const graphics_vector3_type &aScale=graphics_vector3_type::One)=0
sets the model matrix using a vec3 position, quat rotation, vec3 scale
virtual void hide()=0
do not allow this entity to be drawn