wip model loading + workers

This commit is contained in:
veclavtalica
2025-02-07 10:19:36 +03:00
parent cb88b4bcc5
commit 7040d6f218
12 changed files with 1881 additions and 2 deletions

17
src/twn_workers_c.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef TWN_WORKERS_C_H
#define TWN_WORKERS_C_H
#include <SDL2/SDL.h>
#include <stdbool.h>
#define MAX_WORKERS 9
/* workers are waiting on this, increment this value when some work needs to be done */
/* for now every possible job path is hardcoded in twn_workers.c itself */
extern SDL_sem *workers_job_semaphore;
bool workers_init(size_t worker_count);
void workers_deinit(void);
#endif