protected override void DisposeManaged() { base.DisposeManaged(); vertexBuffer.Dispose(); skinBuffer.Dispose(); indexBuffer.Dispose(); lineBuffer.Dispose(); BoneMaterial.Dispose(); SkinMaterial.Dispose(); SkinHighlightedMaterial.Dispose(); LinesMaterial.Dispose(); locationBuffer.Remove(worldBufferRange); }
private void FilterObjects(int index) { int idEye = eyesList [index].ID; materialList.Clear(); List <EyesTable.EyeObject> tList = eyeTable.GetObjectsList(idEye, true); for (int i = 0; i < tList.Count; i++) { SkinMaterial toAdd = new SkinMaterial(); toAdd.IDEyeObject = tList [i].ID; toAdd.objectName = tList [i].ObjectName; materialList.Add(toAdd); } }