예제 #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;
 }
예제 #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);
 }
예제 #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);
 }