|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
What every 2D skeletal-animation side module needs, none of which is about any particular one. More...
#include <cstdint>#include <cstring>#include <iterator>#include <string>#include <unordered_map>#include <vector>

Go to the source code of this file.
Classes | |
| class | es::skeletal::Buffer< T > |
| struct | es::skeletal::MeshBatch |
| One draw's worth of geometry. More... | |
| struct | es::skeletal::TriangleSink |
| Where a runtime pours the triangles it posed. More... | |
| class | es::skeletal::BatchList |
| struct | es::skeletal::BatchList::Capacity |
| What the list can take before it allocates again. More... | |
| class | es::skeletal::BatchCollector |
| class | es::skeletal::HandleTable< T > |
| class | es::skeletal::StringBuffer |
| struct | es::skeletal::EventStrings |
| The strings one queued event borrowed from its runtime's own data. More... | |
| class | es::skeletal::EventBuffer |
Namespaces | |
| namespace | es |
| namespace | es::skeletal |
Variables | |
| constexpr int | es::skeletal::VERTEX_FLOATS = 8 |
| Interleaved x,y,u,v,r,g,b,a per vertex — the layout the SDK reads back. | |
| constexpr std::size_t | es::skeletal::MAX_BATCH_VERTICES = 65535 |
| 16-bit indices, so a batch closes before one would wrap. | |
What every 2D skeletal-animation side module needs, none of which is about any particular one.
A module for Spine and a module for DragonBones disagree about almost everything an animator would name — mix tables against fade-in times, skins against display lists, which constraint kinds exist. They agree completely about the parts nobody names: that instances are reached through integer handles because the caller is on the other side of a wasm boundary, that posed triangles have to be batched by texture and blend before they cross it, that a const char* returned to JavaScript must point into storage the module keeps alive, and that events have to queue until the caller drains them.
So that is what lives here — the second time it was about to be written rather than the first. Nothing in this header knows what a runtime is; a module supplies the posing and reads these back.
Definition in file SkeletalModule.hpp.