Cocos2d-x is a suite of open-source, cross-platform, game-development tools used by millions of developers all over the world.
-
Updated
Feb 17, 2022 - C++
Add a description, image, and links to the metal topic page so that developers can more easily learn about it.
To associate your repository with the metal topic, visit your repo's landing page and select "manage topics."
Problem:
After using Engine.createTextureFromKtx/jpeg/Png, I need to query the texture width and height so I can generate proper UV coordinates for font display.
Proposed solution
Expose the Texture.getWidth(), getHeight(), etc. methods to get texture information. I currently only need width and height, but I can see usage cases for many of the other "getters" available in the C++ in