Console input
This commit is contained in:
17
src/main.c
17
src/main.c
@@ -7,22 +7,11 @@
|
||||
|
||||
#include "engine/engine.h"
|
||||
|
||||
#include "thread/thread.h"
|
||||
thread_t thread;
|
||||
threadmutex_t mutex;
|
||||
|
||||
void myCoolThread(thread_t *thread) {
|
||||
printf("Hello from myCoolThread!\n");
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
threadInit(&thread, myCoolThread);
|
||||
threadStart(&thread);
|
||||
threadStop(&thread);
|
||||
return 0;
|
||||
|
||||
engineInit();
|
||||
for(;;) engineUpdate();
|
||||
do {
|
||||
engineUpdate();
|
||||
} while(ENGINE.running);
|
||||
engineDispose();
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user