Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
MeshRenderer.hpp File Reference

Arbitrary-geometry 2D mesh renderable (deformed sprites, polygons, water surfaces, procedural shapes). More...

#include "../../core/Types.hpp"
#include "../../core/Reflection.hpp"
#include "../../math/Math.hpp"
#include "../../resource/Handle.hpp"
#include <vector>
Include dependency graph for MeshRenderer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esengine::ecs::MeshVertex2D
 One local-space mesh vertex: position, texture coordinate, RGBA8 color. More...
struct  esengine::ecs::MeshRenderer
struct  esengine::ecs::MeshSkin
 What deforms a MeshRenderer: the entities its Joints channel indexes. More...
struct  esengine::ecs::MeshMorph
 What SHAPE a MeshRenderer is in: how far it is blended towards each of the shapes its mesh carries. More...
struct  esengine::ecs::MeshInstances
 Many placements of the one mesh a MeshRenderer draws, as ONE renderable. More...
struct  esengine::ecs::MeshLightmap
 Where a MeshRenderer's BAKED light comes from: the atlas, and the rectangle of it this object occupies. More...

Namespaces

namespace  esengine
namespace  esengine::ecs

Enumerations

enum class  esengine::ecs::SkinCacheMode : i32 { esengine::ecs::Auto = 0 , esengine::ecs::Disabled = 1 , esengine::ecs::Enabled = 2 }

Detailed Description

Arbitrary-geometry 2D mesh renderable (deformed sprites, polygons, water surfaces, procedural shapes).

Vertices live in component-local space and stream through the unified Batch face each frame (CPU-transformed like every 2D renderable), so a mesh participates in sorting, clipping, and multi-texture merging exactly like a sprite. Geometry is set via meshRenderer_setGeometry (bulk upload with index validation), not per-field reflection.

Author
ESEngine Team
Date
2026

Definition in file MeshRenderer.hpp.