Continue working on pipeline
This commit is contained in:
1 parent
45be08019e
commit
bd05c03a12
28 files changed
+453
-423
No files matched your search
@@ -1,22 +1,29 @@
|
||||
#include "graphics/rse_graphics.h"
|
||||
#include "utilities/task.h"
|
||||
#include "utilities/errors_common.h"
|
||||
#include "utilities/localization.h"
|
||||
#include "utilities/logger.h"
|
||||
#include "SDL3/SDL_thread.h"
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
rse_err_t status = RSE_ERROR_NO_ERROR;
|
||||
thread_t graphics_task;
|
||||
struct rse_graphics_context_t* context = NULL;
|
||||
SDL_Thread* graphics_task = NULL;
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
STATUS_CHECK(rse_graphics_init(&context));
|
||||
rse_graphics_test_function(context);
|
||||
create_task(&graphics_task, (thread_worker_t)rse_graphics_run, context);
|
||||
|
||||
task_join(&graphics_task);
|
||||
task_exit();
|
||||
graphics_task = SDL_CreateThread(rse_graphics_run, "graphics_task", (void*) context);
|
||||
|
||||
if (NULL == graphics_task) {
|
||||
LOGE(_("Failed to create graphics task"));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
SDL_WaitThread(graphics_task, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user