Draw a BitmapFont rotated in libgdx(绘制在 libgdx 中旋转的 BitmapFont)
问题描述
我似乎无法弄清楚如何正确旋转位图字体.我认为您修改了 SpriteBatch 的转换矩阵.但是,尝试旋转会使文本围绕某个点旋转,我不知道如何相对于文本本身旋转它.
I can't seem to figure out how to rotate a Bitmap font correctly. I think you modify the transformation matrix of the SpriteBatch. However, trying to rotate that rotates the text around some point, and I don't know how to rotate it relative to the text itself.
推荐答案
你可以试试下面的代码:
you can try the following code:
这篇关于绘制在 libgdx 中旋转的 BitmapFont的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!