Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Capp.h"
- CApp::CApp()
- {
- Surf_Display = NULL;
- Running = true;
- X = 1000;
- Y = 700;
- }
- int CApp::onExecute()
- {
- if(OnInit() == false)
- return -1;
- SDL_Event Event;
- while(Running)
- {
- while(SDL_PollEvent(&Event))
- {
- OnEvent(&Event);
- }
- OnLoop();
- OnRender();
- }
- OnCleanUp();
- return 0;
- }
- int CApp::RetrieveX()
- {
- return X;
- }
- int CApp::RetrieveY()
- {
- return Y;
- }
- int main(int argc, char *argv[])
- {
- CApp theApp;
- return theApp.onExecute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement