00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef COLLADABINDMATERIAL_H
00016 #define COLLADABINDMATERIAL_H
00017
00018 #include "config_collada.h"
00019 #include "renderState.h"
00020 #include "pmap.h"
00021
00022 class ColladaPrimitive;
00023
00024 class domBind_material;
00025 class domInstance_material;
00026
00027
00028
00029
00030
00031
00032 class ColladaBindMaterial {
00033 public:
00034 CPT(RenderState) get_material(const ColladaPrimitive *prim) const;
00035 CPT(RenderState) get_material(const string &symbol) const;
00036
00037 void load_bind_material(domBind_material &bind_mat);
00038 void load_instance_material(domInstance_material &inst);
00039
00040 private:
00041 pmap<string, CPT(RenderState)> _states;
00042 };
00043
00044 #endif