Lugdunum
0.1.0
include
lug
Graphics
Loader.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include <
lug/Graphics/Export.hpp
>
6
#include <
lug/Graphics/Resource.hpp
>
7
8
namespace
lug
{
9
namespace
Graphics {
10
11
class
Renderer;
12
16
class
LUG_GRAPHICS_API
Loader
{
17
public
:
18
Loader
(
Renderer
& renderer);
19
20
Loader
(
const
Loader
&) =
delete
;
21
Loader
(
Loader
&&) =
delete
;
22
23
Loader
& operator=(
const
Loader
&) =
delete
;
24
Loader
& operator=(
Loader
&&) =
delete
;
25
26
virtual
~
Loader
() =
default
;
27
33
virtual
Resource::SharedPtr<Resource>
loadFile(
const
std::string& filename) = 0;
34
35
protected
:
36
Renderer
&
_renderer
;
37
};
38
39
}
// Graphics
40
}
// lug
lug::Graphics::Loader
Class for loading a type of file.
Definition:
Loader.hpp:16
LUG_GRAPHICS_API
#define LUG_GRAPHICS_API
Definition:
Export.hpp:11
lug::Graphics::Resource::SharedPtr
Dummy class for a shared pointer.
Definition:
Resource.hpp:66
Resource.hpp
lug::Graphics::Renderer
Definition:
Renderer.hpp:18
lug
Definition:
Application.hpp:11
Export.hpp
lug::Graphics::Loader::_renderer
Renderer & _renderer
Definition:
Loader.hpp:36
Generated by
1.8.13