Add fullscreen

merge-requests/1/head
Miloslav Číž 4 years ago
parent fc235c9e52
commit 5dde1b357c

@ -66,6 +66,10 @@ int main()
SDL_Surface *screenSurface = SDL_GetWindowSurface(window);
#if SFG_FULLSCREEN
SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN_DESKTOP);
#endif
sdlKeyboardState = SDL_GetKeyboardState(NULL);
SFG_init();

@ -5,6 +5,11 @@
#define SFG_RESOLUTION_X 1024
#define SFG_RESOLUTION_Y 768
/**
Hint as to whether run in fullscreen, if the platform allows it.
*/
#define SFG_FULLSCREEN 0
/**
Whether shadows (fog) should be dithered, i.e. more smooth (needs a bit more
performance).

Loading…
Cancel
Save