LoaderFileTypeRegistry

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)
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)None
registerType(type: object)None
property types → Sequence[LoaderFileType]

Returns the nth type registered.

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

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