add xApplication defaults

This commit is contained in:
Adrien Marquès 2020-02-04 20:49:10 +01:00
parent 2b81a72542
commit 5266b5d115
1 changed files with 6 additions and 6 deletions

View File

@ -64,8 +64,8 @@
void syncFps();
// fps management
uint32_t _lasttick;
uint32_t _fpstime;
uint32_t _lasttick { 0 };
uint32_t _fpstime { (int) 1000.0/60 };
// event management
xController _controller;
@ -77,11 +77,11 @@
set<xOrchestrable*> _orchestrables;
// sdl objects
SDL_Window *_window;
SDL_Rect _winrect;
SDL_Window *_window { NULL };
SDL_Rect _winrect { 0, 0, 0, 0 };
SDL_Renderer *_renderer;
SDL_Texture *_texture;
SDL_Renderer *_renderer { NULL };
SDL_Texture *_texture { NULL };
// thread safety
mutex _mutex_draw;