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

◆ BlendState() [2/2]

Microsoft.Xna.Framework.Graphics.BlendState.BlendState ( Blend sourceBlend,
Blend destinationBlend,
string name )
inlineprivate

Definition at line 265 of file BlendState.cs.

266 {
267 try
268 {
269 SetDefaults();
270 ThrowIfBound();
271 cachedColorSourceBlend = sourceBlend;
272 ThrowIfBound();
273 cachedColorDestinationBlend = destinationBlend;
274 ThrowIfBound();
275 cachedAlphaSourceBlend = sourceBlend;
276 ThrowIfBound();
277 cachedAlphaDestinationBlend = destinationBlend;
278 base.Name = name;
279 isBound = true;
280 return;
281 }
282 catch
283 {
284 //try-fault
285 base.Dispose(true);
286 throw;
287 }
288 }

References Microsoft.Xna.Framework.Graphics.BlendState.cachedAlphaDestinationBlend, Microsoft.Xna.Framework.Graphics.BlendState.cachedAlphaSourceBlend, Microsoft.Xna.Framework.Graphics.BlendState.cachedColorDestinationBlend, Microsoft.Xna.Framework.Graphics.BlendState.cachedColorSourceBlend, Microsoft.Xna.Framework.Graphics.BlendState.isBound, Microsoft.Xna.Framework.Graphics.BlendState.SetDefaults(), and Microsoft.Xna.Framework.Graphics.BlendState.ThrowIfBound().