uiDrawMatrixScale center
Đang mở
- Ngôn ngữ chính
- C
- Star
- 10.9k
- Fork
- 612
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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?

Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.