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 | clear_name () |
Resets the Namable's name to empty. | |
void | cycle () |
Flows all the pipeline data down to the next stage. | |
const string & | get_name () const |
int | get_num_stages () const |
Returns the number of stages required for the pipeline. | |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. | |
void | output (ostream &out) const |
Outputs the Namable. | |
void | set_min_stages (int min_stages) |
Ensures that at least the indicated number of stages are in the pipeline. | |
void | set_name (const string &name) |
void | set_num_stages (int num_stages) |
Specifies the number of stages required for the pipeline. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static Pipeline * | get_render_pipeline () |
Returns a pointer to the global render pipeline. | |
static void | init_type () |
Friends | |
class | Pipeline |
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 Namable::clear_name | ( | ) | [inline, inherited] |
void Pipeline::cycle | ( | ) |
Flows all the pipeline data down to the next stage.
Definition at line 71 of file pipeline.cxx.
Referenced by GraphicsEngine::render_frame().
int Pipeline::get_num_stages | ( | ) | const [inline] |
Returns the number of stages required for the pipeline.
Definition at line 47 of file pipeline.I.
Referenced by set_min_stages().
Pipeline * Pipeline::get_render_pipeline | ( | ) | [inline, static] |
Returns a pointer to the global render pipeline.
Definition at line 22 of file pipeline.I.
Referenced by GraphicsEngine::GraphicsEngine().
bool Namable::has_name | ( | ) | const [inline, inherited] |
Returns true if the Namable has a nonempty name set, false if the name is empty.
Definition at line 75 of file namable.I.
Referenced by XFileNode::add_child(), EggComponentData::add_name(), Texture::do_read_dds_file(), Texture::do_read_one(), Character::fillin(), EggGroupUniquifier::get_category(), EggXfmSAnim::optimize(), NodePathComponent::output(), AsyncTask::output(), EggNamedObject::output(), EggSAnimData::write(), EggPrimitive::write_body(), ParametricCurveCollection::write_egg(), ParametricCurve::write_egg(), EggNamedObject::write_header(), XFileDataNodeTemplate::write_text(), and XFileDataDef::write_text().
void Namable::output | ( | ostream & | out | ) | const [inline, inherited] |
Outputs the Namable.
This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.
Reimplemented in AnimBundle, AnimChannelFixed< SwitchType >, AnimChannelMatrixFixed, AnimControl, AnimGroup, PartBundle, CollisionNode, CollisionTraverser, ButtonNode, EggNamedObject, AsyncTask, AsyncTaskChain, AsyncTaskManager, AdaptiveLru, Material, SimpleLru, HermiteCurve, RopeNode, SheetNode, Fog, GeomNode, LensNode, Loader, PandaNode, PlaneNode, PolylightNode, PortalNode, CallbackNode, FadeLODNode, LODNode, ForceNode, Thread, MouseRecorder, TextNode, MouseWatcherRegion, WebcamVideo, and MayaShader.
void Pipeline::set_min_stages | ( | int | min_stages | ) | [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().
void Pipeline::set_num_stages | ( | int | num_stages | ) |
Specifies the number of stages required for the pipeline.
Definition at line 168 of file pipeline.cxx.
Referenced by set_min_stages().