Ejemplo n.º 1
0
 public void ApplyRenderStates(IRenderer renderer, int passIndex)
 {
     if (_activeRecords != null)
     {
         if (passIndex >= 0 && passIndex < _activeRecords.Length)
         {
             RenderStateRecord record = _activeRecords[passIndex];
             renderer.ApplyRenderState(RenderStateType.BlendState, record.BlendState);
             renderer.ApplyRenderState(RenderStateType.DepthStencilState, record.DepthStencilState);
             renderer.ApplyRenderState(RenderStateType.RasterizerState, record.RasterizerState);
         }
     } // fail silently
 }