From e135eb35ac11adc57a988e32fed026bafef85994 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Sat, 7 Jan 2017 09:58:51 +0800 Subject: [PATCH] [Small Change] SDL Engine Declaration Changed. --- sdl_engine.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/sdl_engine.h b/sdl_engine.h index f85cb44..5314b53 100644 --- a/sdl_engine.h +++ b/sdl_engine.h @@ -45,9 +45,7 @@ public: Window(int winw,int winh); ~Window(); - Window(Window&&); - Window(const Window&); - Window& operator = (const Window&); + _SDL_ENGINE_IMPL_COPY_DECL(Window); Renderer getRenderer(); void resetRenderer(); @@ -56,8 +54,7 @@ public: void setSize(Rect r); private: - struct impl; - impl* pimpl; + _SDL_ENGINE_IMPL }; class Surface @@ -68,8 +65,7 @@ public: protected: Surface(); private: - struct impl; - impl* pimpl; + _SDL_ENGINE_IMPL friend class Renderer; friend class Font; }; @@ -92,8 +88,7 @@ public: protected: Renderer(); private: - struct impl; - impl* pimpl; + _SDL_ENGINE_IMPL friend class Window; }; @@ -107,8 +102,7 @@ public: protected: Texture(); private: - struct impl; - impl* pimpl; + _SDL_ENGINE_IMPL friend class Renderer; }; @@ -142,8 +136,7 @@ public: Texture renderUTF8Shaded(Renderer rnd,const char* Word,RGBA fg,RGBA bg); Texture renderUTF8Solid(Renderer rnd,const char* Word,RGBA fg); private: - struct impl; - impl* pimpl; + _SDL_ENGINE_IMPL }; }/// End of namespace Engine