add support to SDLBackend for rendering 24bit data
[openc2e.git] / Backend.cpp
blobb50fe3c5a814c96b12984af2cde142d2d2d9f178
1 #include "Engine.h"
2 #include "World.h"
3 #include "Backend.h"
5 int Backend::run(int argc, char **argv) {
6 resize(800, 600);
8 // do a first-pass draw of the world. TODO: correct?
9 world.drawWorld();
11 while (!engine.done) {
12 if (!engine.tick()) // if the engine didn't need an update..
13 delay(10); // .. delay for a short while
14 } // main loop
16 return 0;