From 5266b5d115251d7435bc23a63fa8c90cab5ae538 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 4 Feb 2020 20:49:10 +0100 Subject: [PATCH] add xApplication defaults --- xSDL/xApplication.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;