【发布时间】:2021-07-07 18:30:02
【问题描述】:
对于我的应用程序,我需要在同一帧中渲染精灵(或纹理)和多边形精灵(或网格)。 对于精灵,我在 Spritebatch 上渲染它们,对于 PolygoneSprites,我应该在 PolygonSpritebatch 上渲染它们。但我真的做不到:
spriteBatch.begin()
spritebatch.draw(sprite)
...
spriteBatch.end()
polygonSpritebatch.begin()
polygonSpritebatch.draw(polygonSprite)
...
polygonSpritebatch.end()
spriteBatch.begin()
spritebatch.draw(sprite)
...
spriteBatch.end()
etc...
那么,有什么办法吗? 附上图片看看我想要什么。
非常感谢!
【问题讨论】:
标签: libgdx sprite spritebatch