|
Hymn to Beauty
C++ 3D Engine
|
A list of all the resources in a hymn. More...
#include <Resources.hpp>
Classes | |
| struct | Resource |
| A resource. More... | |
| struct | ResourceFolder |
| A folder containing resources. More... | |
Public Member Functions | |
| void | Save () const |
| Save all resources to file. More... | |
| Json::Value | ToJson () const |
| Creates a Json file for the resources. More... | |
| void | Load () |
| Load all resources from file. More... | |
| void | Clear () |
| Clear resources. More... | |
| void | Refresh () |
| Refresh resources. More... | |
| std::string | GetSavePath () const |
| Gets the path where it's saved. More... | |
Static Public Member Functions | |
| static Resource::Type | ExtensionToType (const std::string &extension) |
| Convert extension to type. More... | |
Public Attributes | |
| ResourceFolder | resourceFolder |
| Resources. More... | |
| std::string | activeScene |
| The name of the activeScene. More... | |
| unsigned int | sceneNumber = 0U |
| The id of the next scene to create. More... | |
| unsigned int | modelNumber = 0U |
| The id of the next model to create. More... | |
| unsigned int | textureNumber = 0U |
| The id of the next texture to create. More... | |
| unsigned int | scriptNumber = 0U |
| The id of the next script to create. More... | |
Friends | |
| ResourceList & | Resources () |
| Get the resource list. More... | |
A list of all the resources in a hymn.
| void ResourceList::Clear | ( | ) |
Clear resources.
|
static |
Convert extension to type.
| extension | The file extension. |
| std::string ResourceList::GetSavePath | ( | ) | const |
Gets the path where it's saved.
| void ResourceList::Load | ( | ) |
Load all resources from file.
| void ResourceList::Refresh | ( | ) |
Refresh resources.
| void ResourceList::Save | ( | ) | const |
Save all resources to file.
| Json::Value ResourceList::ToJson | ( | ) | const |
Creates a Json file for the resources.
|
friend |
Get the resource list.
| std::string ResourceList::activeScene |
The name of the activeScene.
| unsigned int ResourceList::modelNumber = 0U |
The id of the next model to create.
| ResourceFolder ResourceList::resourceFolder |
Resources.
| unsigned int ResourceList::sceneNumber = 0U |
The id of the next scene to create.
| unsigned int ResourceList::scriptNumber = 0U |
The id of the next script to create.
| unsigned int ResourceList::textureNumber = 0U |
The id of the next texture to create.