本文整理汇总了Java中org.lwjgl.opengl.Display.getDesktopDisplayMode方法的典型用法代码示例。如果您正苦于以下问题:Java Display.getDesktopDisplayMode方法的具体用法?Java Display.getDesktopDisplayMode怎么用?Java Display.getDesktopDisplayMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.Display
的用法示例。
在下文中一共展示了Display.getDesktopDisplayMode方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSuitableFullScreenModes
import org.lwjgl.opengl.Display; //导入方法依赖的package包/类
private void getSuitableFullScreenModes() throws LWJGLException {
DisplayMode[] resolutions = Display.getAvailableDisplayModes();
DisplayMode desktopResolution = Display.getDesktopDisplayMode();
for (DisplayMode resolution : resolutions) {
if (isSuitableFullScreenResolution(resolution, desktopResolution)) {
availableResolutions.add(resolution);
}
}
}
示例2: initGameSettings
import org.lwjgl.opengl.Display; //导入方法依赖的package包/类
public static void initGameSettings(GameSettings p_initGameSettings_0_)
{
if (gameSettings == null)
{
gameSettings = p_initGameSettings_0_;
minecraft = Minecraft.getMinecraft();
desktopDisplayMode = Display.getDesktopDisplayMode();
updateAvailableProcessors();
ReflectorForge.putLaunchBlackboard("optifine.ForgeSplashCompatible", Boolean.TRUE);
}
}
示例3: initGameSettings
import org.lwjgl.opengl.Display; //导入方法依赖的package包/类
public static void initGameSettings(GameSettings p_initGameSettings_0_)
{
gameSettings = p_initGameSettings_0_;
minecraft = Minecraft.getMinecraft();
desktopDisplayMode = Display.getDesktopDisplayMode();
updateAvailableProcessors();
}
示例4: initGameSettings
import org.lwjgl.opengl.Display; //导入方法依赖的package包/类
public static void initGameSettings(GameSettings p_initGameSettings_0_)
{
if (gameSettings == null)
{
gameSettings = p_initGameSettings_0_;
desktopDisplayMode = Display.getDesktopDisplayMode();
updateAvailableProcessors();
ReflectorForge.putLaunchBlackboard("optifine.ForgeSplashCompatible", Boolean.TRUE);
}
}
示例5: getSuitableFullScreenModes
import org.lwjgl.opengl.Display; //导入方法依赖的package包/类
private void getSuitableFullScreenModes() throws LWJGLException {
DisplayMode[] resolutions = Display.getAvailableDisplayModes();
DisplayMode desktopResolution = Display.getDesktopDisplayMode();
for (DisplayMode resolution : resolutions) {
if (isSuitableFullScreenResolution(resolution, desktopResolution)) {
availableResolutions.add(resolution);
}
}
}