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; }
// 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); }