This class is used by the SceneGraphReducer to maintain and accumulate the set of attributes we have encountered on each node that might eventually be applied to the vertices at the leaves. More...
#include "accumulatedAttribs.h"
Public Member Functions | |
AccumulatedAttribs (const AccumulatedAttribs ©) | |
void | apply_to_node (PandaNode *node, int attrib_types) |
Stores the indicated attributes in the node's transform and state information; does not attempt to apply the properties to the vertices. More... | |
void | collect (PandaNode *node, int attrib_types) |
Collects the state and transform from the indicated node and adds it to the accumulator, removing it from the node. More... | |
CPT (RenderState) collect(const RenderState *state | |
CPT (TransformState) _transform | |
CPT (RenderAttrib) _color | |
CPT (RenderAttrib) _color_scale | |
CPT (RenderAttrib) _tex_matrix | |
CPT (RenderAttrib) _texture | |
CPT (RenderAttrib) _clip_plane | |
CPT (RenderAttrib) _cull_face | |
CPT (RenderState) _other | |
void | operator= (const AccumulatedAttribs ©) |
void | write (std::ostream &out, int attrib_types, int indent_level) const |
Public Attributes | |
int | _clip_plane_override |
int | _color_override |
int | _color_scale_override |
int | _cull_face_override |
int | _tex_matrix_override |
int | _texture_override |
int | attrib_types |
This class is used by the SceneGraphReducer to maintain and accumulate the set of attributes we have encountered on each node that might eventually be applied to the vertices at the leaves.
Definition at line 30 of file accumulatedAttribs.h.
void AccumulatedAttribs::apply_to_node | ( | PandaNode * | node, |
int | attrib_types | ||
) |
Stores the indicated attributes in the node's transform and state information; does not attempt to apply the properties to the vertices.
Clears the attributes from the accumulator for future traversals.
Definition at line 286 of file accumulatedAttribs.cxx.
References PandaNode::reset_prev_transform(), PandaNode::set_attrib(), PandaNode::set_state, and PandaNode::set_transform.
void AccumulatedAttribs::collect | ( | PandaNode * | node, |
int | attrib_types | ||
) |
Collects the state and transform from the indicated node and adds it to the accumulator, removing it from the node.
Definition at line 137 of file accumulatedAttribs.cxx.