List of usage examples for com.badlogic.gdx.graphics GL20 GL_COLOR_CLEAR_VALUE
int GL_COLOR_CLEAR_VALUE
To view the source code for com.badlogic.gdx.graphics GL20 GL_COLOR_CLEAR_VALUE.
Click Source Link
From source file:com.sebasxogo2d.pantallas.Creditos.java
License:Open Source License
/** * Method who render the textures of this screen. * * @param delta //from w w w. j a v a 2 s . c o m */ @Override public void render(float delta) { // Default drawing. Empty screem Gdx.gl.glClearColor(0, 0, 0, 1); Gdx.gl.glClear(GL20.GL_COLOR_CLEAR_VALUE); // Set the color and scale to the the Font and draw the background and text. batch.begin(); //bmf.setColor(Color.WHITE); //bmf.setScale(1); batch.draw(fondo, 0, 0, camara2d.viewportWidth, camara2d.viewportHeight); //bmf.drawMultiLine(batch, creditos, 0, camara2d.viewportHeight-100); batch.end(); }