Skip to content

File Mesh.h

FileList > scene > Mesh.h

Go to the source code of this file

3D mesh object for renderable geometry in the scene hierarchy. More...

  • #include "Context.h"
  • #include "ID.h"
  • #include "Transform.h"
  • #include "MeshData.h"
  • #include "Texture.h"
  • #include "shaders/RenderShader.h"
  • #include "Material.h"

Classes

Type Name
class Mesh
3D mesh object representing renderable geometry with material and transform.

Detailed Description

Mesh is the primary renderable object, representing 3D geometry with material, transform, and shader properties. It inherits from ObjectID (scene identity) and Transform3D (spatial placement). Mesh objects are consumed by the Renderer to produce final images.

Architecture: * Owned by scene graph (shared_ptr in Scene containers) * Renderer reads mesh data, material, and transform as immutable * Editor mutates mesh properties via events and controllers * Supports LOD via optional low-poly proxy mesh

Note:

GPU resources (buffers, textures) are owned by MeshData and Material, not Mesh.

Note:

Multiple meshes can share the same MeshData and Material via shared_ptr.


The documentation for this class was generated from the following file src/scene/Mesh.h