org.lwjgl.opengl.Display.isCreated()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(161)

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

Display.isCreated介绍

暂无

代码示例

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

} catch (Exception ex){
  try {
    if (Display.isCreated())
      Display.destroy();
  } catch (Exception ex2){

代码示例来源:origin: MovingBlocks/Terasology

@Override
public void preShutdown() {
  if (Display.isCreated() && !Display.isFullscreen() && Display.isVisible()) {
    config.setWindowPosX(Display.getX());
    config.setWindowPosY(Display.getY());
  }
}

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

if (Display.isCreated()){

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

if (Display.isCreated() && Display.isCurrent()) {
  if (GLContext.getCapabilities().GL_ARB_framebuffer_object) {
    return GL11.glGetInteger(ARBFramebufferObject.GL_MAX_SAMPLES);

代码示例来源:origin: com.ardor3d/ardor3d-lwjgl

public void close() {
  if (Display.isCreated()) {
    Display.destroy();
  }
}

代码示例来源:origin: com.ardor3d/ardor3d-lwjgl

public void moveWindowTo(final int locX, final int locY) {
  if (Display.isCreated()) {
    Display.setLocation(locX, locY);
  }
}

代码示例来源:origin: com.ardor3d/ardor3d-lwjgl

public boolean isActive() {
  return Display.isCreated() && Display.isActive();
}

代码示例来源:origin: com.ardor3d/ardor3d-lwjgl

@MainThread
public boolean isClosing() {
  return Display.isCreated() && Display.isCloseRequested();
}

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

public void run() {
   try {
     canvas.start();
   }
   catch (Exception e) {
     e.printStackTrace();
     if (Display.isCreated()) {
      Display.destroy();
     }
     displayParent.setVisible(false);//removeAll();
     add(new ConsolePanel(e));
     validate();
   }
  }
};

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

} catch (Exception ex){
  try {
    if (Display.isCreated())
      Display.destroy();
  } catch (Exception ex2){

代码示例来源:origin: com.ardor3d/ardor3d-lwjgl

private void giveBackContext() throws LWJGLException {
  if (Display.isCreated()) {
    Display.makeCurrent();
    ContextManager.switchContext(_oldContext.getContextKey());
  } else if (_oldContext.getContextKey() instanceof AWTGLCanvas) {
    ((AWTGLCanvas) _oldContext.getContextKey()).makeCurrent();
    ContextManager.switchContext(_oldContext.getContextKey());
  }
}

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

if (Display.isCreated()){

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

if (Display.isCreated()) {
  displayActive = Display.isActive();

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

}});
if (!Display.isCreated()) {
  throw new SlickException("Failed to initialise the LWJGL display");

代码示例来源:origin: lawremi/CustomOreGen

if (usingLWJGL && Display.isCreated() && LWJGLUtil.getPlatform() != LWJGLUtil.PLATFORM_MACOSX)

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

if (Display.isCreated() && Display.isCurrent()) {
  if (GLContext.getCapabilities().GL_ARB_framebuffer_object) {
    return GL11.glGetInteger(ARBFramebufferObject.GL_MAX_SAMPLES);

代码示例来源:origin: DimensionalDevelopment/VanillaFix

private void runGUILoop(GuiScreen screen) throws IOException {
  displayGuiScreen(screen);
  while (running && currentScreen != null && !(currentScreen instanceof GuiMainMenu) && !(Loader.isModLoaded("custommainmenu") && currentScreen instanceof GuiCustom)) {
    if (Display.isCreated() && Display.isCloseRequested()) System.exit(0);
    leftClickCounter = 10000;
    currentScreen.handleInput();

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

Display.setFullscreen(fullscreen);
if (Display.isCreated()) {
  initGL();
  enterOrtho();

相关文章