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
|
@ -35,4 +35,11 @@ namespace cloonel {
|
|||
void Character::Destroy() noexcept {
|
||||
m_texture->Destroy();
|
||||
}
|
||||
|
||||
///-------------------------------------------------------------------------
|
||||
///-------------------------------------------------------------------------
|
||||
void Character::Draw() const {
|
||||
const int2 pos(m_pos + 0.5f);
|
||||
m_texture->Render(pos);
|
||||
}
|
||||
} //namespace cloonel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue