Use the new notifiable system to scale the character.
This commit is contained in:
parent
85d57fd681
commit
dbf29f13d1
10 changed files with 28 additions and 16 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "placeable.hpp"
|
||||
#include "drawable.hpp"
|
||||
#include "vector.hpp"
|
||||
#include "sizenotifiable.hpp"
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
|
@ -41,6 +42,9 @@ namespace cloonel {
|
|||
virtual void Draw ( void ) const;
|
||||
|
||||
private:
|
||||
SizeNotifiable m_screenRatio;
|
||||
size_t m_screenRatioID;
|
||||
SDLMain* const m_sdlmain;
|
||||
const std::unique_ptr<Texture> m_texture;
|
||||
};
|
||||
} //unnamed namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue