本文整理了Java中com.jme3.texture.FrameBuffer.dispose()
方法的一些代码示例,展示了FrameBuffer.dispose()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FrameBuffer.dispose()
方法的具体详情如下:
包路径:com.jme3.texture.FrameBuffer
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!