Refactoring in SizeNotifiable.

Class is a template now and accepts a registraton policy.
This commit is contained in:
King_DuckZ 2014-03-20 20:21:59 +01:00
parent dbf29f13d1
commit d0a052ddb2
7 changed files with 122 additions and 22 deletions

View file

@ -42,9 +42,7 @@ namespace cloonel {
virtual void Draw ( void ) const;
private:
SizeNotifiable m_screenRatio;
size_t m_screenRatioID;
SDLMain* const m_sdlmain;
SizeNotifiable<regbehaviuors::AutoRegister> m_screenRatio;
const std::unique_ptr<Texture> m_texture;
};
} //unnamed namespace