[WIP] Refactor project
There are many problems with the way the current version is provided and maintained. This commit or series of commits will fix this.
This commit is contained in:
1 parent
f5ab5f3f27
commit
173a82b9d1
63 files changed
+2663
-2239
No files matched your search
@@ -1,19 +1,21 @@
|
||||
#include "graphics/graphics.h"
|
||||
#include "graphics/rse_graphics.h"
|
||||
#include "utilities/rse_task.h"
|
||||
#include "utilities/task.h"
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
rse_thread_t graphics_task;
|
||||
thread_t graphics_task;
|
||||
struct rse_graphics_context_t* context = NULL;
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
rse_graphics_init();
|
||||
rse_graphics_test_function();
|
||||
rse_create_task(&graphics_task, (thread_worker_t)rse_graphics_run, NULL);
|
||||
rse_graphics_init(context);
|
||||
rse_graphics_test_function(context);
|
||||
create_task(&graphics_task, (thread_worker_t)rse_graphics_run, context);
|
||||
|
||||
rse_task_join(&graphics_task);
|
||||
rse_task_exit();
|
||||
task_join(&graphics_task);
|
||||
task_exit();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user