We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/UnknownDomainGames/PanguEngine/blob/79d0ee15a8fcb22dd12c3e11cb8a2075f8ec724b/graphics/src/main/java/engine/graphics/font/TextMesh.java#L8-L13
TextMesh类中会存储文本网格的纹理。
TextMesh
https://github.com/UnknownDomainGames/PanguEngine/blob/79d0ee15a8fcb22dd12c3e11cb8a2075f8ec724b/graphics/src/main/java/engine/graphics/lwjgl/font/FontPlaneTexture.java#L72-L77
当FontPlaneTexture#dirty为true时(例如调用FontPlaneTexture#putBlock),会在下一渲染循环中调用FontPlaneTexture#bakeTexture,该方法将会dispose字体纹理对象,致使所引用该纹理的所有TextMesh对象无法正常渲染。
FontPlaneTexture#dirty
FontPlaneTexture#putBlock
FontPlaneTexture#bakeTexture
dispose
The text was updated successfully, but these errors were encountered:
mouse0w0
No branches or pull requests
https://github.com/UnknownDomainGames/PanguEngine/blob/79d0ee15a8fcb22dd12c3e11cb8a2075f8ec724b/graphics/src/main/java/engine/graphics/font/TextMesh.java#L8-L13
TextMesh
类中会存储文本网格的纹理。https://github.com/UnknownDomainGames/PanguEngine/blob/79d0ee15a8fcb22dd12c3e11cb8a2075f8ec724b/graphics/src/main/java/engine/graphics/lwjgl/font/FontPlaneTexture.java#L72-L77
当
FontPlaneTexture#dirty
为true时(例如调用FontPlaneTexture#putBlock
),会在下一渲染循环中调用FontPlaneTexture#bakeTexture
,该方法将会dispose
字体纹理对象,致使所引用该纹理的所有TextMesh
对象无法正常渲染。The text was updated successfully, but these errors were encountered: