diff --git a/xSDL/xApplication.h b/xSDL/xApplication.h index bf0b409..01961db 100644 --- a/xSDL/xApplication.h +++ b/xSDL/xApplication.h @@ -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 _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;