repo.or.cz
/
openc2e.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add support to SDLBackend for rendering 24bit data
[openc2e.git]
/
Backend.cpp
blob
b50fe3c5a814c96b12984af2cde142d2d2d9f178
1
#include
"Engine.h"
2
#include
"World.h"
3
#include
"Backend.h"
4
5
int
Backend
::
run
(
int
argc
,
char
**
argv
) {
6
resize
(
800
,
600
);
7
8
// do a first-pass draw of the world. TODO: correct?
9
world
.
drawWorld
();
10
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
15
16
return
0
;
17
}