Panda3D
|
This class records the different types of MovieAudio and MovieVideo that are available for loading. More...
#include "movieTypeRegistry.h"
Public Types | |
typedef PT() MovieAudio(* | MakeAudioFunc) (const Filename &) |
typedef PT() MovieVideo(* | MakeVideoFunc) (const Filename &) |
Public Member Functions | |
void | load_audio_types () |
Loads the list with audio types, if we haven't already. More... | |
void | load_movie_library (const string &name) |
Loads the module. More... | |
void | load_video_types () |
Loads the list with video types, if we haven't already. More... | |
PT (MovieAudio) make_audio(const Filename &name) | |
PT (MovieVideo) make_video(const Filename &name) | |
void | register_audio_type (MakeAudioFunc func, const string &extensions) |
Registers a MovieAudio type, so that files with any of the given extensions will be loaded as this type. More... | |
void | register_video_type (MakeVideoFunc func, const string &extensions) |
Registers a MovieVideo type, so that files with any of the given extensions will be loaded as this type. More... | |
Static Public Member Functions | |
static MovieTypeRegistry * | get_global_ptr () |
Returns a pointer to the global MovieTypeRegistry instance. More... | |
This class records the different types of MovieAudio and MovieVideo that are available for loading.
Definition at line 29 of file movieTypeRegistry.h.
|
inlinestatic |
Returns a pointer to the global MovieTypeRegistry instance.
Definition at line 23 of file movieTypeRegistry.I.
Referenced by MovieAudio::MovieAudio(), and MovieVideo::MovieVideo().
void MovieTypeRegistry::load_audio_types | ( | ) |
Loads the list with audio types, if we haven't already.
Definition at line 97 of file movieTypeRegistry.cxx.
References Filename::get_extension(), ConfigVariableList::get_num_unique_values(), ConfigVariableList::get_unique_value(), load_movie_library(), load_video_types(), register_video_type(), and Filename::to_os_specific().
Referenced by register_audio_type().
void MovieTypeRegistry::load_movie_library | ( | const string & | name | ) |
Loads the module.
Definition at line 277 of file movieTypeRegistry.cxx.
References Filename::to_os_specific().
Referenced by load_audio_types(), and load_video_types().
void MovieTypeRegistry::load_video_types | ( | ) |
Loads the list with video types, if we haven't already.
Definition at line 221 of file movieTypeRegistry.cxx.
References ConfigVariableList::get_num_unique_values(), ConfigVariableList::get_unique_value(), load_movie_library(), and Filename::to_os_specific().
Referenced by load_audio_types(), and register_video_type().
void MovieTypeRegistry::register_audio_type | ( | MakeAudioFunc | func, |
const string & | extensions | ||
) |
Registers a MovieAudio type, so that files with any of the given extensions will be loaded as this type.
You may use * as a catch-all extension.
Definition at line 73 of file movieTypeRegistry.cxx.
References load_audio_types().
void MovieTypeRegistry::register_video_type | ( | MakeVideoFunc | func, |
const string & | extensions | ||
) |
Registers a MovieVideo type, so that files with any of the given extensions will be loaded as this type.
You may use * as a catch-all extension.
Definition at line 197 of file movieTypeRegistry.cxx.
References load_video_types().
Referenced by load_audio_types().