panda3d.core.GraphicsPipeSelection

from panda3d.core import GraphicsPipeSelection
class GraphicsPipeSelection

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.

Inheritance diagram

Inheritance diagram of GraphicsPipeSelection

getNumPipeTypes() → int

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

getPipeType(n: int) → TypeHandle

Returns the nth type of GraphicsPipe available through this interface.

Return type

TypeHandle

printPipeTypes() → None

Writes a list of the currently known GraphicsPipe types to nout, for the user’s information.

makePipe(type: TypeHandle) → GraphicsPipe

Creates a new GraphicsPipe of the indicated type (or a type more specific than the indicated type, if necessary) and returns it. Returns NULL if the type cannot be matched.

Return type

GraphicsPipe

makePipe(type_name: str, module_name: str) → GraphicsPipe

Creates a new GraphicsPipe of the indicated type (or a type more specific than the indicated type, if necessary) and returns it. Returns NULL if the type cannot be matched.

If the type is not already defined, this will implicitly load the named module, or if module_name is empty, it will call loadAuxModules().

Return type

GraphicsPipe

makeModulePipe(module_name: str) → GraphicsPipe

Returns a new GraphicsPipe of a type defined by the indicated module. Returns NULL if the module is not found or does not properly recommend a GraphicsPipe.

Return type

GraphicsPipe

makeDefaultPipe() → GraphicsPipe

Creates a new GraphicsPipe of some arbitrary type. The user may specify a preference using the Configrc file; otherwise, one will be chosen arbitrarily.

Return type

GraphicsPipe

getNumAuxModules() → int

Returns the number of display modules that are still to be loaded. If this is nonzero, then calling loadAuxModules() will likely increase the number of GraphicsPipes available.

loadAuxModules() → None

Loads all the modules named in the aux-display Configrc variable, making as many graphics pipes as possible available.

static getGlobalPtr() → GraphicsPipeSelection

Returns a pointer to the one global GraphicsPipeSelection object.

Return type

GraphicsPipeSelection

getPipeTypes() → list
property pipe_types

Returns the nth type of GraphicsPipe available through this interface.

Return type

Sequence[TypeHandle]