|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <SkeletalModule.hpp>
Public Member Functions | |
| void | clear () |
| void | push (int kind, int track, float floatValue, int intValue, EventStrings strings) |
| int | count () const |
| const float * | values () const |
| std::size_t | byteLength () const |
| const EventStrings * | strings (int index) const |
Static Public Attributes | |
| static constexpr int | MAX_PER_UPDATE = 64 |
Events queued for the caller to drain after an update.
The numbers ride in a float array because that is the one buffer type that crosses cheaply; the two integers ride as their bit patterns, and the SDK reads them back through the same reinterpretation. Capacity is fixed and overflow is dropped: a frame that produced more events than this had a runaway animation, and growing the buffer would only postpone noticing.
Definition at line 304 of file SkeletalModule.hpp.
|
inline |
Live extent of the float buffer — a caller cannot infer it from the count without assuming this packing's stride.
Definition at line 328 of file SkeletalModule.hpp.
|
inline |
Definition at line 308 of file SkeletalModule.hpp.
|
inline |
Definition at line 324 of file SkeletalModule.hpp.
|
inline |
Definition at line 314 of file SkeletalModule.hpp.
References MAX_PER_UPDATE, and strings().
|
inline |
Definition at line 329 of file SkeletalModule.hpp.
Referenced by push().
|
inline |
Definition at line 325 of file SkeletalModule.hpp.
|
staticconstexpr |
Definition at line 306 of file SkeletalModule.hpp.
Referenced by push().