Lugdunum  0.1.0
Public Member Functions | Protected Attributes | List of all members
lug::Graphics::Loader Class Referenceabstract

Class for loading a type of file. More...

#include <Loader.hpp>

Inheritance diagram for lug::Graphics::Loader:
[legend]
Collaboration diagram for lug::Graphics::Loader:
[legend]

Public Member Functions

 Loader (Renderer &renderer)
 
 Loader (const Loader &)=delete
 
 Loader (Loader &&)=delete
 
Loaderoperator= (const Loader &)=delete
 
Loaderoperator= (Loader &&)=delete
 
virtual ~Loader ()=default
 
virtual Resource::SharedPtr< ResourceloadFile (const std::string &filename)=0
 Loads a Resource from a file. More...
 

Protected Attributes

Renderer_renderer
 

Detailed Description

Class for loading a type of file.

Definition at line 16 of file Loader.hpp.

Constructor & Destructor Documentation

◆ Loader() [1/3]

lug::Graphics::Loader::Loader ( Renderer renderer)

Definition at line 7 of file Loader.cpp.

◆ Loader() [2/3]

lug::Graphics::Loader::Loader ( const Loader )
delete

◆ Loader() [3/3]

lug::Graphics::Loader::Loader ( Loader &&  )
delete

◆ ~Loader()

virtual lug::Graphics::Loader::~Loader ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

Loader& lug::Graphics::Loader::operator= ( const Loader )
delete

◆ operator=() [2/2]

Loader& lug::Graphics::Loader::operator= ( Loader &&  )
delete

◆ loadFile()

virtual Resource::SharedPtr<Resource> lug::Graphics::Loader::loadFile ( const std::string &  filename)
pure virtual

Loads a Resource from a file.

Parameters
[in]filenameThe filename.
Returns
The resource.

Implemented in lug::Graphics::GltfLoader.

Member Data Documentation

◆ _renderer

Renderer& lug::Graphics::Loader::_renderer
protected

Definition at line 36 of file Loader.hpp.


The documentation for this class was generated from the following files: