LoaderFileTypeRegistry
from panda3d.core import LoaderFileTypeRegistry
- class LoaderFileTypeRegistry
Bases:
DTOOL_SUPER_BASE
This class maintains the set of all known LoaderFileTypes in the universe.
Inheritance diagram
- __init__(*args, **kwargs)
- getGlobalPtr()
C++ Interface: get_global_ptr()
- /**
Returns a pointer to the global LoaderFileTypeRegistry object.
*/
- getNumTypes()
C++ Interface: get_num_types(LoaderFileTypeRegistry self)
- /**
Returns the total number of types registered.
*/
- getType()
C++ Interface: get_type(LoaderFileTypeRegistry self, int n)
- /**
Returns the nth type registered.
*/
- getTypeFromExtension()
C++ Interface: get_type_from_extension(const LoaderFileTypeRegistry self, 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.
*/
- getTypes()
- get_global_ptr()
C++ Interface: get_global_ptr()
- /**
Returns a pointer to the global LoaderFileTypeRegistry object.
*/
- get_num_types()
C++ Interface: get_num_types(LoaderFileTypeRegistry self)
- /**
Returns the total number of types registered.
*/
- get_type()
C++ Interface: get_type(LoaderFileTypeRegistry self, int n)
- /**
Returns the nth type registered.
*/
- get_type_from_extension()
C++ Interface: get_type_from_extension(const LoaderFileTypeRegistry self, 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.
*/
- get_types()
- registerDeferredType()
C++ Interface: register_deferred_type(const LoaderFileTypeRegistry self, object entry_point)
- /**
Records a type associated with a particular extension to be loaded in the
future. The named library will be dynamically loaded the first time files
of this extension are loaded; presumably this library will call
register_type() when it initializes, thus making the extension loadable.
*/
- registerType()
C++ Interface: register_type(const LoaderFileTypeRegistry self, object type)
- /**
Defines a new LoaderFileType in the universe.
*/
- register_deferred_type()
C++ Interface: register_deferred_type(const LoaderFileTypeRegistry self, object entry_point)
- /**
Records a type associated with a particular extension to be loaded in the
future. The named library will be dynamically loaded the first time files
of this extension are loaded; presumably this library will call
register_type() when it initializes, thus making the extension loadable.
*/
- register_type()
C++ Interface: register_type(const LoaderFileTypeRegistry self, object type)
- /**
Defines a new LoaderFileType in the universe.
*/
- types
- unregisterType()
C++ Interface: unregister_type(const LoaderFileTypeRegistry self, object type)
- /**
Removes a type previously registered using register_type.
*/