blob: 65d94de2244729888b91e5c5d7a95a2517b92529 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "video.h"
#include "scene.h"
#include "gl.h"
int main(int argc, char **argv) {
video::width = 1280;
video::height = 720;
video::init();
Scene scene;
//SDL_WM_GrabInput(SDL_GRAB_ON);
SDL_WarpMouse(video::width/2, video::height/2);
scene.last_time = SDL_GetTicks();
scene.update();
while(scene.running) {
scene.events();
scene.render();
SDL_Delay(1);
}
video::free();
return 0;
}
|