本文整理汇总了Java中com.jme3.texture.FrameBuffer.resetObject方法的典型用法代码示例。如果您正苦于以下问题:Java FrameBuffer.resetObject方法的具体用法?Java FrameBuffer.resetObject怎么用?Java FrameBuffer.resetObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jme3.texture.FrameBuffer
的用法示例。
在下文中一共展示了FrameBuffer.resetObject方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deleteFrameBuffer
import com.jme3.texture.FrameBuffer; //导入方法依赖的package包/类
public void deleteFrameBuffer(FrameBuffer fb) {
if (fb.getId() != -1) {
if (context.boundFBO == fb.getId()) {
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
context.boundFBO = 0;
}
if (fb.getDepthBuffer() != null) {
deleteRenderBuffer(fb, fb.getDepthBuffer());
}
if (fb.getColorBuffer() != null) {
deleteRenderBuffer(fb, fb.getColorBuffer());
}
intBuf1.put(0, fb.getId());
glDeleteFramebuffersEXT(intBuf1);
fb.resetObject();
statistics.onDeleteFrameBuffer();
}
}
示例2: deleteFrameBuffer
import com.jme3.texture.FrameBuffer; //导入方法依赖的package包/类
public void deleteFrameBuffer(FrameBuffer fb) {
if (fb.getId() != -1) {
if (context.boundFBO == fb.getId()) {
Gdx.gl20.glBindFramebuffer(GL20.GL_FRAMEBUFFER, 0);
// RendererUtil.checkGLError();
context.boundFBO = 0;
}
if (fb.getDepthBuffer() != null) {
deleteRenderBuffer(fb, fb.getDepthBuffer());
}
if (fb.getColorBuffer() != null) {
deleteRenderBuffer(fb, fb.getColorBuffer());
}
intBuf1.put(0, fb.getId());
Gdx.gl20.glDeleteFramebuffers(1, intBuf1);
// RendererUtil.checkGLError();
fb.resetObject();
statistics.onDeleteFrameBuffer();
}
}
示例3: deleteFrameBuffer
import com.jme3.texture.FrameBuffer; //导入方法依赖的package包/类
public void deleteFrameBuffer(FrameBuffer fb) {
if (fb.getId() != -1) {
if (context.boundFBO == fb.getId()) {
GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);
// RendererUtil.checkGLError();
context.boundFBO = 0;
}
if (fb.getDepthBuffer() != null) {
deleteRenderBuffer(fb, fb.getDepthBuffer());
}
if (fb.getColorBuffer() != null) {
deleteRenderBuffer(fb, fb.getColorBuffer());
}
intBuf1.put(0, fb.getId());
GLES20.glDeleteFramebuffers(1, intBuf1);
// RendererUtil.checkGLError();
fb.resetObject();
statistics.onDeleteFrameBuffer();
}
}
示例4: deleteFrameBuffer
import com.jme3.texture.FrameBuffer; //导入方法依赖的package包/类
public void deleteFrameBuffer(FrameBuffer fb) {
if (fb.getId() != -1) {
if (context.boundFBO == fb.getId()) {
bindFramebuffer(0);
context.boundFBO = 0;
}
if (fb.getDepthBuffer() != null) {
deleteRenderBuffer(fb, fb.getDepthBuffer());
}
if (fb.getColorBuffer() != null) {
deleteRenderBuffer(fb, fb.getColorBuffer());
}
intBuf1.put(0, fb.getId());
deleteFramebuffer();
fb.resetObject();
statistics.onDeleteFrameBuffer();
}
}