com.jme3.renderer.Renderer.cleanup()方法的使用及代码示例

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

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

Renderer.cleanup介绍

[英]Deletes all previously used NativeObject on this Renderer, and then resets the native objects.
[中]删除此渲染器上以前使用的所有NativeObject,然后重置本机对象。

代码示例

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

protected void deinitInThread(){
  renderable.set(false);
  listener.destroy();
  renderer.cleanup();
  pbuffer.destroy();
  logger.fine("Offscreen buffer destroyed.");
  
  super.internalDestroy();
}

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

protected void deinitInThread(){
  renderable.set(false);
  listener.destroy();
  renderer.cleanup();
  offscreenDrawable.destroy();
  logger.fine("Offscreen buffer destroyed.");
  
  super.internalDestroy();
}

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

protected void destroyContext(){
  try {
    renderer.cleanup();
    Display.releaseContext();
    Display.destroy();
  } catch (LWJGLException ex) {
    listener.handleError("Failed to destroy context", ex);
  }
}

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

try {
  if (renderer != null) {
    renderer.cleanup();

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

try {
  if (renderer != null) {
    renderer.cleanup();

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

renderer.cleanup();

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

renderer.cleanup();

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

protected void deinitInThread(){
  renderable.set(false);
  listener.destroy();
  renderer.cleanup();
  offscreenDrawable.destroy();
  logger.fine("Offscreen buffer destroyed.");
  
  super.internalDestroy();
}

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

protected void deinitInThread(){
  renderable.set(false);
  listener.destroy();
  renderer.cleanup();
  pbuffer.destroy();
  logger.fine("Offscreen buffer destroyed.");
  
  super.internalDestroy();
}

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

protected void destroyContext(){
  try {
    renderer.cleanup();
    Display.releaseContext();
    Display.destroy();
  } catch (LWJGLException ex) {
    listener.handleError("Failed to destroy context", ex);
  }
}

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

/**
 * Destroy the context.
 */
protected void destroyContext() {
  try {
    if (renderer != null) {
      renderer.cleanup();
    }
    if (errorCallback != null) {
      errorCallback.close();
      errorCallback = null;
    }
    if (windowSizeCallback != null) {
      windowSizeCallback.close();
      windowSizeCallback = null;
    }
    if (windowFocusCallback != null) {
      windowFocusCallback.close();
      windowFocusCallback = null;
    }
    if (window != NULL) {
      glfwDestroyWindow(window);
      window = NULL;
    }
  } catch (final Exception ex) {
    listener.handleError("Failed to destroy context", ex);
  }
}

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

renderer.cleanup();

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

renderer.cleanup();

相关文章