mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-10 03:56:33 +00:00
renderer: overhaul renderModifData
This commit is contained in:
@@ -36,8 +36,17 @@ enum eDiscardMode {
|
||||
};
|
||||
|
||||
struct SRenderModifData {
|
||||
Vector2D translate = {};
|
||||
float scale = 1.f;
|
||||
enum eRenderModifType {
|
||||
RMOD_TYPE_SCALE, /* scale by a float */
|
||||
RMOD_TYPE_SCALECENTER, /* scale by a float from the center */
|
||||
RMOD_TYPE_TRANSLATE, /* translate by a Vector2D */
|
||||
RMOD_TYPE_ROTATE, /* rotate by a float in rad from top left */
|
||||
RMOD_TYPE_ROTATECENTER, /* rotate by a float in rad from center */
|
||||
};
|
||||
|
||||
std::vector<std::pair<eRenderModifType, std::any>> modifs;
|
||||
|
||||
void applyToBox(CBox& box);
|
||||
};
|
||||
|
||||
struct SGLPixelFormat {
|
||||
|
Reference in New Issue
Block a user