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
ViewFrame.hpp
Go to the documentation of this file.
1 #ifndef RADIX_COMPONENT_VIEW_FRAME_HPP
2 #define RADIX_COMPONENT_VIEW_FRAME_HPP
3 
6 #include <radix/Camera.hpp>
7 
8 namespace radix {
9 
10 class ViewFrame : public Component {
11 public:
14 
15  ViewFrame(Entity &ent) :
16  Component(ent) {}
17 
18  const char* getName() const {
19  return "ViewFrame";
20  }
21 
22  TypeId getTypeId() const {
23  return Component::getTypeId<std::remove_reference<decltype(*this)>::type>();
24  }
25 
26  void serialize(serine::Archiver &ar) {
28  }
29 };
30 
31 } /* namespace radix */
32 
33 #endif /* RADIX_COMPONENT_VIEW_FRAME_HPP */
Mesh mesh
Definition: ViewFrame.hpp:12
Definition: GameController.hpp:7
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
Camera view
Definition: ViewFrame.hpp:13
const char * getName() const
Definition: ViewFrame.hpp:18
Base class to create entity components.
Definition: Component.hpp:25
Definition: ViewFrame.hpp:10
Definition: Camera.hpp:11
TypeId getTypeId() const
Definition: ViewFrame.hpp:22
void serialize(serine::Archiver &ar)
Definition: ViewFrame.hpp:26
ComponentTypeId TypeId
Definition: Component.hpp:35
ViewFrame(Entity &ent)
Definition: ViewFrame.hpp:15
Definition: Mesh.hpp:10