Panda3D
|
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures. More...
#include "assimpLoader.h"
Public Member Functions | |
void | build_graph () |
Converts scene graph structures into a Panda3D scene graph, with _root being the root node. | |
void | get_extensions (string &ext) const |
Returns a space-separated list of extensions that Assimp can load, without the leading dots. | |
PT (ModelRoot) _root | |
bool | read (const Filename &filename) |
Reads from the indicated file. | |
Public Attributes | |
bool | _error |
Filename | _filename |
Mutex | _lock |
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures.
The loader should be reusable.
Definition at line 31 of file assimpLoader.h.
void AssimpLoader::build_graph | ( | ) |
Converts scene graph structures into a Panda3D scene graph, with _root being the root node.
Definition at line 116 of file assimpLoader.cxx.
References Filename::get_basename().
void AssimpLoader::get_extensions | ( | string & | ext | ) | const |
Returns a space-separated list of extensions that Assimp can load, without the leading dots.
Definition at line 72 of file assimpLoader.cxx.
Referenced by LoaderFileTypeAssimp::get_additional_extensions().
bool AssimpLoader::read | ( | const Filename & | filename | ) |
Reads from the indicated file.
Definition at line 94 of file assimpLoader.cxx.