Lugdunum  0.1.0
Loader.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
7 
8 namespace lug {
9 namespace Graphics {
10 
11 class Renderer;
12 
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:
37 };
38 
39 } // Graphics
40 } // lug
Class for loading a type of file.
Definition: Loader.hpp:16
#define LUG_GRAPHICS_API
Definition: Export.hpp:11
Dummy class for a shared pointer.
Definition: Resource.hpp:66
Renderer & _renderer
Definition: Loader.hpp:36