Panda3D
Public Member Functions | Static Public Member Functions | List of all members
LoaderFileTypeRegistry Class Reference

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

Public Member Functions

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). Returns NULL if the extension matches no known file types. More...
 
list getTypes ()
 
 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...
 

Detailed Description

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

Member Function Documentation

◆ getGlobalPtr()

static LoaderFileTypeRegistry getGlobalPtr ( )
static

Returns a pointer to the global LoaderFileTypeRegistry object.

◆ getNumTypes()

int getNumTypes ( )

Returns the total number of types registered.

◆ getType()

LoaderFileType getType ( int  n)

Returns the nth type registered.

◆ getTypeFromExtension()

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.

◆ getTypes()

list getTypes ( )

◆ write()

write ( Ostream  out,
int  indent_level 
)

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