Panda3D
Classes | Public Member Functions | Static Public Member Functions | Public Attributes

GraphicsPipeSelection Class Reference

This maintains a list of GraphicsPipes by type that are available for creation. More...

#include "graphicsPipeSelection.h"

List of all members.

Classes

class  LoadedModule
class  PipeType

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.
int get_num_aux_modules () const
 Returns the number of display modules that are still to be loaded.
int get_num_pipe_types () const
 Returns the number of different types of GraphicsPipes that are available to create through this interface.
TypeHandle get_pipe_type (int n) const
 Returns the nth type of GraphicsPipe available through this interface.
void load_aux_modules ()
 Loads all the modules named in the aux-display Configrc variable, making as many graphics pipes as possible available.
 MAKE_SEQ (get_pipe_types, get_num_pipe_types, get_pipe_type)
void print_pipe_types () const
 Writes a list of the currently known GraphicsPipe types to nout, for the user's information.
 PT (GraphicsPipe) make_pipe(TypeHandle type)
 PT (GraphicsPipe) make_pipe(const string &type_name
typedef PT (GraphicsPipe) PipeConstructorFunc()
 PT (GraphicsPipe) make_default_pipe()
 PT (GraphicsPipe) make_module_pipe(const string &module_name)

Static Public Member Functions

static GraphicsPipeSelectionget_global_ptr ()
 Returns a pointer to the one global GraphicsPipeSelection object.

Public Attributes

const string & module_name = string())

Detailed Description

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 36 of file graphicsPipeSelection.h.


Member Function Documentation

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 357 of file graphicsPipeSelection.cxx.

References TypeHandle::is_derived_from().

GraphicsPipeSelection * GraphicsPipeSelection::get_global_ptr ( ) [inline, static]

Returns a pointer to the one global GraphicsPipeSelection object.

Definition at line 35 of file graphicsPipeSelection.I.

Referenced by PandaFramework::make_default_pipe(), and PandaFramework::open_window().

int GraphicsPipeSelection::get_num_aux_modules ( ) const [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 24 of file graphicsPipeSelection.I.

int GraphicsPipeSelection::get_num_pipe_types ( ) const

Returns the number of different types of GraphicsPipes that are available to create through this interface.

Definition at line 94 of file graphicsPipeSelection.cxx.

Referenced by PandaFramework::open_window().

TypeHandle GraphicsPipeSelection::get_pipe_type ( int  n) const

Returns the nth type of GraphicsPipe available through this interface.

Definition at line 112 of file graphicsPipeSelection.cxx.

Referenced by PandaFramework::open_window().

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 337 of file graphicsPipeSelection.cxx.

Referenced by PandaFramework::open_window().

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 132 of file graphicsPipeSelection.cxx.

Referenced by PandaFramework::make_default_pipe().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations