public void SetRasterizerState(XnaRasterizerState state) { cullMode = (CullMode)state.CullMode; depthBias = state.DepthBias; fillMode = (FillMode)state.FillMode; multiSampleAntiAlias = state.MultiSampleAntiAlias; slopeScaleDepthBias = state.SlopeScaleDepthBias; }
internal void UpdateRasterizerState(XnaRasterizerState state) { state.CullMode = (XnaCullMode)cullMode; state.DepthBias = depthBias; state.FillMode = (XnaFillMode)fillMode; state.MultiSampleAntiAlias = multiSampleAntiAlias; state.SlopeScaleDepthBias = slopeScaleDepthBias; rasterizerStateDirty = false; }