Answers for "lwjgl fullscreen"

C#
0

lwjgl fullscreen

if (Gdx.input.isKeyPressed(Input.Keys.TAB)){
    Boolean fullScreen = Gdx.graphics.isFullscreen();
        Graphics.DisplayMode currentMode = Gdx.graphics.getDisplayMode();
        if (fullScreen == true)
            Gdx.graphics.setWindowedMode(currentMode.width, currentMode.height);
        else
            Gdx.graphics.setFullscreenMode(currentMode);
}
Posted by: Guest on April-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language