panda3d.core.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) → None
registerType(type: object) → None
registerDeferredType(entry_point: object) → None
unregisterType(type: object) → None
getNumTypes() → int

Returns the total number of types registered.

getType(n: int) → LoaderFileType

Returns the nth type registered.

Return type

LoaderFileType

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.

Return type

LoaderFileType

write(out: ostream, indent_level: int) → None

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

static getGlobalPtr() → LoaderFileTypeRegistry

Returns a pointer to the global LoaderFileTypeRegistry object.

Return type

LoaderFileTypeRegistry

getTypes() → list
property types

Returns the nth type registered.

Return type

Sequence[LoaderFileType]