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

◆ CleanupSavedData()

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

Definition at line 586 of file Texture3D.cs.

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

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

Referenced by Microsoft.Xna.Framework.Graphics.Texture3D._0021Texture3D(), Microsoft.Xna.Framework.Graphics.Texture3D.RecreateAndPopulateObject(), and Microsoft.Xna.Framework.Graphics.Texture3D.SaveDataForRecreation().