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

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

Public Member Functions

 __init__ (const LoaderFileTypeRegistry)
 
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). 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...
 

Public Attributes

LoaderFileType types []
 

Detailed Description

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

Member Function Documentation

◆ __init__()

__init__ ( const  LoaderFileTypeRegistry)

◆ 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.

Member Data Documentation

◆ types

LoaderFileType types[]