Go to the documentation of this file.
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();
virtual std::string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(),...
An instance of this class is written to the front of a Bam or Txo file to make the file a cached inst...
Specifies parameters that may be passed to the loader.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz or ....
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
Class that interfaces with Assimp and builds Panda nodes to represent the Assimp structures.