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

◆ InitializeDeviceState()

void Microsoft.Xna.Framework.Graphics.GraphicsDevice.InitializeDeviceState ( )
inlineprivate

Definition at line 2527 of file GraphicsDevice.cs.

2528 {
2529 cachedBlendState = null;
2531 cachedRasterizerState = null;
2537 currentViewport = default(Viewport);
2538 currentViewport.Width = pInternalCachedParams.BackBufferWidth;
2539 currentViewport.Height = pInternalCachedParams.BackBufferHeight;
2540 currentViewport.MaxDepth = 1f;
2542 }
static readonly BlendState Opaque
Definition BlendState.cs:34
static readonly RasterizerState CullCounterClockwise

References Microsoft.Xna.Framework.Graphics.PresentationParameters.BackBufferHeight, Microsoft.Xna.Framework.Graphics.PresentationParameters.BackBufferWidth, Microsoft.Xna.Framework.Graphics.GraphicsDevice.cachedBlendState, Microsoft.Xna.Framework.Graphics.GraphicsDevice.cachedDepthStencilState, Microsoft.Xna.Framework.Graphics.GraphicsDevice.cachedRasterizerState, Microsoft.Xna.Framework.Graphics.RasterizerState.CullCounterClockwise, Microsoft.Xna.Framework.Graphics.GraphicsDevice.currentViewport, Microsoft.Xna.Framework.Graphics.DepthStencilState.Default, Microsoft.Xna.Framework.Graphics.GraphicsDevice.DefaultClearOptions, Microsoft.Xna.Framework.Graphics.SamplerStateCollection.InitializeDeviceState(), Microsoft.Xna.Framework.Graphics.GraphicsDevice.lazyClearFlags, Microsoft.Xna.Framework.Graphics.BlendState.Opaque, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pInternalCachedParams, Microsoft.Xna.Framework.Graphics.GraphicsDevice.pSamplerState, and Microsoft.Xna.Framework.Graphics.GraphicsDevice.pVertexSamplerState.

Referenced by Microsoft.Xna.Framework.Graphics.GraphicsDevice.GraphicsDevice(), and Microsoft.Xna.Framework.Graphics.GraphicsDevice.Reset().