mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 11:25:59 +01:00
13 lines
499 B
C++
13 lines
499 B
C++
|
#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;
|
||
|
};
|