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
MeshLoader.hpp
Go to the documentation of this file.
1 #ifndef RADIX_MESHLOADER_HPP
2 #define RADIX_MESHLOADER_HPP
3 
4 #include <string>
5 #include <map>
6 
8 
9 struct aiMesh;
10 
11 namespace radix {
12 class Entity;
13 
14 class MeshLoader {
15 public:
16  static Mesh& getMesh(const std::string &path);
17  static Mesh getPortalBox(const Entity &wall);
18  static Mesh getSubPlane(int x, int y, int width, int height, int w, int h);
19 private:
20  static Mesh uploadMesh(const aiMesh *mesh);
21  static std::map<std::string, Mesh> meshCache;
22 };
23 
24 } /* namespace radix */
25 
26 #endif /* RADIX_MESHLOADER_HPP */
Definition: GameController.hpp:7
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
static std::map< std::string, Mesh > meshCache
Definition: MeshLoader.hpp:21
Definition: MeshLoader.hpp:14
static Mesh uploadMesh(const aiMesh *mesh)
Definition: MeshLoader.cpp:33
Definition: Mesh.hpp:10
static Mesh & getMesh(const std::string &path)
Definition: MeshLoader.cpp:18
static Mesh getSubPlane(int x, int y, int width, int height, int w, int h)
Definition: MeshLoader.cpp:295
static Mesh getPortalBox(const Entity &wall)
Definition: MeshLoader.cpp:151