コード例 #1
0
 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);
 }
コード例 #2
0
        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);
            }
        }