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

◆ SetGraphicsProfileInternal()

static void Terraria.Main.SetGraphicsProfileInternal ( )
inlinestaticprivate

Definition at line 3466 of file Main.cs.

3467 {
3469 graphics.GraphicsProfile = _selectedGraphicsProfile;
3471 {
3472 case GraphicsProfile.HiDef:
3473 maxScreenW = 4096;
3474 maxScreenH = 4096;
3475 _renderTargetMaxSize = 4096;
3477 break;
3478 case GraphicsProfile.Reach:
3479 maxScreenW = 1920;
3480 maxScreenH = 1200;
3481 _renderTargetMaxSize = 2048;
3482 break;
3483 }
3484 try
3485 {
3486 graphics.ApplyChanges();
3487 }
3489 {
3491 {
3494 }
3495 }
3496 instance.EnsureRenderTargetContent();
3497 }
static GraphicsProfile _currentGraphicsProfile
Definition Main.cs:1894
static Main instance
Definition Main.cs:283
static GraphicsProfile _selectedGraphicsProfile
Definition Main.cs:1892
static int maxScreenW
Definition Main.cs:750
static int _renderTargetMaxSize
Definition Main.cs:1890
static void SetGraphicsProfileInternal()
Definition Main.cs:3466
static void TrySupporting8K()
Definition Main.cs:3499
static int maxScreenH
Definition Main.cs:752
static GraphicsDeviceManager graphics
Definition Main.cs:972

References Terraria.Main._currentGraphicsProfile, Terraria.Main._renderTargetMaxSize, Terraria.Main._selectedGraphicsProfile, Terraria.Main.graphics, Terraria.Main.instance, Terraria.Main.maxScreenH, Terraria.Main.maxScreenW, Terraria.Main.SetGraphicsProfileInternal(), and Terraria.Main.TrySupporting8K().

Referenced by Terraria.Main.SetGraphicsProfile(), and Terraria.Main.SetGraphicsProfileInternal().