Exemple #1
0
        private void subMeshListBox_ItemCheck(object sender, ItemCheckedEventArgs e)
        {
            int         index = subMeshListBox.Items.IndexOf(e.Item);
            SubMeshInfo info  = subMeshCollection.FindSubMeshInfo((subMeshListBox.Items[index]).ToString());

            if (e.Item.Checked)
            {
                subMeshCollection.ShowSubMesh(info.Name, true);
            }
            else
            {
                subMeshCollection.ShowSubMesh(info.Name, false);
            }
        }
Exemple #2
0
 /// <summary>
 /// Load the material and visibility information from SubMeshInfo into the actual subMesh
 /// </summary>
 /// <param name="subMeshInfo"></param>
 private void ValidateSubMesh(SubMeshInfo subMeshInfo)
 {
     entity.GetSubEntity(subMeshInfo.Name).IsVisible    = subMeshInfo.Show;
     entity.GetSubEntity(subMeshInfo.Name).MaterialName = subMeshInfo.MaterialName;
 }