本文整理了Java中org.lwjgl.opengl.Display.setVSyncEnabled()
方法的一些代码示例,展示了Display.setVSyncEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Display.setVSyncEnabled()
方法的具体详情如下:
包路径:org.lwjgl.opengl.Display
类名称:Display
方法名:setVSyncEnabled
暂无
代码示例来源:origin: libgdx/libgdx
@Override
public void setVSync (boolean vsync) {
this.vsync = vsync;
Display.setVSyncEnabled(vsync);
}
代码示例来源:origin: libgdx/libgdx
@Override
public void setVSync (boolean vsync) {
this.vsync = vsync;
Display.setVSyncEnabled(vsync);
}
代码示例来源:origin: MovingBlocks/Terasology
Display.setVSyncEnabled(config.isVSync());
} catch (LWJGLException e) {
throw new RuntimeException("Can not initialize graphics device.", e);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
Display.setVSyncEnabled(settings.isVSync());
Display.setParent(canvas);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
Display.setVSyncEnabled(settings.isVSync());
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl
@Override
public void setVSync (boolean vsync) {
this.vsync = vsync;
Display.setVSyncEnabled(vsync);
}
代码示例来源:origin: org.slick2d/slick2d-core
/**
* Indicate whether the display should be synced to the
* vertical refresh (stops tearing)
*
* @param vsync True if we want to sync to vertical refresh
*/
public void setVSync(boolean vsync) {
this.vsync = vsync;
Display.setVSyncEnabled(vsync);
}
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
public void setVSyncEnabled(final boolean enabled) {
Display.setVSyncEnabled(enabled);
}
}
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
public void setVSyncEnabled(final boolean enabled) {
Display.setVSyncEnabled(enabled);
}
代码示例来源:origin: org.slick2d/slick2d-core
/**
* Start the game container
*
* @throws Exception Failure to create display
*/
public void start() throws Exception {
Display.setParent(displayParent);
Display.setVSyncEnabled(true);
try {
createDisplay();
} catch (LWJGLException e) {
e.printStackTrace();
// failed to create Display, apply workaround (sleep for 1 second) and try again
Thread.sleep(1000);
createDisplay();
}
initGL();
displayParent.requestFocus();
container.runloop();
}
代码示例来源:origin: org.ode4j/demo
Display.setDisplayMode(new DisplayMode(_width, _height));
Display.setTitle("Simulation");
Display.setVSyncEnabled(true); //for VSync (TZ)
Display.create();
} catch (LWJGLException e) {
代码示例来源:origin: MrCrayfish/ModelCreator
Display.setVSyncEnabled(true);
Display.setInitialBackground(0.92F, 0.92F, 0.93F);
Display.setParent(canvas);
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl
Display.setVSyncEnabled(settings.isVSync());
Display.setParent(canvas);
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl
Display.setVSyncEnabled(settings.isVSync());
内容来源于网络,如有侵权,请联系作者删除!