Lugdunum  0.1.0
Resource.cpp
Go to the documentation of this file.
2 
3 namespace lug {
4 namespace Graphics {
5 
6 Resource::Resource(Resource::Type type, const std::string& name) {
7  _handle.type = static_cast<uint8_t>(type);
8  _handle.index = 0;
9  _name = name;
10 }
11 
12 } // Graphics
13 } // lug
Resource(Type type, const std::string &name)
Definition: Resource.cpp:6
Type
Type of the resource.
Definition: Resource.hpp:24
uint32_t type
Type of the ressource.
Definition: Resource.hpp:44
uint32_t index
Index of the Resource in the ResourceManager&#39;s internal storage.
Definition: Resource.hpp:45