| 
    Kodi Documentation 22.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
#include <ShaderPreset.h>
  
Public Member Functions | |
| CInstanceShaderPreset () | |
| Shader preset class constructor.   | |
| ~CInstanceShaderPreset () override=default | |
| Destructor.   | |
| std::string | UserPath () const | 
| Used to get the full path to the add-on's user profile.   | |
| std::string | AddonPath () const | 
| Used to get the full path where the add-on is installed.   | |
| virtual preset_file | PresetFileNew (const char *path) | 
| Loads a preset file   | |
| virtual void | PresetFileFree (preset_file file) | 
| Free a preset file   | |
| virtual bool | ShaderPresetRead (preset_file file, video_shader &shader) | 
| Loads preset file and all associated state (passes, textures, imports, etc)   | |
| virtual bool | ShaderPresetWrite (preset_file file, const video_shader &shader) | 
| Save preset and all associated state (passes, textures, imports, etc) to disk.   | |
| virtual bool | ShaderPresetResolveParameters (preset_file file, video_shader &shader) | 
| Resolve all shader parameters belonging to the shader preset.   | |
| virtual void | ShaderPresetFree (video_shader &shader) | 
| Free all state related to shader preset.   | |
  Public Member Functions inherited from kodi::addon::IAddonInstance | |
| IAddonInstance (const kodi::addon::IInstanceInfo &instance) | |
| virtual | ~IAddonInstance ()=default | 
| virtual ADDON_STATUS | CreateInstance (const kodi::addon::IInstanceInfo &instance, KODI_ADDON_INSTANCE_HDL &hdl) | 
| std::string | GetInstanceAPIVersion () const | 
| virtual ADDON_STATUS | SetInstanceSetting (const std::string &settingName, const kodi::addon::CSettingValue &settingValue) | 
| bool | IsInstanceSettingUsingDefault (const std::string &settingName) | 
| std::string | GetInstanceUserPath (const std::string &append="") | 
| bool | CheckInstanceSettingString (const std::string &settingName, std::string &settingValue) | 
| std::string | GetInstanceSettingString (const std::string &settingName, const std::string &defaultValue="") | 
| void | SetInstanceSettingString (const std::string &settingName, const std::string &settingValue) | 
| bool | CheckInstanceSettingInt (const std::string &settingName, int &settingValue) | 
| int | GetInstanceSettingInt (const std::string &settingName, int defaultValue=0) | 
| void | SetInstanceSettingInt (const std::string &settingName, int settingValue) | 
| bool | CheckInstanceSettingBoolean (const std::string &settingName, bool &settingValue) | 
| bool | GetInstanceSettingBoolean (const std::string &settingName, bool defaultValue=false) | 
| void | SetInstanceSettingBoolean (const std::string &settingName, bool settingValue) | 
| bool | CheckInstanceSettingFloat (const std::string &settingName, float &settingValue) | 
| float | GetInstanceSettingFloat (const std::string &settingName, float defaultValue=0.0f) | 
| void | SetInstanceSettingFloat (const std::string &settingName, float settingValue) | 
| template<typename enumType > | |
| bool | CheckInstanceSettingEnum (const std::string &settingName, enumType &settingValue) | 
| template<typename enumType > | |
| enumType | GetInstanceSettingEnum (const std::string &settingName, enumType defaultValue=static_cast< enumType >(0)) | 
| template<typename enumType > | |
| void | SetInstanceSettingEnum (const std::string &settingName, enumType settingValue) |