示例#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);
 }