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

◆ DefaultClearOptions

ClearOptions Microsoft.Xna.Framework.Graphics.GraphicsDevice.DefaultClearOptions
getprivate

Definition at line 131 of file GraphicsDevice.cs.

132 {
133 get
134 {
135 ClearOptions result = ClearOptions.Target;
136 DepthFormat depthFormat = ((currentRenderTargetCount <= 0) ? pInternalCachedParams.DepthStencilFormat : currentRenderTargets[0].depthFormat);
137 if (depthFormat != 0)
138 {
139 result = ClearOptions.Target | ClearOptions.DepthBuffer;
140 if (depthFormat == DepthFormat.Depth24Stencil8)
141 {
142 result = ClearOptions.Target | ClearOptions.DepthBuffer | ClearOptions.Stencil;
143 }
144 }
145 return result;
146 }
147 }

Referenced by Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(), Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(), Microsoft.Xna.Framework.Graphics.GraphicsDevice.GetBackBufferData< T >(), Microsoft.Xna.Framework.Graphics.GraphicsDevice.InitializeDeviceState(), Microsoft.Xna.Framework.Graphics.GraphicsDevice.Present(), and Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetRenderTargets().