Flecs v3.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
API defines

Defines for customizing compile time features. More...

Macros

#define ecs_float_t   float
 Customizable precision for floating point operations. More...
 
#define ecs_ftime_t   ecs_float_t
 Customizable precision for scalar time values. More...
 
#define FLECS_NO_DEPRECATED_WARNINGS
 disables deprecated warnings More...
 
#define FLECS_DEBUG
 Used for input parameter checking and cheap sanity checks. More...
 
#define FLECS_CPP
 C++ API. More...
 
#define FLECS_MODULE
 Module support. More...
 
#define FLECS_PARSER
 String parser for queries. More...
 
#define FLECS_PLECS
 ECS data definition format. More...
 
#define FLECS_RULES
 Constraint solver for advanced queries. More...
 
#define FLECS_SNAPSHOT
 Snapshot & restore ECS data. More...
 
#define FLECS_STATS
 Access runtime statistics. More...
 
#define FLECS_MONITOR
 Track runtime statistics periodically. More...
 
#define FLECS_SYSTEM
 System support. More...
 
#define FLECS_PIPELINE
 Pipeline support. More...
 
#define FLECS_TIMER
 Timer support. More...
 
#define FLECS_META
 Reflection support. More...
 
#define FLECS_META_C
 Utilities for populating reflection data. More...
 
#define FLECS_UNITS
 Builtin standard units. More...
 
#define FLECS_EXPR
 Parsing strings to/from component values. More...
 
#define FLECS_JSON
 Parsing JSON to/from component values. More...
 
#define FLECS_DOC
 Document entities & components. More...
 
#define FLECS_COREDOC
 Documentation for core entities & components. More...
 
#define FLECS_LOG
 When enabled ECS provides more detailed logs. More...
 
#define FLECS_APP
 Application addon. More...
 
#define FLECS_OS_API_IMPL
 Default implementation for OS API. More...
 
#define FLECS_HTTP
 Tiny HTTP server for connecting to remote UI. More...
 
#define FLECS_REST
 REST API for querying application data. More...
 
#define ECS_ID_CACHE_SIZE   (32)
 Maximum number of components to add/remove in a single operation. More...
 
#define ECS_TERM_DESC_CACHE_SIZE   (16)
 Maximum number of terms in desc (larger, as these are temp objects) More...
 
#define ECS_OBSERVER_DESC_EVENT_COUNT_MAX   (8)
 Maximum number of events to set in static array of observer descriptor. More...
 
#define ECS_VARIABLE_COUNT_MAX   (64)
 Maximum number of query variables per query. More...
 

Detailed Description

Defines for customizing compile time features.

Macro Definition Documentation

◆ ecs_float_t

#define ecs_float_t   float

Customizable precision for floating point operations.

Definition at line 35 of file flecs.h.

◆ ecs_ftime_t

#define ecs_ftime_t   ecs_float_t

Customizable precision for scalar time values.

Change to double precision for processes that can run for a long time (e.g. longer than a day).

Definition at line 42 of file flecs.h.

◆ ECS_ID_CACHE_SIZE

#define ECS_ID_CACHE_SIZE   (32)

Maximum number of components to add/remove in a single operation.

Definition at line 172 of file flecs.h.

◆ ECS_OBSERVER_DESC_EVENT_COUNT_MAX

#define ECS_OBSERVER_DESC_EVENT_COUNT_MAX   (8)

Maximum number of events to set in static array of observer descriptor.

Definition at line 181 of file flecs.h.

◆ ECS_TERM_DESC_CACHE_SIZE

#define ECS_TERM_DESC_CACHE_SIZE   (16)

Maximum number of terms in desc (larger, as these are temp objects)

Definition at line 177 of file flecs.h.

◆ ECS_VARIABLE_COUNT_MAX

#define ECS_VARIABLE_COUNT_MAX   (64)

Maximum number of query variables per query.

Definition at line 185 of file flecs.h.

◆ FLECS_APP

#define FLECS_APP

Application addon.

Definition at line 162 of file flecs.h.

◆ FLECS_COREDOC

#define FLECS_COREDOC

Documentation for core entities & components.

Definition at line 160 of file flecs.h.

◆ FLECS_CPP

#define FLECS_CPP

C++ API.

Definition at line 143 of file flecs.h.

◆ FLECS_DEBUG

#define FLECS_DEBUG

Used for input parameter checking and cheap sanity checks.

There are lots of asserts in every part of the code, so this will slow down applications.

Definition at line 78 of file flecs.h.

◆ FLECS_DOC

#define FLECS_DOC

Document entities & components.

Definition at line 159 of file flecs.h.

◆ FLECS_EXPR

#define FLECS_EXPR

Parsing strings to/from component values.

Definition at line 157 of file flecs.h.

◆ FLECS_HTTP

#define FLECS_HTTP

Tiny HTTP server for connecting to remote UI.

Definition at line 164 of file flecs.h.

◆ FLECS_JSON

#define FLECS_JSON

Parsing JSON to/from component values.

Definition at line 158 of file flecs.h.

◆ FLECS_LOG

#define FLECS_LOG

When enabled ECS provides more detailed logs.

Definition at line 161 of file flecs.h.

◆ FLECS_META

#define FLECS_META

Reflection support.

Definition at line 154 of file flecs.h.

◆ FLECS_META_C

#define FLECS_META_C

Utilities for populating reflection data.

Definition at line 155 of file flecs.h.

◆ FLECS_MODULE

#define FLECS_MODULE

Module support.

Definition at line 144 of file flecs.h.

◆ FLECS_MONITOR

#define FLECS_MONITOR

Track runtime statistics periodically.

Definition at line 150 of file flecs.h.

◆ FLECS_NO_DEPRECATED_WARNINGS

#define FLECS_NO_DEPRECATED_WARNINGS

disables deprecated warnings

Definition at line 53 of file flecs.h.

◆ FLECS_OS_API_IMPL

#define FLECS_OS_API_IMPL

Default implementation for OS API.

Definition at line 163 of file flecs.h.

◆ FLECS_PARSER

#define FLECS_PARSER

String parser for queries.

Definition at line 145 of file flecs.h.

◆ FLECS_PIPELINE

#define FLECS_PIPELINE

Pipeline support.

Definition at line 152 of file flecs.h.

◆ FLECS_PLECS

#define FLECS_PLECS

ECS data definition format.

Definition at line 146 of file flecs.h.

◆ FLECS_REST

#define FLECS_REST

REST API for querying application data.

Definition at line 165 of file flecs.h.

◆ FLECS_RULES

#define FLECS_RULES

Constraint solver for advanced queries.

Definition at line 147 of file flecs.h.

◆ FLECS_SNAPSHOT

#define FLECS_SNAPSHOT

Snapshot & restore ECS data.

Definition at line 148 of file flecs.h.

◆ FLECS_STATS

#define FLECS_STATS

Access runtime statistics.

Definition at line 149 of file flecs.h.

◆ FLECS_SYSTEM

#define FLECS_SYSTEM

System support.

Definition at line 151 of file flecs.h.

◆ FLECS_TIMER

#define FLECS_TIMER

Timer support.

Definition at line 153 of file flecs.h.

◆ FLECS_UNITS

#define FLECS_UNITS

Builtin standard units.

Definition at line 156 of file flecs.h.