Add getTextHeight
This commit is contained in:
1 parent
8a10af090f
commit
55fabbcfe4
1 file changed
+4
@@ -41,6 +41,10 @@ public class TextTexture extends SpriteTexture {
|
||||
return width;
|
||||
}
|
||||
|
||||
public float getTextHeight(String text) {
|
||||
return mHeight;
|
||||
}
|
||||
|
||||
public void drawText(GLCanvas canvas, String text, int x, int y) {
|
||||
char[] characters = mCharacters;
|
||||
float[] widths = mWidths;
|
||||
|
||||
Reference in new issue
Block a user