NDEVR
API Documentation
AssimpSceneMemory

Stores all of the objects needed for an aiScene in a way that is efficient and uses native containers. More...

Collaboration diagram for AssimpSceneMemory:
[legend]

Public Member Functions

 AssimpSceneMemory ()
 Constructs an empty scene memory container.
 AssimpSceneMemory (aiScene *scene)
 Constructs scene memory from an existing aiScene pointer.
 ~AssimpSceneMemory ()
 Destructor.

Public Attributes

Buffer< aiMaterial * > ai_materials
 All Assimp materials accumulated for the scene.
Buffer< aiMesh * > ai_meshes
 All Assimp meshes accumulated for the scene.
Dictionary< UUID, Buffer< aiNode * > > ai_models
 Maps NDEVR model UUIDs to their Assimp scene nodes.
Dictionary< UUID, uint04mat_offset
 Maps model UUIDs to their starting material index offset.
Dictionary< String, uint04material_names
 Tracks material names to prevent duplicate entries.
Dictionary< UUID, std::pair< Geometry, uint04 > > mesh_offset
 Maps model UUIDs to their geometry and mesh index offset.
bool preserve_memory
 Whether to keep memory alive after destruction.
aiScene * scene
 The Assimp scene being managed.

Detailed Description

Stores all of the objects needed for an aiScene in a way that is efficient and uses native containers.


Definition at line 53 of file AssimpFactory.h.

Constructor & Destructor Documentation

◆ AssimpSceneMemory()

AssimpSceneMemory::AssimpSceneMemory ( aiScene * scene)

Constructs scene memory from an existing aiScene pointer.

Parameters
[in]sceneThe Assimp scene to manage.

References scene.

◆ ~AssimpSceneMemory()

AssimpSceneMemory::~AssimpSceneMemory ( )

Destructor.

Frees memory if preserve_memory is false.


The documentation for this struct was generated from the following file: