Resources.hpp
1 #include <cpp3ds/Config.hpp>
2 #include <map>
3 
4 namespace cpp3ds {
5  namespace priv {
6 
7  struct ResourceInfo {
8  ResourceInfo() : data(nullptr), size(0) { }
9  ResourceInfo(const Uint8 *x, const Uint32 y) : data(x), size(y) { }
10  const Uint8 *data;
11  const Uint32 size;
12  };
13 
14  // Defined by source file generated by res_compile.py
15  extern std::map<std::string, ResourceInfo> core_resources;
16 
17  } // namespace priv
18 } // namespace cpp3ds