GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MeshDrawable.hpp
Go to the documentation of this file.
1 #ifndef RADIX_COMPONENT_MESHDRAWABLE_HPP
2 #define RADIX_COMPONENT_MESHDRAWABLE_HPP
3 
7 
8 namespace radix {
9 
10 class MeshDrawable : public Component {
11 public:
13  // TODO: MaterialDrawable?
15 
17  Component(ent) {}
18 
19  const char* getName() const {
20  return "MeshDrawable";
21  }
22 
23  TypeId getTypeId() const {
24  return Component::getTypeId<std::remove_reference<decltype(*this)>::type>();
25  }
26 
27  void serialize(serine::Archiver &ar) {
29  }
30 };
31 
32 } /* namespace radix */
33 
34 #endif /* RADIX_COMPONENT_MESHDRAWABLE_HPP */
Definition: GameController.hpp:7
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
Base class to create entity components.
Definition: Component.hpp:25
ComponentTypeId TypeId
Definition: Component.hpp:35
MeshDrawable(Entity &ent)
Definition: MeshDrawable.hpp:16
TypeId getTypeId() const
Definition: MeshDrawable.hpp:23
const char * getName() const
Definition: MeshDrawable.hpp:19
Mesh mesh
Definition: MeshDrawable.hpp:12
Definition: Mesh.hpp:10
void serialize(serine::Archiver &ar)
Definition: MeshDrawable.hpp:27
Material material
Definition: MeshDrawable.hpp:14
Definition: MeshDrawable.hpp:10
Definition: Material.hpp:11