20 lines
316 B
C
20 lines
316 B
C
|
#include "fumocommon.h"
|
||
|
#include "allocator.h"
|
||
|
#include "controller.h"
|
||
|
|
||
|
#define ENGINE_HEAP_SIZE 262144
|
||
|
|
||
|
|
||
|
struct Instance {
|
||
|
struct Controller ctrl;
|
||
|
|
||
|
nsec time;
|
||
|
}
|
||
|
|
||
|
|
||
|
void CreateInstance(struct Instance *inst, void *heap, usize heap_size)
|
||
|
{
|
||
|
CreateController(&inst->ctrl, &inst->pool, 16);
|
||
|
|
||
|
struct Controller ctrl;
|
||
|
}
|