I am starting to work with libgdx.
I opened the example model-loader in trunk (StillModelViewerGL20.java). In the source I see this code in the render
callback:
batch.begin();
font.draw(batch, "fps: " + Gdx.graphics.getFramesPerSecond(), 20, 30);
batch.end();
But I do not see any text on screen. Is there something I need to fix in this example to see text displayed?
Maybe the screen size is smaller than 20,30. Try to draw on 0, 0.
check the order in which you draw your objects, and if this is corrected by changing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With