Search in sources :

Example 1 with WindowedMean

use of com.badlogic.gdx.math.WindowedMean in project libgdx by libgdx.

the class AndroidGraphics method onSurfaceCreated.

@Override
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, EGLConfig config) {
    eglContext = ((EGL10) EGLContext.getEGL()).eglGetCurrentContext();
    setupGL(gl);
    logConfig(config);
    updatePpi();
    Mesh.invalidateAllMeshes(app);
    Texture.invalidateAllTextures(app);
    Cubemap.invalidateAllCubemaps(app);
    TextureArray.invalidateAllTextureArrays(app);
    ShaderProgram.invalidateAllShaderPrograms(app);
    FrameBuffer.invalidateAllFrameBuffers(app);
    logManagedCachesStatus();
    Display display = app.getWindowManager().getDefaultDisplay();
    this.width = display.getWidth();
    this.height = display.getHeight();
    this.mean = new WindowedMean(5);
    this.lastFrameTime = System.nanoTime();
    gl.glViewport(0, 0, this.width, this.height);
}
Also used : WindowedMean(com.badlogic.gdx.math.WindowedMean) Display(android.view.Display) EGLDisplay(javax.microedition.khronos.egl.EGLDisplay)

Aggregations

Display (android.view.Display)1 WindowedMean (com.badlogic.gdx.math.WindowedMean)1 EGLDisplay (javax.microedition.khronos.egl.EGLDisplay)1