本文整理匯總了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);
}
}
}