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

One piece a skinned mesh is drawn in, when its bones are more than one draw can carry. More...

#include <Mesh.hpp>

Public Attributes

u32 firstIndex = 0
u32 indexCount = 0
u32 boneOffset = 0
u32 boneCount = 0

Detailed Description

One piece a skinned mesh is drawn in, when its bones are more than one draw can carry.

A run of the mesh's own indices whose vertices are moved only by the chunk's bones: its vertices' joint k is the chunk's k-th bone, an index into the bind matrices kept in Mesh::skinChunkBones.

Definition at line 68 of file Mesh.hpp.

Member Data Documentation

◆ boneCount

u32 esengine::MeshSkinChunk::boneCount = 0

Definition at line 74 of file Mesh.hpp.

Referenced by esengine::MeshPlugin::collect().

◆ boneOffset

u32 esengine::MeshSkinChunk::boneOffset = 0

Where the chunk's bones start in Mesh::skinChunkBones, and how many. At most MESH_MAX_BONES.

Definition at line 73 of file Mesh.hpp.

Referenced by esengine::MeshPlugin::collect().

◆ firstIndex

u32 esengine::MeshSkinChunk::firstIndex = 0

First index of the run, from the mesh's own first.

Definition at line 70 of file Mesh.hpp.

Referenced by esengine::MeshPlugin::collect().

◆ indexCount

u32 esengine::MeshSkinChunk::indexCount = 0

Definition at line 71 of file Mesh.hpp.

Referenced by esengine::MeshPlugin::collect().


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