15 #include "loaderFileTypeAssimp.h" 16 #include "config_assimp.h" 17 #include "assimpLoader.h" 26 LoaderFileTypeAssimp::
35 LoaderFileTypeAssimp::
36 ~LoaderFileTypeAssimp() {
37 if (_loader != NULL) {
47 string LoaderFileTypeAssimp::
49 return "Assimp Importer";
57 string LoaderFileTypeAssimp::
58 get_extension()
const {
98 <<
"Reading " << path <<
"\n";
100 if (!_loader->
read(path)) {
bool read(const Filename &filename)
Reads from the indicated file.
A basic node of the scene graph or data graph.
Specifies parameters that may be passed to the loader.
void build_graph()
Converts scene graph structures into a Panda3D scene graph, with _root being the root node...
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension)...
The name of a file, such as a texture file or an Egg file.
An instance of this class is written to the front of a Bam or Txo file to make the file a cached inst...
virtual string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this converter.
TypeHandle is the identifier used to differentiate C++ class types.
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures.
void get_extensions(string &ext) const
Returns a space-separated list of extensions that Assimp can load, without the leading dots...