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

◆ _0021IndexBuffer()

unsafe void Microsoft.Xna.Framework.Graphics.IndexBuffer._0021IndexBuffer ( )
inlineprivate

Definition at line 422 of file IndexBuffer.cs.

423 {
424 if (!isDisposed)
425 {
426 ReleaseNativeObject(disposeManagedResource: true);
427 void* ptr = pBufferData;
428 if (ptr != null)
429 {
430 _003CModule_003E.delete_005B_005D(ptr);
431 pBufferData = null;
432 }
433 }
434 }
virtual unsafe void ReleaseNativeObject([MarshalAs(UnmanagedType.U1)] bool disposeManagedResource)

References Microsoft.Xna.Framework.Graphics.GraphicsResource.isDisposed, Microsoft.Xna.Framework.Graphics.IndexBuffer.pBufferData, and Microsoft.Xna.Framework.Graphics.IndexBuffer.ReleaseNativeObject().

Referenced by Microsoft.Xna.Framework.Graphics.IndexBuffer._007EIndexBuffer(), and Microsoft.Xna.Framework.Graphics.IndexBuffer.Dispose().