00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef ACCUMULATEDATTRIBS_H
00020 #define ACCUMULATEDATTRIBS_H
00021
00022 #include "pandabase.h"
00023 #include "transformState.h"
00024 #include "renderAttrib.h"
00025 #include "renderState.h"
00026 #include "pointerTo.h"
00027
00028 class PandaNode;
00029
00030
00031
00032
00033
00034
00035
00036
00037 class EXPCL_PANDA AccumulatedAttribs {
00038 public:
00039 INLINE AccumulatedAttribs();
00040 INLINE AccumulatedAttribs(const AccumulatedAttribs ©);
00041 INLINE void operator = (const AccumulatedAttribs ©);
00042
00043 void write(ostream &out, int attrib_types, int indent_level) const;
00044
00045 void collect(PandaNode *node, int attrib_types);
00046 void apply_to_node(PandaNode *node, int attrib_types);
00047
00048 CPT(TransformState) _transform;
00049 CPT(RenderAttrib) _color;
00050 CPT(RenderAttrib) _color_scale;
00051 CPT(RenderAttrib) _tex_matrix;
00052 CPT(RenderState) _other;
00053 };
00054
00055 #include "accumulatedAttribs.I"
00056
00057 #endif
00058
00059