internal void ApplyState(GraphicsDevice device)
{
GL.Enable(EnableCap.Blend);
GL.ColorMask((this.ColorWriteChannels & ColorWriteChannels.Red) == ColorWriteChannels.Red, (this.ColorWriteChannels & ColorWriteChannels.Green) == ColorWriteChannels.Green, (this.ColorWriteChannels & ColorWriteChannels.Blue) == ColorWriteChannels.Blue, (this.ColorWriteChannels & ColorWriteChannels.Alpha) == ColorWriteChannels.Alpha);
GL.BlendEquation(GraphicsExtensions.GetBlendEquationMode(this.ColorBlendFunction));
GL.BlendFunc(GraphicsExtensions.GetBlendFactorSrc(this.ColorSourceBlend), GraphicsExtensions.GetBlendFactorDest(this.ColorDestinationBlend));
}