當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。