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

◆ SaveDataForRecreation() [1/2]

virtual unsafe int Microsoft.Xna.Framework.Graphics.TextureCube.SaveDataForRecreation ( )
inlinepackagevirtual

Implements Microsoft.Xna.Framework.Graphics.IGraphicsResource.

Reimplemented in Microsoft.Xna.Framework.Graphics.RenderTargetCube, and Microsoft.Xna.Framework.Graphics.RenderTargetCube.

Definition at line 386 of file TextureCube.cs.

387 {
388 if (pComPtr == null)
389 {
390 return 0;
391 }
393 int num = CopyOrRestoreData(isStoring: true);
394 if (num >= 0)
395 {
396 ReleaseNativeObject(disposeManagedResource: false);
397 }
398 else
399 {
401 }
402 alreadyRecreated = false;
403 return num;
404 }
virtual unsafe void ReleaseNativeObject([MarshalAs(UnmanagedType.U1)] bool disposeManagedResource)
unsafe IDirect3DCubeTexture9 * pComPtr
unsafe int CopyOrRestoreData([MarshalAs(UnmanagedType.U1)] bool isStoring)

References Microsoft.Xna.Framework.Graphics.Texture.alreadyRecreated, Microsoft.Xna.Framework.Graphics.TextureCube.CleanupSavedData(), Microsoft.Xna.Framework.Graphics.TextureCube.CopyOrRestoreData(), Microsoft.Xna.Framework.Graphics.TextureCube.pComPtr, and Microsoft.Xna.Framework.Graphics.TextureCube.ReleaseNativeObject().

Referenced by Microsoft.Xna.Framework.Graphics.TextureCube.SaveDataForRecreation().