本文整理汇总了Java中com.badlogic.gdx.graphics.glutils.FrameBuffer.invalidateAllFrameBuffers方法的典型用法代码示例。如果您正苦于以下问题:Java FrameBuffer.invalidateAllFrameBuffers方法的具体用法?Java FrameBuffer.invalidateAllFrameBuffers怎么用?Java FrameBuffer.invalidateAllFrameBuffers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.gdx.graphics.glutils.FrameBuffer
的用法示例。
在下文中一共展示了FrameBuffer.invalidateAllFrameBuffers方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onSurfaceCreated
import com.badlogic.gdx.graphics.glutils.FrameBuffer; //导入方法依赖的package包/类
@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);
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);
}
示例2: onSurfaceCreated
import com.badlogic.gdx.graphics.glutils.FrameBuffer; //导入方法依赖的package包/类
public final void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 paramGL10, EGLConfig paramEGLConfig)
{
this.eglContext = ((EGL10)EGLContext.getEGL()).eglGetCurrentContext();
setupGL(paramGL10);
logConfig(paramEGLConfig);
updatePpi();
if (!this.isContextPreserved)
{
Mesh.invalidateAllMeshes(this.app);
Texture.invalidateAllTextures(this.app);
ShaderProgram.invalidateAllShaderPrograms(this.app);
FrameBuffer.invalidateAllFrameBuffers(this.app);
SpriteBatch.invalidateAllSpriteBatches(this.app);
}
Gdx.app.log("AndroidGraphics", Mesh.getManagedStatus());
Gdx.app.log("AndroidGraphics", Texture.getManagedStatus());
Gdx.app.log("AndroidGraphics", ShaderProgram.getManagedStatus());
Gdx.app.log("AndroidGraphics", FrameBuffer.getManagedStatus());
Display localDisplay = this.app.getWindowManager().getDefaultDisplay();
this.width = localDisplay.getWidth();
this.height = localDisplay.getHeight();
this.mean = new WindowedMean(5);
this.lastFrameTime = System.nanoTime();
paramGL10.glViewport(0, 0, this.width, this.height);
}
示例3: onSurfaceCreated
import com.badlogic.gdx.graphics.glutils.FrameBuffer; //导入方法依赖的package包/类
@Override
public void onSurfaceCreated (EGLConfig config) {
eglContext = ((EGL10)EGLContext.getEGL()).eglGetCurrentContext();
setupGL();
logConfig(config);
updatePpi();
Mesh.invalidateAllMeshes(app);
Texture.invalidateAllTextures(app);
Cubemap.invalidateAllCubemaps(app);
ShaderProgram.invalidateAllShaderPrograms(app);
FrameBuffer.invalidateAllFrameBuffers(app);
logManagedCachesStatus();
Point outSize = new Point();
Display display = app.getWindowManager().getDefaultDisplay();
display.getSize(outSize);
this.width = outSize.x;
this.height = outSize.y;
this.mean = new WindowedMean(5);
this.lastFrameTime = System.nanoTime();
gl20.glViewport(0, 0, this.width, this.height);
}