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

◆ InitalizeGraphics()

static unsafe void Microsoft.Xna.Framework.Graphics.GraphicsAdapter.InitalizeGraphics ( )
inlinestaticprivate

Definition at line 249 of file GraphicsAdapter.cs.

250 {
251 HINSTANCE__* ptr = _003CModule_003E.LoadLibraryW((ushort*)System.Runtime.CompilerServices.Unsafe.AsPointer(ref _003CModule_003E._003F_003F_C_0040_1BK_0040FPBCHPIH_0040_003F_0024AAd_003F_0024AA3_003F_0024AAd_003F_0024AAx_003F_0024AA9_003F_0024AA__003F_0024AA4_003F_0024AA1_003F_0024AA_003F4_003F_0024AAd_003F_0024AAl_003F_0024AAl_003F_0024AA_003F_0024AA_0040));
252 try
253 {
254 if (ptr == null)
255 {
256 throw new FileNotFoundException(string.Format(args: new object[1] { "d3dx9_41.dll" }, provider: CultureInfo.CurrentCulture, format: FrameworkResources.MissingNativeDependency));
257 }
258 pComPtr = _003CModule_003E.Direct3DCreate9(32u);
259 pCleanupHelper = new CleanupHelper();
260 }
261 finally
262 {
263 if (ptr != null)
264 {
265 _003CModule_003E.FreeLibrary(ptr);
266 }
267 }
268 _003CModule_003E.D3DPERF_SetOptions(2u);
269 }
static CultureInfo CurrentCulture

References System.Globalization.CultureInfo.CurrentCulture, System.Globalization.Format, System.format, Microsoft.Xna.Framework.FrameworkResources.MissingNativeDependency, Microsoft.Xna.Framework.Graphics.GraphicsAdapter.pCleanupHelper, and Microsoft.Xna.Framework.Graphics.GraphicsAdapter.pComPtr.

Referenced by Microsoft.Xna.Framework.Graphics.GraphicsAdapter.GraphicsAdapter().