9 #ifndef C_API_ADDONINSTANCE_SHADER_PRESET_H 10 #define C_API_ADDONINSTANCE_SHADER_PRESET_H 12 #include "../addon_base.h" 19 #define DEFAULT_PORT_ID "1" 31 typedef void* preset_file;
43 typedef enum SHADER_SCALE_TYPE
51 SHADER_SCALE_TYPE_INPUT,
60 SHADER_SCALE_TYPE_ABSOLUTE,
68 SHADER_SCALE_TYPE_VIEWPORT
71 typedef enum SHADER_FILTER_TYPE
73 SHADER_FILTER_TYPE_UNSPEC,
74 SHADER_FILTER_TYPE_LINEAR,
75 SHADER_FILTER_TYPE_NEAREST
81 typedef enum SHADER_WRAP_TYPE
83 SHADER_WRAP_TYPE_BORDER,
84 SHADER_WRAP_TYPE_EDGE,
85 SHADER_WRAP_TYPE_REPEAT,
86 SHADER_WRAP_TYPE_MIRRORED_REPEAT
94 SHADER_SCALE_TYPE type;
226 unsigned parameter_count;
264 KODI_HANDLE kodiInstance;
274 KODI_HANDLE addonInstance;
unsigned frame_count_mod
Frame count mod.
Definition: shaderpreset.h:182
fbo_scale fbo
FBO parameters.
Definition: shaderpreset.h:165
SHADER_WRAP_TYPE wrap
Texture wrapping mode.
Definition: shaderpreset.h:210
fbo_scale_axis scale_y
Scaling parameters for Y axis.
Definition: shaderpreset.h:130
Definition: shaderpreset.h:144
char * id
Name of the sampler uniform, e.g. uniform sampler2D foo.
Definition: shaderpreset.h:195
bool mipmap
Mipmapping.
Definition: shaderpreset.h:187
bool fp_fbo
Float framebuffer.
Definition: shaderpreset.h:120
fbo_scale_axis scale_x
Scaling parameters for X axis.
Definition: shaderpreset.h:125
char * path
Path of the texture.
Definition: shaderpreset.h:200
SHADER_FILTER_TYPE filter
Defines how the result of this pass will be filtered.
Definition: shaderpreset.h:172
SHADER_WRAP_TYPE wrap
Wrapping mode.
Definition: shaderpreset.h:177
ShaderPreset instance.
Definition: shaderpreset.h:303
ShaderPreset callbacks.
Definition: shaderpreset.h:262
FBO parameters.
Definition: shaderpreset.h:105
const char * addon_path
The path to this add-on.
Definition: shaderpreset.h:250
Definition: shaderpreset.h:190
const char * user_path
The path to the user profile.
Definition: shaderpreset.h:245
Definition: shaderpreset.h:218
char * fragment_source
The fragment shader source, if separate from the vertex source, or NULL otherwise.
Definition: shaderpreset.h:160
bool srgb_fbo
sRGB framebuffer
Definition: shaderpreset.h:110
SHADER_FILTER_TYPE filter
Filtering for the texture.
Definition: shaderpreset.h:205
bool mipmap
Use mipmapping for the texture.
Definition: shaderpreset.h:215
ShaderPreset function hooks.
Definition: shaderpreset.h:272
char * source_path
Path to the shader pass source.
Definition: shaderpreset.h:149
char * vertex_source
The vertex shader source.
Definition: shaderpreset.h:154
FBO scaling parameters for a single axis.
Definition: shaderpreset.h:92
Definition: shaderpreset.h:133
ShaderPreset properties.
Definition: shaderpreset.h:240