Panda3D
|
This defines the Loader interface to files whose converters are defined within the Pandatool package and inherit from SomethingToEggConverter, like FltToEggConverter and LwoToEggConverter. More...
#include "loaderFileTypePandatool.h"
Public Member Functions | |
LoaderFileTypePandatool (SomethingToEggConverter *converter) | |
virtual TypeHandle | force_init_type () |
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. | |
virtual string | get_extension () const |
virtual string | get_name () const |
virtual TypeHandle | get_type () const |
virtual | PT (PandaNode) load_file(const Filename &path |
virtual void | resolve_filename (Filename &path) const |
Searches for the indicated filename on whatever paths are appropriate to this file type, and updates it if it is found. | |
virtual bool | supports_compressed () const |
Returns true if this file type can transparently load compressed files (with a .pz extension), false otherwise. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Public Attributes | |
virtual const LoaderOptions BamCacheRecord *record | const |
virtual const LoaderOptions & | options |
This defines the Loader interface to files whose converters are defined within the Pandatool package and inherit from SomethingToEggConverter, like FltToEggConverter and LwoToEggConverter.
Definition at line 31 of file loaderFileTypePandatool.h.
string LoaderFileTypePandatool::get_additional_extensions | ( | ) | const [virtual] |
Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this converter.
Reimplemented from LoaderFileType.
Definition at line 75 of file loaderFileTypePandatool.cxx.
References SomethingToEggConverter::get_additional_extensions().
static void LoaderFileTypePandatool::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from LoaderFileType.
Definition at line 52 of file loaderFileTypePandatool.h.
References LoaderFileType::init_type().
void LoaderFileTypePandatool::resolve_filename | ( | Filename & | path | ) | const [virtual] |
Searches for the indicated filename on whatever paths are appropriate to this file type, and updates it if it is found.
Definition at line 99 of file loaderFileTypePandatool.cxx.
bool LoaderFileTypePandatool::supports_compressed | ( | ) | const [virtual] |
Returns true if this file type can transparently load compressed files (with a .pz extension), false otherwise.
Reimplemented from LoaderFileType.
Definition at line 87 of file loaderFileTypePandatool.cxx.
References SomethingToEggConverter::supports_compressed().