本文整理了Java中org.lwjgl.opengl.Display.getX()
方法的一些代码示例,展示了Display.getX()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Display.getX()
方法的具体详情如下:
包路径:org.lwjgl.opengl.Display
类名称:Display
方法名:getX
暂无
代码示例来源: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.x = Display.getX();
graphics.config.y = Display.getY();
if (graphics.resize || Display.wasResized()
代码示例来源:origin: libgdx/libgdx
graphics.config.x = Display.getX();
graphics.config.y = Display.getY();
if (graphics.resize || Display.wasResized()
代码示例来源: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.x = Display.getX();
graphics.config.y = Display.getY();
if (graphics.resize || Display.wasResized()
代码示例来源:origin: org.mini2Dx/mini2Dx-desktop
graphics.config.x = Display.getX();
graphics.config.y = Display.getY();
if (graphics.resize || Display.wasResized()
内容来源于网络,如有侵权,请联系作者删除!