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

◆ DepthStencilState

DepthStencilState Microsoft.Xna.Framework.Graphics.GraphicsDevice.DepthStencilState
getset

Definition at line 418 of file GraphicsDevice.cs.

419 {
420 get
421 {
423 }
424 set
425 {
426 if (value == null)
427 {
428 throw new ArgumentNullException("value", FrameworkResources.NullNotAllowed);
429 }
431 {
432 EffectPass effectPass = activePass;
433 if (effectPass != null && (effectPass._stateFlags & EffectStateFlags.DepthStencil) != 0)
434 {
435 effectPass.EndPass();
436 activePass = null;
437 }
438 value.Apply(this);
440 cachedReferenceStencil = value.cachedReferenceStencil;
442 }
443 }
444 }

Referenced by Microsoft.Xna.Framework.Graphics.SavedDeviceState.SavedDeviceState(), and Terraria.GameContent.UI.Elements.UICharacter.DrawPets().