New code, WiP.

New Path, Character and other simple classes, but a renderer is missing so now nothing gets displayed anymore.
This commit is contained in:
King_DuckZ 2014-02-12 00:27:55 +01:00
parent 8b11e76835
commit bcc0937726
13 changed files with 179 additions and 27 deletions

30
src/character.cpp Normal file
View file

@ -0,0 +1,30 @@
#include "character.hpp"
#include "sdlmain.hpp"
#include "texture.hpp"
namespace cloonel {
///-------------------------------------------------------------------------
///-------------------------------------------------------------------------
Character::Character (const std::string& parPath, SDLMain* parMain) :
Placeable(0.0f, 0.0f),
m_texture(new Texture(parPath, parMain, false))
{
}
///-------------------------------------------------------------------------
///-------------------------------------------------------------------------
Character::~Character() noexcept {
}
///-------------------------------------------------------------------------
///-------------------------------------------------------------------------
void Character::Prepare() {
m_texture->Reload();
}
///-------------------------------------------------------------------------
///-------------------------------------------------------------------------
void Character::Destroy() noexcept {
m_texture->Destroy();
}
} //namespace cloonel