Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CleanupSavedData()

unsafe void Microsoft.Xna.Framework.Graphics.TextureCube.CleanupSavedData ( )
inlinepackage

Definition at line 584 of file TextureCube.cs.

585 {
587 if (array == null)
588 {
589 return;
590 }
591 int num = 0;
592 if (0 < (nint)array.LongLength)
593 {
594 do
595 {
596 void* ptr = pFaceData[num].ToPointer();
597 if (ptr != null)
598 {
599 _003CModule_003E.delete_005B_005D(ptr);
600 }
601 ref IntPtr reference = ref pFaceData[num];
602 reference = IntPtr.Zero;
603 num++;
604 }
605 while (num < (nint)pFaceData.LongLength);
606 }
607 pFaceData = null;
608 }
static readonly IntPtr Zero
Definition IntPtr.cs:18
unsafe void * ToPointer()
Definition IntPtr.cs:210

References System.array, Microsoft.Xna.Framework.Graphics.TextureCube.pFaceData, System.IntPtr.ToPointer(), and System.IntPtr.Zero.

Referenced by Microsoft.Xna.Framework.Graphics.TextureCube._0021TextureCube(), Microsoft.Xna.Framework.Graphics.TextureCube.RecreateAndPopulateObject(), and Microsoft.Xna.Framework.Graphics.TextureCube.SaveDataForRecreation().