本文整理了Java中org.lwjgl.opengl.Display.setFullscreen()
方法的一些代码示例,展示了Display.setFullscreen()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Display.setFullscreen()
方法的具体详情如下:
包路径:org.lwjgl.opengl.Display
类名称:Display
方法名:setFullscreen
暂无
代码示例来源:origin: MovingBlocks/Terasology
private void updateFullScreenDisplay() throws LWJGLException {
Display.setDisplayMode(getFullScreenDisplayMode());
Display.setFullscreen(true);
Display.setLocation(0, 0);
}
代码示例来源:origin: MovingBlocks/Terasology
Display.setDisplayMode(Display.getDesktopDisplayMode());
Display.setLocation(0, 0);
Display.setFullscreen(false);
config.setDisplayModeSetting(displayModeSetting);
config.setWindowedFullscreen(true);
Display.setDisplayMode(config.getDisplayMode());
Display.setLocation(config.getWindowPosX(), config.getWindowPosY());
Display.setFullscreen(false);
Display.setResizable(true);
config.setDisplayModeSetting(displayModeSetting);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
Display.setDisplayModeAndFullscreen(displayMode);
} else {
Display.setFullscreen(false);
Display.setDisplayMode(displayMode);
Display.setFullscreen(settings.isFullscreen());
代码示例来源:origin: libgdx/libgdx
Display.setFullscreen(fullscreen);
代码示例来源:origin: libgdx/libgdx
Display.setFullscreen(fullscreen);
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
public void setFullScreen(final boolean fullScreen) throws LWJGLException {
Display.setFullscreen(fullScreen);
}
代码示例来源:origin: org.slick2d/slick2d-core
/**
* Indicate whether we want to be in fullscreen mode. Note that the current
* display mode must be valid as a fullscreen mode for this to work
*
* @param fullscreen True if we want to be in fullscreen mode
* @throws SlickException Indicates we failed to change the display mode
*/
public void setFullscreen(boolean fullscreen) throws SlickException {
if (isFullscreen() == fullscreen) {
return;
}
if (!fullscreen) {
try {
Display.setFullscreen(fullscreen);
} catch (LWJGLException e) {
throw new SlickException("Unable to set fullscreen="+fullscreen, e);
}
} else {
setDisplayMode(width, height, fullscreen);
}
getDelta();
}
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
Display.setFullscreen(_settings.isFullScreen());
Display.create(format);
} catch (final Exception e) {
代码示例来源:origin: CallForSanity/Gaalop
/**
* Starts the lwjgl engine and shows a window, where the point clouds are rendered
*/
public void startEngine() {
int width = 800;
int height = 600;
try {
Display.setDisplayMode(new DisplayMode(width, height));
Display.setFullscreen(false);
Display.setTitle("Gaalop Visualization Window");
Display.create();
} catch (LWJGLException e) {
e.printStackTrace();
System.exit(0);
}
GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glShadeModel(GL11.GL_SMOOTH);
changeSize(width, height);
GL11.glDisable(GL11.GL_LIGHTING);
// init OpenGL
GL11.glViewport(0, 0, width, height);
GL11.glMatrixMode(GL11.GL_PROJECTION);
GL11.glLoadIdentity();
GLU.gluPerspective((float) 65.0, (float) width / (float) height, (float) 0.1, 100);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
}
代码示例来源:origin: org.slick2d/slick2d-core
Display.setFullscreen(true);
} else {
Display.setFullscreen(false);
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl
Display.setDisplayModeAndFullscreen(displayMode);
} else {
Display.setFullscreen(false);
Display.setDisplayMode(displayMode);
Display.setFullscreen(settings.isFullscreen());
代码示例来源:origin: org.slick2d/slick2d-core
Display.setFullscreen(fullscreen);
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl
Display.setFullscreen(fullscreen);
内容来源于网络,如有侵权,请联系作者删除!