It is too long to be a comment, so I will post it here first:
Maximum mode:
when calling CreateWindow or CreateWindowEx use WS_MAZIMIZE .
hwnd = CreateWindowEx( WS_EX_CLIENTEDGE, g_szClassName, "The title of my window", WS_MAZIMIZE, CW_USEDEFAULT, CW_USEDEFAULT, 240, 120, NULL, NULL, hInstance, NULL);
This thread may be of interest if you use GLUT.
The offer here was
I think you can maximize the window by setting the display location to 0px, 0px and get the DisplayMode desktop through Display.getDesktopDisplayMode (), and then set this DisplayMode as the new DisplayMode.
Full screen mode:
setDisplayModeAndFullscreen
public static void setDisplayModeAndFullscreen(DisplayMode mode) throws LWJGLException
- Set the context mode.
- If the context is not created using create (), the mode will be applied when calling create ().
- If
mode.isFullscreenCapable() is true , the context will become a full-screen context, and the display mode will switch to the mode specified by getDisplayMode() . - If
mode.isFullscreenCapable() is false , the context will become a window context with the dimensions specified in the mode returned by getDisplayMode(). . The custom cursor position is also reset.
Options:
mode - The new display mode to set. Must be non-null. Throws: LWJGLException - If the mode switch fails.
Found it here .
I also found this one that seems to give a list of arrays with possible screen modes, but I'm not sure if
source share