00001 #ifndef _MESH_MATERIAL_MAPPING_H_ 00002 #define _MESH_MATERIAL_MAPPING_H_ 00003 00004 #include "cglib/reference_counted.h" 00005 #include <vector> 00006 00008 class MeshMaterialMapping : public ReferenceCounted 00009 { 00010 public: 00012 MeshMaterialMapping (); 00013 00015 virtual ~MeshMaterialMapping (); 00016 00018 00022 int get_face_count() const; 00023 00025 int get_face_material_index(int face_index) const; 00026 00028 00037 void append_face_material_index(int material_index); 00038 00039 private: 00040 std::vector<int> mappings; 00041 }; 00042 00043 #endif /* _MESH_MATERIAL_MAPPING_H_ */