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

◆ InitializeDescription() [1/2]

unsafe void Microsoft.Xna.Framework.Graphics.Texture.InitializeDescription ( SurfaceFormat format)
inlineprotectedinherited

Definition at line 39 of file Texture.cs.

40 {
42 IDirect3DBaseTexture9* comPtr = GetComPtr();
43 _levelCount = (int)((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint>)(int)(*(uint*)(*(int*)comPtr + 52)))((nint)comPtr);
44 int num = CreateStateWrapper();
45 if (num < 0)
46 {
47 throw GraphicsHelpers.GetExceptionFromResult((uint)num);
48 }
49 }
unsafe IDirect3DBaseTexture9 * GetComPtr()

References Microsoft.Xna.Framework.Graphics.Texture._format, Microsoft.Xna.Framework.Graphics.Texture._levelCount, Microsoft.Xna.Framework.Graphics.Texture.CreateStateWrapper(), System.format, Microsoft.Xna.Framework.Graphics.Texture.GetComPtr(), and Microsoft.Xna.Framework.Graphics.GraphicsHelpers.GetExceptionFromResult().