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

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

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

Display.getY介绍

暂无

代码示例

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

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

代码示例来源:origin: libgdx/libgdx

graphics.config.y = Display.getY();
if (graphics.resize || Display.wasResized()
  || (int)(Display.getWidth() * Display.getPixelScaleFactor()) != graphics.config.width

代码示例来源:origin: libgdx/libgdx

graphics.config.y = Display.getY();
if (graphics.resize || Display.wasResized()
  || (int)(Display.getWidth() * Display.getPixelScaleFactor()) != graphics.config.width

代码示例来源:origin: Var3D/var3dframe

public void setVisible(boolean isVisible){
      if(isVisible){
        // setLocation(appFrame.getX()+1+sysX,appFrame.getY()+sysY);
        setLocation(Display.getX()+1+sysX,Display.getY()+sysY);
      }
      super.setVisible(isVisible);
//            top=getInsets().top;
//            System.out.println("top="+top);
    }

代码示例来源:origin: Var3D/var3dframe

@Override
  public void run() {
    if(isVisible()) setLocation(Display.getX()+1+sysX,Display.getY()+sysY);
  }
},1,10);

代码示例来源:origin: manuelbua/uracer-kotd

@Override
  public void dispose () {
    boot.load();
    boot.setWindowX(Display.getX());
    boot.setWindowY(Display.getY());
    boot.store();

    // destroy display
    Display.destroy();

    // destroy audio, if any
    if (this.audio != null) {
      this.audio.dispose();
      this.audio = null;
    }
  }
}

代码示例来源:origin: crashinvaders/gdx-texture-packer-gui

private void saveWindowParams() {
    int width = Display.getWidth();
    int height = Display.getHeight();
    int x = Display.getX();
    int y = Display.getY();

    //FIXME For some reason actual window position shifted by 6 pixels on Windows (by 12 at y when maximized).
    if (LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_WINDOWS) {
      x += 6;
      y += 6;
    }

    Preferences prefs = Gdx.app.getPreferences("window_params.xml");
    prefs.putInteger("x", x);
    prefs.putInteger("y", y);
    prefs.putInteger("width", width);
    prefs.putInteger("height", height);
    prefs.flush();
  }
}

代码示例来源:origin: Var3D/var3dframe

setLocation(Display.getX()+sysX+1,Display.getY()+sysY);
}else setVisible(false);

代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl

graphics.config.y = Display.getY();
if (graphics.resize || Display.wasResized()
  || (int)(Display.getWidth() * Display.getPixelScaleFactor()) != graphics.config.width

代码示例来源:origin: org.mini2Dx/mini2Dx-desktop

graphics.config.y = Display.getY();
if (graphics.resize || Display.wasResized()
    || (int) (Display.getWidth() * Display.getPixelScaleFactor()) != graphics.config.width

相关文章