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

◆ _0021GraphicsDevice()

unsafe void Microsoft.Xna.Framework.Graphics.GraphicsDevice._0021GraphicsDevice ( )
inlineprivate

Definition at line 2550 of file GraphicsDevice.cs.

2551 {
2552 if (!isDisposed)
2553 {
2554 isDisposed = true;
2557 IDirect3DSurface9* ptr = pImplicitDepthSurface;
2558 if (ptr != null)
2559 {
2560 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint>)(int)(*(uint*)(*(int*)ptr + 8)))((nint)ptr);
2561 pImplicitDepthSurface = null;
2562 }
2563 StateTrackerDevice* ptr2 = pStateTracker;
2564 if (ptr2 != null)
2565 {
2566 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint>)(int)(*(uint*)(*(int*)ptr2 + 8)))((nint)ptr2);
2567 pStateTracker = null;
2568 }
2569 IDirect3DDevice9* ptr3 = pComPtr;
2570 if (ptr3 != null)
2571 {
2572 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint>)(int)(*(uint*)(*(int*)ptr3 + 8)))((nint)ptr3);
2573 pComPtr = null;
2574 }
2575 }
2576 }

References Microsoft.Xna.Framework.Graphics.GraphicsDevice.isDisposed, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pComPtr, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pImplicitDepthSurface, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pResourceManager, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pStateTracker, Microsoft.Xna.Framework.Graphics.DeclarationManager.ReleaseAllDeclarations(), Microsoft.Xna.Framework.Graphics.DeviceResourceManager.ReleaseAllDeviceResources(), and Microsoft.Xna.Framework.Graphics.GraphicsDevice.vertexDeclarationManager.

Referenced by Microsoft.Xna.Framework.Graphics.GraphicsDevice._007EGraphicsDevice(), and Microsoft.Xna.Framework.Graphics.GraphicsDevice.Dispose().