A main MEP::Drawable cointainer.
More...
#include <ResourceManager.h>
A main MEP::Drawable cointainer.
Resources class is a utility which is meant to be working with all of the MEP::Drawable objects.
◆ Resources()
| MEP::Resources::Resources |
( |
const std::string & |
path | ) |
|
|
inline |
Constructor of the resources.
- Parameters
-
| [in] | path | : Path of the resource folder. |
◆ ~Resources()
| virtual MEP::Resources::~Resources |
( |
| ) |
|
|
inlinevirtual |
◆ deleteFont()
| void MEP::Resources::deleteFont |
( |
const U_int32 |
ID, |
|
|
const U_int32 |
group = -1 |
|
) |
| |
|
inline |
Deletes sf::Font with agiven name.
- Parameters
-
| [in] | name | : ID of a sf::Font |
| [in] | group | : Group of a sf::Font. |
◆ deleteFontGroup()
| void MEP::Resources::deleteFontGroup |
( |
const U_int32 |
group | ) |
|
|
inline |
Deletes sf::Font(s) within a given group.
- Parameters
-
| [in] | group | : Group of a sf::Font. |
◆ deleteObject()
| void MEP::Resources::deleteObject |
( |
const U_int32 |
ID, |
|
|
const U_int32 |
group = -1 |
|
) |
| |
|
inline |
◆ deleteObjectsGroup()
| void MEP::Resources::deleteObjectsGroup |
( |
const U_int32 |
group | ) |
|
|
inline |
◆ get()
template<typename T >
| T & MEP::Resources::get |
( |
const U_int32 |
ID, |
|
|
const U_int32 |
group = -1 |
|
) |
| |
|
inline |
Outputs the Type. if MEP::Objects outputs object. if sf::Font outputs font.
- Parameters
-
◆ getFont()
| sf::Font & MEP::Resources::getFont |
( |
const U_int32 |
ID, |
|
|
const U_int32 |
group = -1 |
|
) |
| |
|
inline |
Outputs the font.
- Parameters
-
◆ getObject()
◆ initResources()
template<typename ... Values>
| void MEP::Resources::initResources |
( |
Values &&... |
values | ) |
|
|
inline |
Initialization of the resources.
- Parameters
-
| [in] | values | : Inputs ... number of MEP::Resources::Resource. |
◆ isLoaded()
| bool MEP::Resources::isLoaded |
( |
| ) |
const |
|
inline |
Outputs the status of the resources.