Model Class Reference

#include <Model.h>

Description

A 3D object as a collection of meshes and materials.

Functions

Entity::ID Create ()
 
void AddSection ()
 
uint32_t GetSectionCount () const
 
MeshSectionMesh (uint32_t)
 
MaterialSectionMaterial (uint32_t)
 
void Clear ()
 

Member Function Documentation

Entity::ID Create ( )

creates an Entity with many children that, if Draw()n, will express the Model in its entirety

void AddSection ( )

Adds a new section of the Model. A Section includes a Mesh and a Material.

uint32_t GetSectionCount ( ) const

Returns the number of sections that belong to the Model.

Mesh& SectionMesh ( uint32_t  )

Returns the Mesh of the given section.

Material& SectionMaterial ( uint32_t  )

Returns the Material of the given section.

void Clear ( )

Removes all Sections.


The documentation for this class was generated from the following file:
  • /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Model.h