Panda3D
|
This class maintains the set of all known LoaderFileTypes in the universe. More...
#include <pandadoc.hpp>
Public Member Functions | |
__init__ (const LoaderFileTypeRegistry) | |
object | __reduce__ () |
int | getNumTypes () |
Returns the total number of types registered. More... | |
LoaderFileType | getType (int n) |
Returns the nth type registered. More... | |
LoaderFileType | getTypeFromExtension (str extension) |
Determines the type of the file based on the indicated extension (without a leading dot). More... | |
list | getTypes () |
registerDeferredType (object entry_point) | |
registerType (object type) | |
unregisterType (object type) | |
write (Ostream out, int indent_level) | |
Writes a list of supported file types to the indicated output stream, one per line. More... | |
Static Public Member Functions | |
static LoaderFileTypeRegistry | getGlobalPtr () |
Returns a pointer to the global LoaderFileTypeRegistry object. More... | |
Public Attributes | |
LoaderFileType | types [] |
Returns the nth type registered. More... | |
This class maintains the set of all known LoaderFileTypes in the universe.
__init__ | ( | const | LoaderFileTypeRegistry | ) |
object __reduce__ | ( | ) |
|
static |
Returns a pointer to the global LoaderFileTypeRegistry object.
int getNumTypes | ( | ) |
Returns the total number of types registered.
LoaderFileType getType | ( | int | n | ) |
Returns the nth type registered.
LoaderFileType getTypeFromExtension | ( | str | extension | ) |
Determines the type of the file based on the indicated extension (without a leading dot).
Returns NULL if the extension matches no known file types.
list getTypes | ( | ) |
registerDeferredType | ( | object | entry_point | ) |
registerType | ( | object | type | ) |
unregisterType | ( | object | type | ) |
write | ( | Ostream | out, |
int | indent_level | ||
) |
Writes a list of supported file types to the indicated output stream, one per line.
LoaderFileType types[] |
Returns the nth type registered.