from panda3d.core import LoaderFileTypeRegistry
class LoaderFileTypeRegistry


This class maintains the set of all known LoaderFileTypes in the universe.

Inheritance diagram

Inheritance diagram of LoaderFileTypeRegistry

__init__(param0: LoaderFileTypeRegistry)
__reduce__() object
static getGlobalPtr() LoaderFileTypeRegistry

Returns a pointer to the global LoaderFileTypeRegistry object.

getNumTypes() int

Returns the total number of types registered.

getType(n: int) LoaderFileType

Returns the nth type registered.

getTypeFromExtension(extension: str) LoaderFileType

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.

getTypes() list
registerDeferredType(entry_point: object)
registerType(type: object)
property types Sequence[LoaderFileType]

Returns the nth type registered.

unregisterType(type: object)
write(out: ostream, indent_level: int)

Writes a list of supported file types to the indicated output stream, one per line.