public BlendMode(GXBlendMode type, GXBlendModeControl srcFact, GXBlendModeControl destFact, GXLogicOp op) { Type = type; SourceFact = srcFact; DestinationFact = destFact; Operation = op; }
/// <summary> /// /// </summary> /// <param name="mode"></param> /// <returns></returns> public static BlendEquationMode toBlendMode(GXBlendMode mode) { switch (mode) { case GXBlendMode.GX_BLEND: return(BlendEquationMode.FuncAdd); case GXBlendMode.GX_LOGIC: return(BlendEquationMode.FuncSubtract); case GXBlendMode.GX_SUBTRACT: return(BlendEquationMode.FuncSubtract); default: return(BlendEquationMode.FuncAdd); } }