Lugdunum
0.1.0
src
lug
Graphics
Resource.cpp
Go to the documentation of this file.
1
#include <
lug/Graphics/Resource.hpp
>
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
lug::Graphics::Resource::Resource
Resource(Type type, const std::string &name)
Definition:
Resource.cpp:6
Resource.hpp
lug::Graphics::Resource::_name
std::string _name
Definition:
Resource.hpp:193
lug
Definition:
Application.hpp:11
lug::Graphics::Resource::Type
Type
Type of the resource.
Definition:
Resource.hpp:24
lug::Graphics::Resource::_handle
Handle _handle
Definition:
Resource.hpp:196
lug::Graphics::Resource::Handle::type
uint32_t type
Type of the ressource.
Definition:
Resource.hpp:44
lug::Graphics::Resource::Handle::index
uint32_t index
Index of the Resource in the ResourceManager's internal storage.
Definition:
Resource.hpp:45
Generated by
1.8.13