renderer: add transformers
This commit is contained in:
parent
af72404259
commit
92311d260a
6 changed files with 64 additions and 0 deletions
13
src/render/Transformer.hpp
Normal file
13
src/render/Transformer.hpp
Normal 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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue