Hyprland/src/render
GartoxFR b2c3440477
animations: Refactor AnimatedVariable (#4911)
* animation: Refactor AnimatedVariable

This commit decomposes the AnimatedVariable class into a base class
with the common attribute to all variable types and a templated derived
type containing strongly typed info on the type being animated.

Access to the typed version is perfomed using the visitor pattern. A
utility is provided to build a visitor on the fly using lambdas.

Adding a new type to be animated should just be a matter of adding the
typed in the list defined by the ANIMABLE_TYPES macro

The size of the commit is justified by the API change in the
AnimatedVariable class. No more vec(), fl() or col() method but a unified
value() method.

* animation: Remove visitor pattern

* animation: Fix coding style

* animation: Fix coding style
2024-03-02 00:35:17 +00:00
..
decorations animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
shaders shaders: use highp for fragments 2024-02-15 17:32:34 +00:00
Framebuffer.cpp framebuffer: ignore addStencil on legacyRenderer 2023-12-05 15:41:17 +00:00
Framebuffer.hpp renderer: Move to a full Hyprland GL rendering pipeline (#3920) 2023-11-24 10:54:21 +00:00
OpenGL.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
OpenGL.hpp layers: add fully featured animations 2024-02-28 15:00:40 +00:00
Renderbuffer.cpp internal: various improvements to avoid crashes on exit 2023-12-06 14:46:29 +00:00
Renderbuffer.hpp renderer: Move to a full Hyprland GL rendering pipeline (#3920) 2023-11-24 10:54:21 +00:00
Renderer.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
Renderer.hpp refactor: move a few things to desktop/ 2024-02-29 13:03:38 +00:00
Shader.cpp shader: remove useless comment 2023-06-29 23:20:10 +02:00
Shader.hpp screenshader: rename output uniform to wl_output (#4606) 2024-02-04 02:30:00 +00:00
Shaders.hpp rewritten borders, fixed msaa 2022-06-26 19:39:56 +02:00
Texture.cpp texture: fix styling 2023-07-11 00:27:13 +02:00
Texture.hpp style/ci: apply clang-format and verify it in ci (#4039) 2023-12-06 22:54:56 +00:00
Transformer.cpp transformers: allow modifying renderdata pre-pass 2023-10-21 19:25:44 +01:00
Transformer.hpp transformers: allow modifying renderdata pre-pass 2023-10-21 19:25:44 +01:00