Created the basic program flow

This commit is contained in:
Kayne Ruse
2013-05-11 23:51:02 +10:00
parent 4671afe900
commit 6a19d0a312
16 changed files with 470 additions and 17 deletions
+69
View File
@@ -0,0 +1,69 @@
#include "splash.hpp"
#include <iostream>
using namespace std;
//-------------------------
//Public access members
//-------------------------
Splash::Splash() {
#ifdef DEBUG
cout << "entering Splash" << endl;
#endif
}
Splash::~Splash() {
#ifdef DEBUG
cout << "leaving Splash" << endl;
#endif
}
//-------------------------
//Frame loop
//-------------------------
void Splash::FrameStart() {
//
}
void Splash::FrameEnd() {
//
}
void Splash::Update() {
//
}
void Splash::Render(SDL_Surface* const screen) {
//
}
//-------------------------
//Event handlers
//-------------------------
void Splash::MouseMotion(SDL_MouseMotionEvent const& motion) {
//
}
void Splash::MouseButtonDown(SDL_MouseButtonEvent const& button) {
//
}
void Splash::MouseButtonUp(SDL_MouseButtonEvent const& button) {
//
}
void Splash::KeyDown(SDL_KeyboardEvent const& key) {
switch(key.keysym.sym) {
case SDLK_ESCAPE:
QuitEvent();
break;
}
}
void Splash::KeyUp(SDL_KeyboardEvent const& key) {
//
}