Properly link flecs library
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#ifndef ${id upper}_H
|
||||
#define ${id upper}_H
|
||||
|
||||
/* This generated file contains includes for project dependencies */
|
||||
#include "${id dash}/bake_config.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
7
engine/libs/flecs/templates/c/flecs/project.json
Normal file
7
engine/libs/flecs/templates/c/flecs/project.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"id": "flecs",
|
||||
"type": "template",
|
||||
"value": {
|
||||
"use": ["flecs"]
|
||||
}
|
||||
}
|
||||
16
engine/libs/flecs/templates/c/flecs/src/main.c
Normal file
16
engine/libs/flecs/templates/c/flecs/src/main.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <${id underscore}.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
ecs_world_t *world = ecs_init_w_args(argc, argv);
|
||||
|
||||
/* Set target FPS for main loop */
|
||||
ecs_set_target_fps(world, 60);
|
||||
|
||||
printf("Application ${id} is running, press CTRL-C to exit...\n");
|
||||
|
||||
/* Run systems */
|
||||
while ( ecs_progress(world, 0));
|
||||
|
||||
return ecs_fini(world);
|
||||
}
|
||||
Reference in New Issue
Block a user