Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::MeshSkin Struct Reference

What deforms a MeshRenderer: the entities its Joints channel indexes. More...

#include <MeshRenderer.hpp>

Public Member Functions

 MeshSkin ()=default
bool operator== (const MeshSkin &) const =default
 Compared member by member: what the change audit checks a write of this component against (Registry::auditChanges).

Public Attributes

std::vector< Entity > joints
 Joint entities, in the order the mesh's bind matrices are stored.
i32 skinCache {static_cast<i32>(SkinCacheMode::Auto)}
 Whether the skin cache poses this mesh (SkinCacheMode).

Detailed Description

What deforms a MeshRenderer: the entities its Joints channel indexes.

Its own component because MeshRenderer says WHAT is drawn and this says what moves it; entry i drives joint i of the mesh's own bind matrices. A skinned mesh's own transform is ignored (glTF requires it) — the joints are placed in the world, so the vertices are too.

Definition at line 156 of file MeshRenderer.hpp.

Constructor & Destructor Documentation

◆ MeshSkin()

esengine::ecs::MeshSkin::MeshSkin ( )
default

Referenced by operator==().

Member Function Documentation

◆ operator==()

bool esengine::ecs::MeshSkin::operator== ( const MeshSkin & ) const
default

Compared member by member: what the change audit checks a write of this component against (Registry::auditChanges).

References MeshSkin().

Member Data Documentation

◆ joints

std::vector<Entity> esengine::ecs::MeshSkin::joints

Joint entities, in the order the mesh's bind matrices are stored.

Definition at line 159 of file MeshRenderer.hpp.

Referenced by meshskinApplyJS(), and meshskinToJS().

◆ skinCache

i32 esengine::ecs::MeshSkin::skinCache {static_cast<i32>(SkinCacheMode::Auto)}

Whether the skin cache poses this mesh (SkinCacheMode).

Definition at line 164 of file MeshRenderer.hpp.

Referenced by meshskinApplyJS(), and meshskinToJS().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/MeshRenderer.hpp