renderer: Move to a full Hyprland GL rendering pipeline (#3920)

Also updates wlroots
This commit is contained in:
Vaxry
2023-11-24 10:54:21 +00:00
committed by GitHub
parent e40e486f61
commit 2ebfd0c745
28 changed files with 453 additions and 230 deletions

View File

@@ -643,3 +643,12 @@ void CMonitor::moveTo(const Vector2D& pos) {
Vector2D CMonitor::middle() {
return vecPosition + vecSize / 2.f;
}
void CMonitor::updateMatrix() {
wlr_matrix_identity(projMatrix.data());
if (transform != WL_OUTPUT_TRANSFORM_NORMAL) {
wlr_matrix_translate(projMatrix.data(), vecTransformedSize.x / 2.0, vecTransformedSize.y / 2.0);
wlr_matrix_transform(projMatrix.data(), transform);
wlr_matrix_translate(projMatrix.data(), -vecTransformedSize.x / 2.0, -vecTransformedSize.y / 2.0);
}
}