Generic resource manager, enabling more intelligent processing of resources, compared to the ContentLoader.
More...
|
void | loadResourceSetDescFileSync (const ResourceSetLoadQuery &query, ResourceSetLoadResult &resultRef) |
|
void | loadResourceSetDescFileAsync (const ResourceSetLoadQuery &query, ResourceSaveLoadCallback *callback=nullptr) |
|
void | saveResourceSetDescFile (const ResourceSetSaveQuery &query) |
|
void | loadCamera (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadBlendState (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadDepthStencilState (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadRasterState (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadSampler (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadTexture (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadBuffer (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadShader (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadProgram (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadMesh (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadCompositor (nkMemory::StringView path, nkMemory::StringView compoToDefault="", ResourceSaveLoadCallback *callback=nullptr) |
|
void | loadNode (nkMemory::StringView path, ResourceSaveLoadCallback *callback=nullptr) |
|
Generic resource manager, enabling more intelligent processing of resources, compared to the ContentLoader.
◆ loadResourceSetDescFileSync()
Requests to load a resource set, synchronously.
- Parameters
-
query | The resource set load query. |
resultRef | The result to populate. |
◆ loadResourceSetDescFileAsync()
void nkGraphics::ResourceManager::loadResourceSetDescFileAsync |
( |
const ResourceSetLoadQuery & |
query, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Requests to load a resource set, asynchronously.
- Parameters
-
query | The resource set load query. |
callback | The callback interface to use. |
◆ saveResourceSetDescFile()
Requests to save a resource set, Synchronously.
- Parameters
-
query | The resource set save query. |
◆ loadCamera()
void nkGraphics::ResourceManager::loadCamera |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a camera declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadBlendState()
void nkGraphics::ResourceManager::loadBlendState |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a blend state declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadDepthStencilState()
void nkGraphics::ResourceManager::loadDepthStencilState |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a depth and stencil state declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadRasterState()
void nkGraphics::ResourceManager::loadRasterState |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a raster state declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadSampler()
void nkGraphics::ResourceManager::loadSampler |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a sampler declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadTexture()
void nkGraphics::ResourceManager::loadTexture |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a texture declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadBuffer()
void nkGraphics::ResourceManager::loadBuffer |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a buffer declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadShader()
void nkGraphics::ResourceManager::loadShader |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a sahder declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadProgram()
void nkGraphics::ResourceManager::loadProgram |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a program declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadMesh()
void nkGraphics::ResourceManager::loadMesh |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a mesh declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
◆ loadCompositor()
Loads a compositor declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
compoToDefault | The default name to set as a default. |
callback | The callback used for resource loading. |
◆ loadNode()
void nkGraphics::ResourceManager::loadNode |
( |
nkMemory::StringView |
path, |
|
|
ResourceSaveLoadCallback * |
callback = nullptr |
|
) |
| |
Loads a node (scene) declaration file. Does it asynchronously.
- Parameters
-
path | The declaration path, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
callback | The callback used for resource loading. |
The documentation for this class was generated from the following file: