renderer: add transformers

This commit is contained in:
Vaxry 2023-10-21 14:15:48 +01:00
parent af72404259
commit 92311d260a
6 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#pragma once
#include "Framebuffer.hpp"
// A window transformer can be attached to a window.
// If any is attached, Hyprland will render the window to a separate fb, then call the transform() func with it,
// and finally render it back to the main fb after all transformers pass.
class IWindowTransformer {
public:
// called by Hyprland. For more data about what is being rendered, inspect render data.
// returns the out fb.
virtual CFramebuffer* transform(CFramebuffer* in) = 0;
};