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