◆ CanLoadPreset()
bool CShaderPresetFactory::CanLoadPreset |
( |
const std::string & |
presetPath | ) |
|
Check if a registered loader can load a given preset.
- Parameters
-
presetPath | The path to the shader preset |
- Returns
- True if a loader can load the preset, false otherwise
◆ LoadPreset()
bool CShaderPresetFactory::LoadPreset |
( |
const std::string & |
presetPath, |
|
|
IShaderPreset & |
shaderPreset |
|
) |
| |
Load a preset from the given path.
- Parameters
-
| presetPath | The path to the shader preset |
[out] | shaderPreset | The loaded shader preset |
- Returns
- True if the preset was loaded, false otherwise
◆ RegisterLoader()
void CShaderPresetFactory::RegisterLoader |
( |
IShaderPresetLoader * |
loader, |
|
|
const std::string & |
extension |
|
) |
| |
Register an object that can load shader presets.
- Parameters
-
loader | The instance of a preset loader |
extension | The extension for which the loader can load presets |
◆ UnregisterLoader()
Unregister the shader preset loader.
- Parameters
-
The documentation for this class was generated from the following files:
- xbmc/cores/RetroPlayer/shaders/ShaderPresetFactory.h
- xbmc/cores/RetroPlayer/shaders/ShaderPresetFactory.cpp