|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <SkeletalModule.hpp>

Public Member Functions | |
| BatchCollector (BatchList &into) | |
| void | setPremultipliedColor (bool value) override |
| void | emit (const float *positions, const float *uvs, int vertexCount, const std::uint16_t *indices, int indexCount, std::uint32_t texture, int blendMode, const float rgba[4]) override |
| Public Member Functions inherited from es::skeletal::TriangleSink | |
| virtual | ~TriangleSink ()=default |
Batches what a runtime emits: a texture or blend change starts a new batch, so does filling one, and incoming indices are rebased onto what is already written.
Bound to its list rather than reaching for a global, so a module can pose into a scratch list without disturbing the one its getters are serving. A slot is reused for its storage only: batching stays sequential, so a state that comes back after another one starts a new batch rather than rejoining its own, which is what keeps the draw order.
Definition at line 163 of file SkeletalModule.hpp.
|
inlineexplicit |
Definition at line 165 of file SkeletalModule.hpp.
|
inlineoverridevirtual |
Implements es::skeletal::TriangleSink.
Definition at line 168 of file SkeletalModule.hpp.
References es::skeletal::Buffer< T >::append(), es::skeletal::MeshBatch::indices, es::skeletal::Buffer< T >::size(), es::skeletal::VERTEX_FLOATS, and es::skeletal::MeshBatch::vertices.
|
inlineoverridevirtual |
Reimplemented from es::skeletal::TriangleSink.
Definition at line 166 of file SkeletalModule.hpp.