14#ifndef LOADERFILETYPEREGISTRY_H
15#define LOADERFILETYPEREGISTRY_H
36 void register_deferred_type(
const std::string &extension,
const std::string &library);
42 EXTENSION(
void register_deferred_type(PyObject *entry_point));
44 EXTENSION(
void unregister_type(PyObject *type));
46 int get_num_types()
const;
48 MAKE_SEQ(get_types, get_num_types, get_type);
49 MAKE_SEQ_PROPERTY(types, get_num_types, get_type);
50 LoaderFileType *get_type_from_extension(
const std::string &extension);
52 void write(std::ostream &out,
int indent_level = 0)
const;
56 EXTENSION(PyObject *__reduce__()
const);
59 void record_extension(
const std::string &extension,
LoaderFileType *type);
The name of a file, such as a texture file or an Egg file.
This class maintains the set of all known LoaderFileTypes in the universe.
This is the base class for a family of scene-graph file types that the Loader supports.
This is our own Panda specialization on the default STL map.
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...