blob: 88a34dc286887a5be9b6a2aa94ade91229e0ea98 (
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
|
#include "main.h"
int main()
{
Window main;
Creature testcreature(main, "images/Cbasic.png");
Resource testresource(main, "images/Rbasic.png");
Event e;
while(e.gRun())
{
while(e.Poll())
{
if(e.gEventType() == SDL_QUIT)
e.off();
//else if(e.gEventType() == SDL_KEYDOWN)
// eventHandle(e.gEvent());
}
main.Clear();
testcreature.Place();
testresource.Place();
main.Render();
}
main.Destroy();
return 0;
}
|