DubiousEngine
0.2.0
Simple Game Engine
|
An AC3D Model. More...
#include <Ac3d_file_reader.h>
Classes | |
struct | Surface |
A Surface. More... | |
Public Member Functions | |
Ac3d_model ()=default | |
Ac3d_model (const Ac3d_model &)=delete | |
Ac3d_model & | operator= (const Ac3d_model &)=delete |
std::string & | name () |
Accessor - the Name, mostly useful for debugging. More... | |
Math::Local_point & | offset () |
Accessor - Offset from the parent model. If this is the parent model then the offset will be (0,0,0) More... | |
const Math::Local_point & | offset () const |
std::vector< Math::Local_point > & | points () |
Accessor - the Points that make up the model. More... | |
const std::vector< Math::Local_point > & | points () const |
std::vector< Surface > & | surfaces () |
Accessor - the surfaces that make up the model. More... | |
const std::vector< Surface > & | surfaces () const |
const std::vector< std::unique_ptr< const Ac3d_model > > & | kids () const |
Accessor - child models. More... | |
void | push_kid (std::unique_ptr< const Ac3d_model > kid) |
An AC3D Model.
Respresents a model as described by the AC3D file format. AC3D files contains a number of points and then a list of surfaces that index those points. For example if point number 10 is used in 3 surfaces, then all of those surfaces will include the number 10 in their description. To put the model back together, you need the point array and the surface array. That info is stored in this object.
|
default |
|
delete |
|
inline |
Accessor - child models.
|
inline |
Accessor - the Name, mostly useful for debugging.
|
inline |
Accessor - Offset from the parent model. If this is the parent model then the offset will be (0,0,0)
|
inline |
|
delete |
|
inline |
Accessor - the Points that make up the model.
|
inline |
|
inline |
|
inline |
Accessor - the surfaces that make up the model.
|
inline |