Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
es::skeletal::BatchCollector Class Referencefinal

#include <SkeletalModule.hpp>

Inheritance diagram for es::skeletal::BatchCollector:

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ BatchCollector()

es::skeletal::BatchCollector::BatchCollector ( BatchList & into)
inlineexplicit

Definition at line 165 of file SkeletalModule.hpp.

Member Function Documentation

◆ emit()

void es::skeletal::BatchCollector::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] )
inlineoverridevirtual

◆ setPremultipliedColor()

void es::skeletal::BatchCollector::setPremultipliedColor ( bool value)
inlineoverridevirtual

Reimplemented from es::skeletal::TriangleSink.

Definition at line 166 of file SkeletalModule.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/bindings/modules/spine/SkeletalModule.hpp