New code and data to get something on screen.

WiP.
This commit is contained in:
King_DuckZ 2014-02-09 00:32:11 +01:00
parent 2429229a95
commit a8f8d50129
10 changed files with 157 additions and 0 deletions

30
src/gamebase.hpp Normal file
View file

@ -0,0 +1,30 @@
#ifndef id8C7FE975525B4329BFBEAF364D934EAD
#define id8C7FE975525B4329BFBEAF364D934EAD
#include <memory>
namespace cloonel {
class SDLMain;
class Texture;
class GameBase {
public:
void Exec ( float parDelta );
protected:
explicit GameBase ( SDLMain* parSdlMain );
virtual ~GameBase ( void ) noexcept;
virtual void Prepare ( void ) = 0;
virtual void Destroy ( void ) noexcept = 0;
std::unique_ptr<Texture> LoadTexture ( const char* parPath );
private:
virtual void OnRender ( void ) = 0;
SDLMain* const m_sdlmain;
};
} //namespace cloonel
#endif