Created
November 2, 2015 21:45
-
-
Save picopicolab/17ed9ebb066a9616a715 to your computer and use it in GitHub Desktop.
FPSLogger サンプル実装
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.picopicolab.games.demo; | |
import com.badlogic.gdx.ApplicationAdapter; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.graphics.FPSLogger; | |
import com.badlogic.gdx.graphics.GL20; | |
/** | |
* FPSLogger サンプル実装 | |
*/ | |
public class DemoGame extends ApplicationAdapter { | |
private FPSLogger logger; | |
@Override | |
public void create () { | |
logger = new FPSLogger(); | |
} | |
@Override | |
public void render () { | |
Gdx.gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); | |
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); | |
logger.log(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment