7#if defined( __cplusplus )
8 #define COGSCORE_EXTERN_C extern "C"
10 #define COGSCORE_EXTERN_C
14 #if defined( COGSCORE_BUILD )
15 #if defined( COGSCORE_DLL )
16 #define COGSCORE_BRIDGE COGSCORE_EXTERN_C __declspec(dllexport)
19 #if defined( COGSCORE_DLL )
20 #define COGSCORE_BRIDGE COGSCORE_EXTERN_C __declspec(dllimport)
23#elif defined( EMSCRIPTEN )
24 #include <emscripten/emscripten.h>
25 #define COGSCORE_BRIDGE COGSCORE_EXTERN_C EMSCRIPTEN_KEEPALIVE
27#if !defined( COGSCORE_BRIDGE )
28 #define COGSCORE_BRIDGE COGSCORE_EXTERN_C
33 typedef int ComponentId;
34 typedef int ResourceId;
36 typedef size_t EntityId;
37 typedef uint16_t ComponentId;
38 typedef int ResourceId;
41#if defined( __cplusplus )
45 constexpr EntityId NoEntity =
static_cast<EntityId
>(-1);
46 constexpr ComponentId NoComponentId =
static_cast<ComponentId
>(-1);
47 constexpr ResourceId NoResourceId =
static_cast<ResourceId
>(-1);
51 #define NoComponentId (-1)
52 #define NoResourceId (-1)
57typedef void BridgeContext;
61typedef void BridgeView;
64typedef uint16_t FieldId;
67typedef size_t PointerId;
72typedef const char* (*GetClipboardTextFn)(
void*);
73typedef void (*SetClipboardTextFn)(
void*,
const char*);
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....