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

Public Member Functions | |
| void | _onClear () override |
| void | emit (es::skeletal::TriangleSink &sink, const float tint[4]) const |
Public Attributes | |
| std::vector< float > | positions |
| x,y per vertex | |
| std::vector< float > | uvs |
| u,v per vertex | |
| std::vector< std::uint16_t > | indices |
| std::uint32_t | textureId = 0 |
| bool | armatureSpace = false |
| positions already have the bones applied | |
| char | rawDisplay = 0 |
| char | meshDisplay = 0 |
Protected Member Functions | |
| void | _initDisplay (void *, bool) override |
| void | _disposeDisplay (void *, bool) override |
| void | _onUpdateDisplay () override |
| void | _addDisplay () override |
| void | _replaceDisplay (void *, bool) override |
| void | _removeDisplay () override |
| void | _updateZOrder () override |
| void | _updateVisible () override |
| void | _updateBlendMode () override |
| void | _updateColor () override |
| void | _updateFrame () override |
| void | _updateMesh () override |
| void | _updateTransform () override |
| void | _identityTransform () override |
A slot that keeps its posed geometry instead of drawing it.
Positions and UVs are parallel arrays; armatureSpace records which space the positions are in, per the header note.
Definition at line 87 of file DragonBonesAdapter.hpp.
|
inlineoverrideprotected |
Definition at line 122 of file DragonBonesAdapter.hpp.
|
inlineoverrideprotected |
Definition at line 120 of file DragonBonesAdapter.hpp.
|
inlineoverrideprotected |
Definition at line 134 of file DragonBonesAdapter.hpp.
References armatureSpace.
Referenced by _updateFrame().
|
inlineoverrideprotected |
Definition at line 119 of file DragonBonesAdapter.hpp.
|
inlineoverride |
Definition at line 102 of file DragonBonesAdapter.hpp.
References armatureSpace, indices, positions, textureId, and uvs.
|
inlineoverrideprotected |
Definition at line 121 of file DragonBonesAdapter.hpp.
|
inlineoverrideprotected |
Definition at line 124 of file DragonBonesAdapter.hpp.
|
inlineoverrideprotected |
Definition at line 123 of file DragonBonesAdapter.hpp.
|
inlineoverrideprotected |
Definition at line 127 of file DragonBonesAdapter.hpp.
|
inlineoverrideprotected |
Definition at line 128 of file DragonBonesAdapter.hpp.
|
overrideprotected |
Definition at line 26 of file DragonBonesAdapter.cpp.
References _identityTransform(), indices, positions, textureId, and uvs.
|
overrideprotected |
Definition at line 98 of file DragonBonesAdapter.cpp.
References positions.
|
inlineoverrideprotected |
Definition at line 133 of file DragonBonesAdapter.hpp.
References armatureSpace.
|
inlineoverrideprotected |
Definition at line 126 of file DragonBonesAdapter.hpp.
|
inlineoverrideprotected |
Definition at line 125 of file DragonBonesAdapter.hpp.
| void EsSlot::emit | ( | es::skeletal::TriangleSink & | sink, |
| const float | tint[4] ) const |
Pour this slot's triangles into sink, applying its transform if it owes one.
| tint | RGBA multiplied onto the slot's own colour — the per-entity tint on top of what was authored in DragonBones Pro, not instead of it. |
Definition at line 161 of file DragonBonesAdapter.cpp.
References armatureSpace, indices, positions, textureId, and uvs.
| bool EsSlot::armatureSpace = false |
positions already have the bones applied
Definition at line 95 of file DragonBonesAdapter.hpp.
Referenced by _identityTransform(), _onClear(), _updateTransform(), and emit().
| std::vector<std::uint16_t> EsSlot::indices |
Definition at line 93 of file DragonBonesAdapter.hpp.
Referenced by _onClear(), _updateFrame(), and emit().
| char EsSlot::meshDisplay = 0 |
Definition at line 100 of file DragonBonesAdapter.hpp.
| std::vector<float> EsSlot::positions |
x,y per vertex
Definition at line 91 of file DragonBonesAdapter.hpp.
Referenced by _onClear(), _updateFrame(), _updateMesh(), and emit().
| char EsSlot::rawDisplay = 0 |
Slot::init takes the two displays as opaque pointers and never dereferences them; _display == _meshDisplay is the only question ever asked of them.
Definition at line 99 of file DragonBonesAdapter.hpp.
| std::uint32_t EsSlot::textureId = 0 |
Definition at line 94 of file DragonBonesAdapter.hpp.
Referenced by _onClear(), _updateFrame(), and emit().
| std::vector<float> EsSlot::uvs |
u,v per vertex
Definition at line 92 of file DragonBonesAdapter.hpp.
Referenced by _onClear(), _updateFrame(), and emit().