Add fullscreen

This commit is contained in:
Miloslav Číž 2019-09-29 14:54:40 +02:00
parent fc235c9e52
commit 5dde1b357c
2 changed files with 9 additions and 0 deletions

View File

@ -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();

View File

@ -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).