10 #ifndef GR_MaterialGroups_h
11 #define GR_MaterialGroups_h
34 {
return myMatGroups(i).visible; }
36 getGroupMaterial(
int group_index,
38 int default_material = -1)
const;
40 getGroupMaterial(
int group_index,
42 int default_material = -1)
const;
43 int getGroupMaterialID(
int group_index,
int default_material)
const;
45 {
return myMatGroups(group_index).mat_id; }
49 { myMatGroups.append();
50 myMatGroups.last().mat_id = mat_id; }
52 { myMatGroups.entries(num); }
54 { myMatGroups(group_index).visible = visible; }
55 void setAllGroupsVisible(
bool visible =
true);
58 { myMatGroups(group_index).mat_id = mat_id; }
66 gr_MatGroup() : visible(true), mat_id(-1) {}
74 int64 myMatRemapDataID;
void setNumGroups(int num)
void appendGroup(int mat_id)
A class that manages material assignments to different groups of primitives.
void setGroupMaterial(int group_index, int mat_id)
int getGroupUnmappedID(int group_index) const
bool isGroupVisible(int i) const
void setGroupVisibility(int group_index, bool visible)