This maintains a list of GraphicsPipes by type that are available for creation. More...
#include "graphicsPipeSelection.h"
Public Member Functions | |
bool | add_pipe_type (TypeHandle type, PipeConstructorFunc *func) |
Adds a new kind of GraphicsPipe to the list of available pipes for creation. More... | |
int | get_num_aux_modules () const |
Returns the number of display modules that are still to be loaded. More... | |
int | get_num_pipe_types () const |
TypeHandle | get_pipe_type (int n) const |
void | load_aux_modules () |
Loads all the modules named in the aux-display Configrc variable, making as many graphics pipes as possible available. More... | |
void | print_pipe_types () const |
Writes a list of the currently known GraphicsPipe types to nout, for the user's information. More... | |
typedef | PT (GraphicsPipe) PipeConstructorFunc() |
Static Public Member Functions | |
static GraphicsPipeSelection * | get_global_ptr () |
Returns a pointer to the one global GraphicsPipeSelection object. More... | |
Public Attributes | |
get_num_pipe_types | |
Returns the number of different types of GraphicsPipes that are available to create through this interface. More... | |
get_pipe_type | |
Returns the nth type of GraphicsPipe available through this interface. More... | |
This maintains a list of GraphicsPipes by type that are available for creation.
Normally there is one default interactive GraphicsPipe, and possibly other types available as well.
Definition at line 33 of file graphicsPipeSelection.h.
bool GraphicsPipeSelection::add_pipe_type | ( | TypeHandle | type, |
PipeConstructorFunc * | func | ||
) |
Adds a new kind of GraphicsPipe to the list of available pipes for creation.
Normally, this is called at static init type by the various shared libraries as they are linked in. Returns true on success, false on failure.
Definition at line 317 of file graphicsPipeSelection.cxx.
Referenced by init_libandroiddisplay(), init_libdxgsg9(), init_libegldisplay(), init_libglxdisplay(), init_libosxdisplay(), and init_libwgldisplay().
|
inlinestatic |
Returns a pointer to the one global GraphicsPipeSelection object.
Definition at line 28 of file graphicsPipeSelection.I.
Referenced by init_libandroiddisplay(), init_libdxgsg9(), init_libegldisplay(), init_libglxdisplay(), init_libosxdisplay(), init_libwgldisplay(), and PandaFramework::open_window().
|
inline |
Returns the number of display modules that are still to be loaded.
If this is nonzero, then calling load_aux_modules() will likely increase the number of GraphicsPipes available.
Definition at line 20 of file graphicsPipeSelection.I.
void GraphicsPipeSelection::load_aux_modules | ( | ) |
Loads all the modules named in the aux-display Configrc variable, making as many graphics pipes as possible available.
Definition at line 301 of file graphicsPipeSelection.cxx.
Referenced by PandaFramework::open_window(), and PT().
void GraphicsPipeSelection::print_pipe_types | ( | ) | const |
Writes a list of the currently known GraphicsPipe types to nout, for the user's information.
Definition at line 121 of file graphicsPipeSelection.cxx.
int GraphicsPipeSelection::get_num_pipe_types |
Returns the number of different types of GraphicsPipes that are available to create through this interface.
Definition at line 41 of file graphicsPipeSelection.h.
Referenced by PandaFramework::open_window().
TypeHandle GraphicsPipeSelection::get_pipe_type |
Returns the nth type of GraphicsPipe available through this interface.
Definition at line 41 of file graphicsPipeSelection.h.