PNG loading and major refactoring.

PNG loading is not working properly yet.
This commit is contained in:
King_DuckZ 2014-02-21 21:51:56 +01:00
parent d0893cba3a
commit 28bd73a1f7
17 changed files with 254 additions and 43 deletions

View file

@ -2,6 +2,7 @@
#define id0CEACFB045ED4C9F8688265AA41E30B0
#include "placeable.hpp"
#include "drawable.hpp"
#include "vector.hpp"
#include <string>
#include <memory>
@ -10,14 +11,15 @@ namespace cloonel {
class SDLMain;
class Texture;
class Character : public Placeable {
class Character : public Placeable, public Drawable {
public:
Character ( const std::string& parPath, SDLMain* parMain );
Character ( const std::string&& parPath, SDLMain* parMain );
~Character ( void ) noexcept;
virtual ~Character ( void ) noexcept;
void Prepare ( void );
void Destroy ( void ) noexcept;
virtual void Draw ( void ) const;
private:
const std::unique_ptr<Texture> m_texture;