Panda3D
|
This class manages a staged pipeline of data, for instance the render pipeline, so that each stage of the pipeline can simultaneously access different copies of the same data. More...
#include "pipeline.h"
Public Member Functions | |
Pipeline (const string &name, int num_stages) | |
void | cycle () |
Flows all the pipeline data down to the next stage. More... | |
int | get_num_stages () const |
Returns the number of stages required for the pipeline. More... | |
void | set_min_stages (int min_stages) |
Ensures that at least the indicated number of stages are in the pipeline. More... | |
void | set_num_stages (int num_stages) |
Specifies the number of stages required for the pipeline. More... | |
![]() | |
Namable (const string &initial_name="") | |
Namable (const Namable ©) | |
void | clear_name () |
Resets the Namable's name to empty. More... | |
const string & | get_name () const |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. More... | |
Namable & | operator= (const Namable &other) |
void | output (ostream &out) const |
Outputs the Namable. More... | |
void | set_name (const string &name) |
Static Public Member Functions | |
static Pipeline * | get_render_pipeline () |
Returns a pointer to the global render pipeline. More... | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
This class manages a staged pipeline of data, for instance the render pipeline, so that each stage of the pipeline can simultaneously access different copies of the same data.
It actually maintains a collection of PipelineCycler objects, and manages the turning of all of them at once.
There is one default Pipeline object, the render pipeline. Other specialty pipelines may be created as needed.
Definition at line 41 of file pipeline.h.
void Pipeline::cycle | ( | ) |
Flows all the pipeline data down to the next stage.
Definition at line 94 of file pipeline.cxx.
References set_num_stages().
Referenced by GraphicsEngine::render_frame().
|
inline |
Returns the number of stages required for the pipeline.
Definition at line 47 of file pipeline.I.
Referenced by GraphicsEngine::do_cull(), and set_min_stages().
|
inlinestatic |
Returns a pointer to the global render pipeline.
Definition at line 22 of file pipeline.I.
References set_min_stages().
Referenced by GraphicsEngine::GraphicsEngine().
|
inline |
Ensures that at least the indicated number of stages are in the pipeline.
Definition at line 36 of file pipeline.I.
References get_num_stages(), and set_num_stages().
Referenced by GraphicsEngine::do_cull(), and get_render_pipeline().
void Pipeline::set_num_stages | ( | int | num_stages | ) |
Specifies the number of stages required for the pipeline.
Definition at line 214 of file pipeline.cxx.
Referenced by cycle(), and set_min_stages().