class Paper::PaperPass |
A single rendering pass.
A single rendering pass. The data members are public to allow modification, but when using a ready-made PaperPass, _choose one_ (and only one) of the following ways to use it:1) using texgen - call setUp_texgen() with LightParam to use - call glVertex*() directly from the context - teardown_texgen()
2) using a vertex program - call setUp_VP with LightParam to use - call glTexCoord*() and glVertex*() directly from the context _or_ call vertex_VP() with position within the paper in array of 4 floats - call teardown_VP()
3) using explicit coordinates - call setUp_explicit with LightParam to use - call texcoords_explicit() with paper coordinates in arrays of 4 floats and call glVertex*() directly from the context. - call teardown_explicit()
CallGLCode | setupcode The code to call before beginning to render the pass. |
CallGLCode | teardowncode The code to call after rendering the pass. |
vector<shared_ptr<TexGen> > | texgen The TexGen objects for the different texture units. |
vector<shared_ptr<LightSetup> > | setup The non-texgen light setup routines. |
void | setUp_texgen (LightParam* param) Calls setupcode, texgen and setup for the texture. |
void | tearDown_texgen () Calls teardowncode. |
void | setUp_VP (LightParam* param) Calls setupcode, texgen and setup for the texture. |
void | tearDown_VP () Calls teardowncode. |
void | vertex_VP (float* pos, float* ppos) Vertex program version of the paperpass vertex. |
void | setUp_explicit (LightParam* param) Calls setupcode, texgen and setup for the texture. |
void | tearDown_explicit () Calls teardowncode |
void | texcoords_explicit (float* ppos) Explicit version of the PaperPass texcoords |
Alphabetic index Hierarchy of classes