PNG loading and major refactoring.
PNG loading is not working properly yet.
This commit is contained in:
parent
d0893cba3a
commit
28bd73a1f7
17 changed files with 254 additions and 43 deletions
|
@ -4,16 +4,24 @@
|
|||
#include "vector.hpp"
|
||||
|
||||
namespace cloonel {
|
||||
class Mover;
|
||||
|
||||
class Placeable {
|
||||
public:
|
||||
const float2& GetPos ( void ) const noexcept { return m_pos; }
|
||||
void AddOffset ( const float2& parOffset ) noexcept { m_pos += parOffset; }
|
||||
|
||||
void SwapMover ( Mover* parMover );
|
||||
|
||||
protected:
|
||||
Placeable ( float parX, float parY );
|
||||
~Placeable ( void ) noexcept = default;
|
||||
|
||||
float2 m_pos;
|
||||
|
||||
private:
|
||||
Mover* m_mover;
|
||||
int m_idForMover;
|
||||
};
|
||||
} //namespace cloonel
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue