diff --git a/MiniEngine_Event.cpp b/MiniEngine_Event.cpp index d3e8720..14bd876 100644 --- a/MiniEngine_Event.cpp +++ b/MiniEngine_Event.cpp @@ -1,5 +1,8 @@ #include "MiniEngine_Event.h" +namespace MiniEngine +{ + int PollEvent(Event& refEvent) { return SDL_PollEvent(&refEvent); @@ -279,3 +282,5 @@ void LooperWithTime::run() } } } + +}/// End of namespace MiniEngine diff --git a/MiniEngine_Event.h b/MiniEngine_Event.h index b3c5ed4..8b0c8fb 100644 --- a/MiniEngine_Event.h +++ b/MiniEngine_Event.h @@ -4,6 +4,9 @@ #include #include +namespace MiniEngine +{ + typedef SDL_Event Event; typedef decltype(Event::type) _SDLEventType_; @@ -97,3 +100,5 @@ public: protected: int _timeout_ms; }; + +}/// End of namespace MiniEngine