feat: rotate cursor around hotspot

This commit is contained in:
Virt 2024-06-21 16:06:55 +02:00
commit 9a9830034c
9 changed files with 334 additions and 22 deletions

5
src/renderer.hpp Normal file
View file

@ -0,0 +1,5 @@
#include <hyprland/src/render/OpenGL.hpp>
#include <hyprland/src/helpers/math/Math.hpp>
void renderCursorTextureInternalWithDamage(SP<CTexture> tex, CBox* pBox, CRegion* damage, float alpha, Vector2D hotspot);
void projectCursorBox(float mat[9], CBox& box, eTransform transform, float rotation, const float projection[9], Vector2D hotspot);