diff --git a/MiniEngine.h b/MiniEngine.h index afaaa0b..e01195d 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -135,6 +135,7 @@ namespace MiniEngine class Renderer { public: + Renderer() = default; int setColor(RGBA pack); RGBA getColor(); int setBlendMode(BlendMode mode); @@ -163,7 +164,6 @@ namespace MiniEngine Texture loadTexture(std::string FileName) throw(ErrorViewer); Texture createTexture(int Width, int Height) throw(ErrorViewer); - Renderer() = default; bool isReady(); private: std::shared_ptr rnd; @@ -178,19 +178,19 @@ namespace MiniEngine Window(std::string Title, int Width, int Height, std::initializer_list RendererFlags = { RendererType::Accelerated,RendererType::TargetTexture }) throw(ErrorViewer); Renderer getRenderer() const; - template - void setRenderer(RendererType Type,Args&&... args) - { - _internal_rndflagcalc=0; - _setRenderer(Type,std::forward(args...)); - } - void setRenderer(RendererType Type) { _internal_rndflagcalc=0; _setRenderer(Type); } + template + void setRenderer(RendererType Type,Args&&... args) + { + _internal_rndflagcalc=0; + _setRenderer(Type,std::forward(args...)); + } + void setRenderer(std::initializer_list); Rect getSize();