public void draw(float deltaTime) { GLCommon gl = Gdx.gl; gl.glClearColor(1, 0, 0, 1); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); guiCam.update(); batcher.setProjectionMatrix(guiCam.combined); batcher.disableBlending(); batcher.begin(); batcher.draw(Assets.backgroundRegion, 0, 0, 320, 480); batcher.end(); batcher.enableBlending(); batcher.begin(); batcher.draw(Assets.logo, 160 - 274 / 2, 480 - 10 - 142, 274, 142); batcher.draw(Assets.mainMenu, 10, 200 - 110 / 2, 300, 110); batcher.draw(Settings.soundEnabled ? Assets.soundOn : Assets.soundOff, 0, 0, 64, 64); batcher.end(); }
public void render() { tweenManager.update(Gdx.graphics.getDeltaTime()); if (gdx.getRotation() > 360 * 15 - 20) gdx.setRegion(gdxTex); GLCommon gl = Gdx.gl; gl.glClearColor(0, 0, 0, 1); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glEnable(GL10.GL_BLEND); gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); batch.setProjectionMatrix(camera.combined); batch.begin(); strip.draw(batch); universal.draw(batch); tween.draw(batch); engine.draw(batch); logo.draw(batch); powered.draw(batch); gdx.draw(batch); if (veil.getColor().a > 0.1f) veil.draw(batch); batch.end(); }