18 #include <assimp/cimport.h> 27 LoaderFileTypeAssimp::
28 LoaderFileTypeAssimp() : _loader(nullptr) {
34 LoaderFileTypeAssimp::
35 ~LoaderFileTypeAssimp() {
41 string LoaderFileTypeAssimp::
43 return "Assimp Importer";
49 string LoaderFileTypeAssimp::
50 get_extension()
const {
61 aiGetExtensionList(&aexts);
65 char *sub = strtok(aexts.data,
";");
66 while (sub !=
nullptr) {
68 sub = strtok(
nullptr,
";");
95 <<
"Reading " << path <<
"\n";
98 loader.local_object();
100 if (!loader.read(path)) {
104 loader.build_graph();
A basic node of the scene graph or data graph.
Specifies parameters that may be passed to the loader.
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz or ....
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 std::string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures.