Example #1
0
 public DrawMode(DrawMode copy)
 {
     sortMode          = copy.sortMode;
     blendState        = copy.blendState;
     samplerState      = copy.samplerState;
     depthStencilState = copy.depthStencilState;
     rasterizerState   = copy.rasterizerState;
     effect            = copy.effect;
     transform         = copy.transform;
 }
Example #2
0
 // Begins the drawing to the sprite batch.
 public void Begin(DrawMode mode)
 {
     spriteBatch.Begin(mode.SortMode, mode.BlendState,
     mode.SamplerState, mode.DepthStencilState,
     mode.RasterizerState, mode.Effect, mode.Transform);
 }
Example #3
0
 // Begins the drawing to the sprite batch.
 public void Begin(DrawMode mode)
 {
     spriteBatch.Begin(mode.SortMode, mode.BlendState,
                       mode.SamplerState, mode.DepthStencilState,
                       mode.RasterizerState, mode.Effect, mode.Transform);
 }