Flecs: include/flecs/addons/units.h Source File
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
units.h
Go to the documentation of this file.
1
24
25#ifdef FLECS_UNITS
26
34
35#ifndef FLECS_MODULE
36#define FLECS_MODULE
37#endif
38
39#ifndef FLECS_META
40#define FLECS_META
41#endif
42
43#ifndef FLECS_UNITS_H
44#define FLECS_UNITS_H
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
57
58FLECS_API extern ecs_entity_t EcsUnitPrefixes;
59
60FLECS_API extern ecs_entity_t EcsYocto;
61FLECS_API extern ecs_entity_t EcsZepto;
62FLECS_API extern ecs_entity_t EcsAtto;
63FLECS_API extern ecs_entity_t EcsFemto;
64FLECS_API extern ecs_entity_t EcsPico;
65FLECS_API extern ecs_entity_t EcsNano;
66FLECS_API extern ecs_entity_t EcsMicro;
67FLECS_API extern ecs_entity_t EcsMilli;
68FLECS_API extern ecs_entity_t EcsCenti;
69FLECS_API extern ecs_entity_t EcsDeci;
70FLECS_API extern ecs_entity_t EcsDeca;
71FLECS_API extern ecs_entity_t EcsHecto;
72FLECS_API extern ecs_entity_t EcsKilo;
73FLECS_API extern ecs_entity_t EcsMega;
74FLECS_API extern ecs_entity_t EcsGiga;
75FLECS_API extern ecs_entity_t EcsTera;
76FLECS_API extern ecs_entity_t EcsPeta;
77FLECS_API extern ecs_entity_t EcsExa;
78FLECS_API extern ecs_entity_t EcsZetta;
79FLECS_API extern ecs_entity_t EcsYotta;
80
81FLECS_API extern ecs_entity_t EcsKibi;
82FLECS_API extern ecs_entity_t EcsMebi;
83FLECS_API extern ecs_entity_t EcsGibi;
84FLECS_API extern ecs_entity_t EcsTebi;
85FLECS_API extern ecs_entity_t EcsPebi;
86FLECS_API extern ecs_entity_t EcsExbi;
87FLECS_API extern ecs_entity_t EcsZebi;
88FLECS_API extern ecs_entity_t EcsYobi;
89
91
97
98FLECS_API extern ecs_entity_t EcsDuration;
99FLECS_API extern ecs_entity_t EcsPicoSeconds;
100FLECS_API extern ecs_entity_t EcsNanoSeconds;
101FLECS_API extern ecs_entity_t EcsMicroSeconds;
102FLECS_API extern ecs_entity_t EcsMilliSeconds;
103FLECS_API extern ecs_entity_t EcsSeconds;
104FLECS_API extern ecs_entity_t EcsMinutes;
105FLECS_API extern ecs_entity_t EcsHours;
106FLECS_API extern ecs_entity_t EcsDays;
107
109
115
116FLECS_API extern ecs_entity_t EcsTime;
117FLECS_API extern ecs_entity_t EcsDate;
118
120
126
127FLECS_API extern ecs_entity_t EcsMass;
128FLECS_API extern ecs_entity_t EcsGrams;
129FLECS_API extern ecs_entity_t EcsKiloGrams;
130
132
138
139FLECS_API extern ecs_entity_t EcsElectricCurrent;
140FLECS_API extern ecs_entity_t EcsAmpere;
141
143
149
150FLECS_API extern ecs_entity_t EcsAmount;
151FLECS_API extern ecs_entity_t EcsMole;
152
154
160
161FLECS_API extern ecs_entity_t EcsLuminousIntensity;
162FLECS_API extern ecs_entity_t EcsCandela;
163
165
171
172FLECS_API extern ecs_entity_t EcsForce;
173FLECS_API extern ecs_entity_t EcsNewton;
174
176
182
183FLECS_API extern ecs_entity_t EcsLength;
184FLECS_API extern ecs_entity_t EcsMeters;
185FLECS_API extern ecs_entity_t EcsPicoMeters;
186FLECS_API extern ecs_entity_t EcsNanoMeters;
187FLECS_API extern ecs_entity_t EcsMicroMeters;
188FLECS_API extern ecs_entity_t EcsMilliMeters;
189FLECS_API extern ecs_entity_t EcsCentiMeters;
190FLECS_API extern ecs_entity_t EcsKiloMeters;
191FLECS_API extern ecs_entity_t EcsMiles;
192FLECS_API extern ecs_entity_t EcsPixels;
193
195
201
202FLECS_API extern ecs_entity_t EcsPressure;
203FLECS_API extern ecs_entity_t EcsPascal;
204FLECS_API extern ecs_entity_t EcsBar;
205
207
213
214FLECS_API extern ecs_entity_t EcsSpeed;
215FLECS_API extern ecs_entity_t EcsMetersPerSecond;
216FLECS_API extern ecs_entity_t EcsKiloMetersPerSecond;
217FLECS_API extern ecs_entity_t EcsKiloMetersPerHour;
218FLECS_API extern ecs_entity_t EcsMilesPerHour;
219
221
227
228FLECS_API extern ecs_entity_t EcsTemperature;
229FLECS_API extern ecs_entity_t EcsKelvin;
230FLECS_API extern ecs_entity_t EcsCelsius;
231FLECS_API extern ecs_entity_t EcsFahrenheit;
232
234
240
241FLECS_API extern ecs_entity_t EcsData;
242FLECS_API extern ecs_entity_t EcsBits;
243FLECS_API extern ecs_entity_t EcsKiloBits;
244FLECS_API extern ecs_entity_t EcsMegaBits;
245FLECS_API extern ecs_entity_t EcsGigaBits;
246FLECS_API extern ecs_entity_t EcsBytes;
247FLECS_API extern ecs_entity_t EcsKiloBytes;
248FLECS_API extern ecs_entity_t EcsMegaBytes;
249FLECS_API extern ecs_entity_t EcsGigaBytes;
250FLECS_API extern ecs_entity_t EcsKibiBytes;
251FLECS_API extern ecs_entity_t EcsMebiBytes;
252FLECS_API extern ecs_entity_t EcsGibiBytes;
253
255
261
262FLECS_API extern ecs_entity_t EcsDataRate;
263FLECS_API extern ecs_entity_t EcsBitsPerSecond;
264FLECS_API extern ecs_entity_t EcsKiloBitsPerSecond;
265FLECS_API extern ecs_entity_t EcsMegaBitsPerSecond;
266FLECS_API extern ecs_entity_t EcsGigaBitsPerSecond;
267FLECS_API extern ecs_entity_t EcsBytesPerSecond;
268FLECS_API extern ecs_entity_t EcsKiloBytesPerSecond;
269FLECS_API extern ecs_entity_t EcsMegaBytesPerSecond;
270FLECS_API extern ecs_entity_t EcsGigaBytesPerSecond;
271
273
279
280FLECS_API extern ecs_entity_t EcsAngle;
281FLECS_API extern ecs_entity_t EcsRadians;
282FLECS_API extern ecs_entity_t EcsDegrees;
283
285
291
292FLECS_API extern ecs_entity_t EcsFrequency;
293FLECS_API extern ecs_entity_t EcsHertz;
294FLECS_API extern ecs_entity_t EcsKiloHertz;
295FLECS_API extern ecs_entity_t EcsMegaHertz;
296FLECS_API extern ecs_entity_t EcsGigaHertz;
297
299
305
306FLECS_API extern ecs_entity_t EcsUri;
307FLECS_API extern ecs_entity_t EcsUriHyperlink;
308FLECS_API extern ecs_entity_t EcsUriImage;
309FLECS_API extern ecs_entity_t EcsUriFile;
310
312
318
319FLECS_API extern ecs_entity_t EcsColor;
320FLECS_API extern ecs_entity_t EcsColorRgb;
321FLECS_API extern ecs_entity_t EcsColorHsl;
322FLECS_API extern ecs_entity_t EcsColorCss;
323
325
326
327FLECS_API extern ecs_entity_t EcsAcceleration;
328FLECS_API extern ecs_entity_t EcsPercentage;
329FLECS_API extern ecs_entity_t EcsBel;
330FLECS_API extern ecs_entity_t EcsDeciBel;
331
335
344FLECS_API
345 void FlecsUnitsImport(
346 ecs_world_t *world);
347
348#ifdef __cplusplus
349}
350#endif
351
352#endif
353
355
356#endif
EcsMole
FLECS_API ecs_entity_t EcsMole
Mole unit.
EcsAmount
FLECS_API ecs_entity_t EcsAmount
Amount quantity.
EcsHertz
FLECS_API ecs_entity_t EcsHertz
Hertz unit.
EcsKiloHertz
FLECS_API ecs_entity_t EcsKiloHertz
KiloHertz unit.
EcsFrequency
FLECS_API ecs_entity_t EcsFrequency
Frequency quantity.
EcsMegaHertz
FLECS_API ecs_entity_t EcsMegaHertz
MegaHertz unit.
EcsGigaHertz
FLECS_API ecs_entity_t EcsGigaHertz
GigaHertz unit.
EcsColorHsl
FLECS_API ecs_entity_t EcsColorHsl
ColorHsl unit.
EcsColorRgb
FLECS_API ecs_entity_t EcsColorRgb
ColorRgb unit.
EcsColorCss
FLECS_API ecs_entity_t EcsColorCss
ColorCss unit.
EcsColor
FLECS_API ecs_entity_t EcsColor
Color quantity.
EcsGigaBits
FLECS_API ecs_entity_t EcsGigaBits
GigaBits unit.
EcsBits
FLECS_API ecs_entity_t EcsBits
Bits unit.
EcsKibiBytes
FLECS_API ecs_entity_t EcsKibiBytes
KibiBytes unit.
EcsKiloBits
FLECS_API ecs_entity_t EcsKiloBits
KiloBits unit.
EcsBytes
FLECS_API ecs_entity_t EcsBytes
Bytes unit.
EcsMegaBytes
FLECS_API ecs_entity_t EcsMegaBytes
MegaBytes unit.
EcsGigaBytes
FLECS_API ecs_entity_t EcsGigaBytes
GigaBytes unit.
EcsKiloBytes
FLECS_API ecs_entity_t EcsKiloBytes
KiloBytes unit.
EcsMegaBits
FLECS_API ecs_entity_t EcsMegaBits
MegaBits unit.
EcsMebiBytes
FLECS_API ecs_entity_t EcsMebiBytes
MebiBytes unit.
EcsData
FLECS_API ecs_entity_t EcsData
Data quantity.
EcsGibiBytes
FLECS_API ecs_entity_t EcsGibiBytes
GibiBytes unit.
EcsGigaBitsPerSecond
FLECS_API ecs_entity_t EcsGigaBitsPerSecond
GigaBitsPerSecond unit.
EcsMegaBitsPerSecond
FLECS_API ecs_entity_t EcsMegaBitsPerSecond
MegaBitsPerSecond unit.
EcsBytesPerSecond
FLECS_API ecs_entity_t EcsBytesPerSecond
BytesPerSecond unit.
EcsBitsPerSecond
FLECS_API ecs_entity_t EcsBitsPerSecond
BitsPerSecond unit.
EcsKiloBytesPerSecond
FLECS_API ecs_entity_t EcsKiloBytesPerSecond
KiloBytesPerSecond unit.
EcsKiloBitsPerSecond
FLECS_API ecs_entity_t EcsKiloBitsPerSecond
KiloBitsPerSecond unit.
EcsMegaBytesPerSecond
FLECS_API ecs_entity_t EcsMegaBytesPerSecond
MegaBytesPerSecond unit.
EcsDataRate
FLECS_API ecs_entity_t EcsDataRate
DataRate quantity.
EcsGigaBytesPerSecond
FLECS_API ecs_entity_t EcsGigaBytesPerSecond
GigaBytesPerSecond unit.
EcsNanoSeconds
FLECS_API ecs_entity_t EcsNanoSeconds
NanoSeconds duration unit.
EcsAngle
FLECS_API ecs_entity_t EcsAngle
Angle quantity.
EcsHours
FLECS_API ecs_entity_t EcsHours
Hours duration unit.
EcsMilliSeconds
FLECS_API ecs_entity_t EcsMilliSeconds
MilliSeconds duration unit.
EcsDegrees
FLECS_API ecs_entity_t EcsDegrees
Degrees unit.
EcsDays
FLECS_API ecs_entity_t EcsDays
Days duration unit.
EcsMinutes
FLECS_API ecs_entity_t EcsMinutes
Minutes duration unit.
EcsRadians
FLECS_API ecs_entity_t EcsRadians
Radians unit.
EcsSeconds
FLECS_API ecs_entity_t EcsSeconds
Seconds duration unit.
EcsDuration
FLECS_API ecs_entity_t EcsDuration
Duration quantity.
EcsMicroSeconds
FLECS_API ecs_entity_t EcsMicroSeconds
MicroSeconds duration unit.
EcsPicoSeconds
FLECS_API ecs_entity_t EcsPicoSeconds
PicoSeconds duration unit.
EcsElectricCurrent
FLECS_API ecs_entity_t EcsElectricCurrent
ElectricCurrent quantity.
EcsAmpere
FLECS_API ecs_entity_t EcsAmpere
Ampere unit.
EcsForce
FLECS_API ecs_entity_t EcsForce
Force quantity.
EcsNewton
FLECS_API ecs_entity_t EcsNewton
Newton unit.
EcsKiloMeters
FLECS_API ecs_entity_t EcsKiloMeters
KiloMeters unit.
EcsPicoMeters
FLECS_API ecs_entity_t EcsPicoMeters
PicoMeters unit.
EcsNanoMeters
FLECS_API ecs_entity_t EcsNanoMeters
NanoMeters unit.
EcsMiles
FLECS_API ecs_entity_t EcsMiles
Miles unit.
EcsCentiMeters
FLECS_API ecs_entity_t EcsCentiMeters
CentiMeters unit.
EcsMicroMeters
FLECS_API ecs_entity_t EcsMicroMeters
MicroMeters unit.
EcsMilliMeters
FLECS_API ecs_entity_t EcsMilliMeters
MilliMeters unit.
EcsLength
FLECS_API ecs_entity_t EcsLength
Length quantity.
EcsPixels
FLECS_API ecs_entity_t EcsPixels
Pixels unit.
EcsMeters
FLECS_API ecs_entity_t EcsMeters
Meters unit.
EcsLuminousIntensity
FLECS_API ecs_entity_t EcsLuminousIntensity
LuminousIntensity quantity.
EcsCandela
FLECS_API ecs_entity_t EcsCandela
Candela unit.
EcsMass
FLECS_API ecs_entity_t EcsMass
Mass quantity.
EcsGrams
FLECS_API ecs_entity_t EcsGrams
Grams unit.
EcsKiloGrams
FLECS_API ecs_entity_t EcsKiloGrams
KiloGrams unit.
EcsMebi
FLECS_API ecs_entity_t EcsMebi
Mebi unit prefix.
EcsDeca
FLECS_API ecs_entity_t EcsDeca
Deca unit prefix.
EcsHecto
FLECS_API ecs_entity_t EcsHecto
Hecto unit prefix.
EcsZetta
FLECS_API ecs_entity_t EcsZetta
Zetta unit prefix.
EcsMicro
FLECS_API ecs_entity_t EcsMicro
Micro unit prefix.
EcsYocto
FLECS_API ecs_entity_t EcsYocto
Yocto unit prefix.
EcsKilo
FLECS_API ecs_entity_t EcsKilo
Kilo unit prefix.
EcsYobi
FLECS_API ecs_entity_t EcsYobi
Yobi unit prefix.
EcsAtto
FLECS_API ecs_entity_t EcsAtto
Atto unit prefix.
EcsYotta
FLECS_API ecs_entity_t EcsYotta
Yotta unit prefix.
EcsExa
FLECS_API ecs_entity_t EcsExa
Exa unit prefix.
EcsPico
FLECS_API ecs_entity_t EcsPico
Pico unit prefix.
EcsCenti
FLECS_API ecs_entity_t EcsCenti
Centi unit prefix.
EcsKibi
FLECS_API ecs_entity_t EcsKibi
Kibi unit prefix.
EcsGibi
FLECS_API ecs_entity_t EcsGibi
Gibi unit prefix.
EcsTera
FLECS_API ecs_entity_t EcsTera
Tera unit prefix.
EcsNano
FLECS_API ecs_entity_t EcsNano
Nano unit prefix.
EcsExbi
FLECS_API ecs_entity_t EcsExbi
Exbi unit prefix.
EcsUnitPrefixes
FLECS_API ecs_entity_t EcsUnitPrefixes
Parent scope for prefixes.
EcsMilli
FLECS_API ecs_entity_t EcsMilli
Milli unit prefix.
EcsTebi
FLECS_API ecs_entity_t EcsTebi
Tebi unit prefix.
EcsPebi
FLECS_API ecs_entity_t EcsPebi
Pebi unit prefix.
EcsPeta
FLECS_API ecs_entity_t EcsPeta
Peta unit prefix.
EcsDeci
FLECS_API ecs_entity_t EcsDeci
Deci unit prefix.
EcsMega
FLECS_API ecs_entity_t EcsMega
Mega unit prefix.
EcsZepto
FLECS_API ecs_entity_t EcsZepto
Zepto unit prefix.
EcsZebi
FLECS_API ecs_entity_t EcsZebi
Zebi unit prefix.
EcsGiga
FLECS_API ecs_entity_t EcsGiga
Giga unit prefix.
EcsFemto
FLECS_API ecs_entity_t EcsFemto
Femto unit prefix.
EcsPascal
FLECS_API ecs_entity_t EcsPascal
Pascal unit.
EcsBar
FLECS_API ecs_entity_t EcsBar
Bar unit.
EcsPressure
FLECS_API ecs_entity_t EcsPressure
Pressure quantity.
EcsSpeed
FLECS_API ecs_entity_t EcsSpeed
Speed quantity.
EcsMilesPerHour
FLECS_API ecs_entity_t EcsMilesPerHour
MilesPerHour unit.
EcsKiloMetersPerSecond
FLECS_API ecs_entity_t EcsKiloMetersPerSecond
KiloMetersPerSecond unit.
EcsMetersPerSecond
FLECS_API ecs_entity_t EcsMetersPerSecond
MetersPerSecond unit.
EcsKiloMetersPerHour
FLECS_API ecs_entity_t EcsKiloMetersPerHour
KiloMetersPerHour unit.
EcsTemperature
FLECS_API ecs_entity_t EcsTemperature
Temperature quantity.
EcsFahrenheit
FLECS_API ecs_entity_t EcsFahrenheit
Fahrenheit unit.
EcsCelsius
FLECS_API ecs_entity_t EcsCelsius
Celsius unit.
EcsKelvin
FLECS_API ecs_entity_t EcsKelvin
Kelvin unit.
EcsDate
FLECS_API ecs_entity_t EcsDate
Date unit.
EcsTime
FLECS_API ecs_entity_t EcsTime
Time quantity.
EcsUri
FLECS_API ecs_entity_t EcsUri
URI quantity.
EcsUriHyperlink
FLECS_API ecs_entity_t EcsUriHyperlink
UriHyperlink unit.
EcsUriFile
FLECS_API ecs_entity_t EcsUriFile
UriFile unit.
EcsUriImage
FLECS_API ecs_entity_t EcsUriImage
UriImage unit.
FlecsUnitsImport
FLECS_API void FlecsUnitsImport(ecs_world_t *world)
Units module import function.
EcsPercentage
FLECS_API ecs_entity_t EcsPercentage
Percentage unit.
EcsDeciBel
FLECS_API ecs_entity_t EcsDeciBel
DeciBel unit.
EcsAcceleration
FLECS_API ecs_entity_t EcsAcceleration
Acceleration unit.
EcsBel
FLECS_API ecs_entity_t EcsBel
Bel unit.
ecs_entity_t
ecs_id_t ecs_entity_t
An entity identifier.
Definition flecs.h:361
ecs_world_t
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
Definition flecs.h:405