diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-11-24 01:16:54 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-11-24 01:16:54 -0500 |
commit | 17bee519ece8fc2bc356956841fed97286d24139 (patch) | |
tree | dd09d56fdd7e1d1fca58cbc345414bdfba9c19a6 /effects.h | |
parent | fd315f15828b8537a48530c094ced845edc3a1d3 (diff) |
legwork
Diffstat (limited to 'effects.h')
-rw-r--r-- | effects.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/effects.h b/effects.h deleted file mode 100644 index 793cadf..0000000 --- a/effects.h +++ /dev/null @@ -1,70 +0,0 @@ -enum effect_display_type -{ - standard, - levels -}; - -struct effect_supported_renderers -{ - bool32 renderer_effect_gpu; -#if ARM - bool32 renderer_effect_neon; -#else - bool32 renderer_effect_avx; - bool32 renderer_effect_sse; -#endif - bool32 renderer_effect_scalar; -}; - -struct effect_header -{ - char *Name; - void (*func)(source *, layer_bitmap_info *, memory *, property_channel []); - uint16 NumberOfProperties; - effect_display_type DisplayType; - // effect_supported_renderers SupportedRenderers; - property_header PropertyHeader[MAX_PROPERTIES_PER_EFFECT]; -}; - -struct effect { - char *Name; - void (*func)(source *, layer_bitmap_info *, memory *, property_channel []); - uint16 NumberOfProperties; - effect_display_type DisplayType; - property_channel Property[MAX_PROPERTIES_PER_EFFECT]; - bool32 IsSelected = 0; - bool32 UIIsCollapsed = 0; - bool32 IsActive = 1; - uint32 ImGuiID; -}; - - -// TODO(fox): It'd probably be easier if we just switched to constructors at some point. - -static effect_header EffectList[] { - { - "Solid Color", - &Effect_DrawColor, 2, standard, { - {"Color", { V4(0.0f, 0.0f, 0.0f, 1.0f) }, type_color, { NORMALIZED_COL_MIN }, { NORMALIZED_COL_MAX} }, - {"Blend mode", { blend_normal }, type_blendmode}, - } - }, - { - "Levels", - &Effect_Levels, 6, levels, { - {"Start point", {0.0f}, type_real}, - {"Mid point", {1.0f}, type_real}, - {"End point", {1.0f}, type_real}, - {"Start Col", { V4(0.0f)}, type_color}, - {"Mid Col", { V4(1.0f)}, type_color}, - {"End Col", { V4(1.0f)}, type_color}, - } - }, - { - "Gaussian Blur", - &Effect_GaussianBlur, 1, standard, { - {"Radius", {0.0f}, type_real, 0.0f, 500.0f}, - } - } -}; - |