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

◆ DestroyResources()

unsafe void Microsoft.Xna.Framework.Graphics.GuideRenderer.DestroyResources ( )
inlineprivate

Definition at line 67 of file GuideRenderer.cs.

68 {
70 if (ptr != null)
71 {
72 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint>)(int)(*(uint*)(*(int*)ptr + 8)))((nint)ptr);
73 pStateBlock = null;
74 }
76 if (dictionary == null)
77 {
78 return;
79 }
81 if (enumerator.MoveNext())
82 {
83 do
84 {
85 IUnknown* ptr2 = (IUnknown*)enumerator.Current.ToPointer();
86 if (ptr2 != null)
87 {
88 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint>)(int)(*(uint*)(*(int*)ptr2 + 8)))((nint)ptr2);
89 }
90 }
91 while (enumerator.MoveNext());
92 }
94 }
unsafe IDirect3DStateBlock9 * pStateBlock

References System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), System.dictionary, System.Collections.Generic.Dictionary< TKey, TValue >.ValueCollection.GetEnumerator(), System.Runtime.InteropServices.IUnknown, Microsoft.Xna.Framework.Graphics.GuideRenderer.pStateBlock, Microsoft.Xna.Framework.Graphics.GuideRenderer.resourceTable, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.

Referenced by Microsoft.Xna.Framework.Graphics.GuideRenderer._0021GuideRenderer(), Microsoft.Xna.Framework.Graphics.GuideRenderer._007EGuideRenderer(), Microsoft.Xna.Framework.Graphics.GuideRenderer.GraphicsDeviceDisposing(), and Microsoft.Xna.Framework.Graphics.GuideRenderer.GraphicsDeviceResetting().