uiDrawMatrixScale center
未关闭
- 主要语言
- C
- 星标
- 10.9k
- 派生
- 612
- PR 合并指标
- 30 天内没有已合并 PR
描述
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?

贡献指南
评估
这个 Issue 还没有评估数据。