com.badlogic.gdx.graphics.glutils.FrameBuffer.dispose()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中com.badlogic.gdx.graphics.glutils.FrameBuffer.dispose()方法的一些代码示例,展示了FrameBuffer.dispose()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FrameBuffer.dispose()方法的具体详情如下:
包路径:com.badlogic.gdx.graphics.glutils.FrameBuffer
类名称:FrameBuffer
方法名:dispose

FrameBuffer.dispose介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

@Override
  public void dispose () {
    if (fbo != null) fbo.dispose();
    fbo = null;
  }
}

代码示例来源:origin: libgdx/libgdx

@Override
  public void dispose () {
    if (fbo != null) fbo.dispose();
    fbo = null;
  }
}

代码示例来源:origin: libgdx/libgdx

@Override
public void dispose () {
  mesh.dispose();
  texture.dispose();
  frameBuffer.dispose();
  stencilFrameBuffer.dispose();
  stencilMesh.dispose();
  spriteBatch.dispose();
  meshShader.dispose();
}

代码示例来源:origin: libgdx/libgdx

@Override
  public void dispose () {
    for (int i = 0; i < getPassQuantity(); i++) {
      frameBuffers[i].dispose();
      passShaderProviders[i].dispose();
    }
    mainShaderProvider.dispose();
  }
}

代码示例来源:origin: libgdx/libgdx

@Override
public void dispose () {
  batchShader.dispose();
  scene.dispose();
  fbo.dispose();
  batch.dispose();
}

代码示例来源:origin: libgdx/libgdx

@Override
public void dispose () {
  frameBuffer.dispose();
  batch.dispose();
  cannon.model.dispose();
  floorInstance.model.dispose();
  for (Light light : lights) {
    light.lightInstance.model.dispose();
  }
  mrtSceneShader.dispose();
  quad.dispose();
}

代码示例来源:origin: com.badlogicgames.gdx/gdx

@Override
  public void dispose () {
    if (fbo != null) fbo.dispose();
    fbo = null;
  }
}

代码示例来源:origin: manuelbua/libgdx-contribs

/** Free the resources, if any. */
public void dispose () {
  if (ownResources) {
    // make sure we delete what we own
    // if the caller didn't call {@link #reset()}
    owned1.dispose();
    owned2.dispose();
  }
}

代码示例来源:origin: langurmonkey/gaiasky

@Override
public void dispose() {
  Set<Integer> keySet = fbcm.keySet();
  for (Integer key : keySet) {
    FrameBuffer fb = fbcm.get(key);
    fb.dispose();
  }
}

代码示例来源:origin: langurmonkey/gaiasky

private void clearFrameBufferMap() {
  Set<Integer> keySet = fb3D.keySet();
  for (Integer key : keySet) {
    FrameBuffer fb = fb3D.get(key);
    fb.dispose();
  }
  fb3D.clear();
}

代码示例来源:origin: mstojcevich/Radix

@Override
public void finish() {
  render.dispose();
  renderTexture.dispose();
  rendered = false;
}

代码示例来源:origin: LonamiWebs/Klooni1010

@Override
public void dispose() {
  frameBuffer.dispose();
  if (disposeAfter)
    fromScreen.dispose();
}

代码示例来源:origin: mstojcevich/Radix

@Override
public void finish() {
  if (mmPrerenderFbo != null)
    mmPrerenderFbo.dispose();
  if (batch != null)
    batch.dispose();
  initialized = false;
}

代码示例来源:origin: dsaltares/libgdx-cookbook

@Override
public void dispose() {
  batch.dispose();
  for (TextureRegion background : gallery) {
    background.getTexture().dispose();
  }
  
  currentFrameBuffer.dispose();
  nextFrameBuffer.dispose();
}

代码示例来源:origin: libgdx/box2dlights

void dispose() {
  shadowShader.dispose();
  blurShader.dispose();
  lightMapMesh.dispose();
  frameBuffer.dispose();
  pingPongBuffer.dispose();
}

代码示例来源:origin: com.badlogicgames.box2dlights/box2dlights

void dispose() {
  shadowShader.dispose();
  blurShader.dispose();
  lightMapMesh.dispose();
  frameBuffer.dispose();
  pingPongBuffer.dispose();
}

代码示例来源:origin: manuelbua/uracer-kotd

void dispose() {
  shadowShader.dispose();
  blurShader.dispose();
  lightMapMesh.dispose();
  frameBuffer.dispose();
  pingPongBuffer.dispose();
}

代码示例来源:origin: dsaltares/libgdx-cookbook

@Override
public void dispose() {
  batch.dispose();
  background.dispose();
  particleBuffer.dispose();
}

代码示例来源:origin: LonamiWebs/Klooni1010

@Override
public void resize(int width, int height) {
  this.width = width;
  this.height = height;
  if (frameBuffer != null)
    frameBuffer.dispose();
  frameBuffer = new FrameBuffer(Pixmap.Format.RGB565, width, height, false);
  bufferTexture = new TextureRegion(frameBuffer.getColorBufferTexture());
  bufferTexture.flip(false, true);
}

代码示例来源:origin: manuelbua/uracer-kotd

public void dispose () {
  if (useDeferredRendering) {
    plane.dispose();
    shNormalDepth.dispose();
    shNormalDepthNoDiffuse.dispose();
    normalDepthMap.dispose();
  }
  treeShaderNight.dispose();
  treeShader.dispose();
  tileMapRenderer.dispose();
}

相关文章