uiDrawMatrixScale center
Ouverte
- Langage dominant
- C
- Étoiles
- 10.9k
- Forks
- 612
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Are the `xCenter` and `yCenter` coordinates relative to the element ~(as with rotation, right?)~ or the area?
https://github.com/andlabs/libui/blob/9cf56e1674168689f677a803b3b59cb21a27e0cf/ui.h#L472
(I'm guessing it's relative to the area).
I'm trying to scale the rectangle with it's center as the scale center.
Here I drew the rectangle at (50,50) and set the scale center to (50,50). Why does the rectangle move while changing the scaling factor?

Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.