LilyPath/DrawBatch.cs
/// <summary>
/// Begins a draw batch operation using the specified sort, given state objects, and transformation matrix.
/// </summary>
/// <param name="sortMode">The drawing order.</param>
/// <param name="blendState">Blending options.</param>
/// <param name="samplerState">Texture sampling options.</param>
/// <param name="depthStencilState">Depth and stencil options.</param>
/// <param name="rasterizerState">Rasterization options.</param>
/// <param name="effect">Effect state options.</param>
/// <param name="transform">Transformation matrix for scale, rotate, translate options.</param>
Begins a draw batch operation using the specified sort, given state objects, and transformation matrix.
Begins a draw batch operation using the specified sort given state objects and transformation matrix .
public void Begin (DrawSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transform)
        {
            if (_inDraw)
                throw new InvalidOperationException("DrawBatch already inside Begin/End pair");
            _sortMode = sortMode;
            _blendState = blendState;
            _samplerState = samplerState;
            _depthStencilState = depthStencilState;
            _rasterizerState = rasterizerState;
            _effect = effect;
            _transform = transform;
            _infoBufferIndex = 0;
            _indexBufferIndex = 0;
            _vertexBufferIndex = 0;
            if (sortMode == DrawSortMode.Immediate)
                SetRenderState();
            _inDraw = true;
        }
public void Begin ( DrawSortMode sortMode , BlendState blendState , SamplerState samplerState , DepthStencilState depthStencilState , RasterizerState rasterizerState , Effect effect , Matrix transform ) { if ( _inDraw ) throw new InvalidOperationException ( " " ) ; _sortMode = sortMode ; _blendState = blendState ; _samplerState = samplerState ; _depthStencilState = depthStencilState ; _rasterizerState = rasterizerState ; _effect = effect ; _transform = transform ; _infoBufferIndex = 0 ; _indexBufferIndex = 0 ; _vertexBufferIndex = 0 ; if ( sortMode == DrawSortMode . Immediate ) SetRenderState ( ) ; _inDraw = true ; }
Begins a draw batch operation using the specified sort, given state objects, and transformation matrix.
Begins a draw batch operation using the specified sort given state objects and transformation matrix .
sortMode
DrawSortMode
The drawing order.
The drawing order .
blendState
BlendState
None
samplerState
SamplerState
Texture sampling options.
Texture sampling options .
depthStencilState
DepthStencilState
Depth and stencil options.
Depth and stencil options .
rasterizerState
RasterizerState
None
effect
Effect
Effect state options.
Effect state options .
transform
Matrix
Transformation matrix for scale, rotate, translate options.
Transformation matrix for scale rotate translate options .