com.jme3.texture.FrameBuffer.dispose()方法的使用及代码示例

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

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

FrameBuffer.dispose介绍

暂无

代码示例

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

@Override
protected void cleanup(Application app) {
  this.backGroundColor = null;
  for (final FrameBuffer frameBuffer : framebuffers) {
    frameBuffer.dispose();
  }
  for (final Image image : images) {
    if( image != null){
      image.dispose();
    }
  }
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

public void cleanup(Renderer r) {
  renderFrameBuffer.dispose();
  renderedTexture.getImage().dispose();
  if(depthTexture!=null){
    depthTexture.getImage().dispose();
  }  
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

public void cleanup() {
  if (viewPort != null) {
    //reset the viewport camera viewport to its initial value
    viewPort.getCamera().resize(originalWidth, originalHeight, true);
    viewPort.getCamera().setViewPort(left, right, bottom, top);
    viewPort.setOutputFrameBuffer(outputBuffer);
    viewPort = null;
    if(renderFrameBuffer != null){
      renderFrameBuffer.dispose();
    }
    if(depthTexture!=null){
      depthTexture.getImage().dispose();
    }
    filterTexture.getImage().dispose();
    if(renderFrameBufferMS != null){
      renderFrameBufferMS.dispose();
    }
    for (Filter filter : filters.getArray()) {
      filter.cleanup(renderer);
    }
  }
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

fb.dispose();
fb = null;

代码示例来源:origin: org.jmonkeyengine/jme3-core

@Override
protected void cleanup(Application app) {
  this.backGroundColor = null;
  for (final FrameBuffer frameBuffer : framebuffers) {
    frameBuffer.dispose();
  }
  for (final Image image : images) {
    if( image != null){
      image.dispose();
    }
  }
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

public void cleanup(Renderer r) {
  renderFrameBuffer.dispose();
  renderedTexture.getImage().dispose();
  if(depthTexture!=null){
    depthTexture.getImage().dispose();
  }  
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

public void cleanup() {
  if (viewPort != null) {
    //reset the viewport camera viewport to its initial value
    viewPort.getCamera().resize(originalWidth, originalHeight, true);
    viewPort.getCamera().setViewPort(left, right, bottom, top);
    viewPort.setOutputFrameBuffer(outputBuffer);
    viewPort = null;
    if(renderFrameBuffer != null){
      renderFrameBuffer.dispose();
    }
    if(depthTexture!=null){
      depthTexture.getImage().dispose();
    }
    filterTexture.getImage().dispose();
    if(renderFrameBufferMS != null){
      renderFrameBufferMS.dispose();
    }
    for (Filter filter : filters.getArray()) {
      filter.cleanup(renderer);
    }
  }
}

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop

fb.dispose();
fb = null;

相关文章