当前位置: 首页>>代码示例>>Java>>正文


Java FrameBuffer.invalidateAllFrameBuffers方法代码示例

本文整理汇总了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);
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:24,代码来源:AndroidGraphics.java

示例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);
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:26,代码来源:AndroidGraphics.java

示例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);
}
 
开发者ID:raphaelbruno,项目名称:ZombieInvadersVR,代码行数:26,代码来源:CardBoardGraphics.java


注:本文中的com.badlogic.gdx.graphics.glutils.FrameBuffer.invalidateAllFrameBuffers方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。