/// <summary> /// Constructs a new RenderImage that can be rendered to /// </summary> /// <param name="key"> Idenfication of RenderImage </param> /// <param name="width"> Width of RenderImage </param> /// <param name="height"> Height of RenderImage </param> /// <param name="imageBufferFormats"> Image Buffer Format to use </param> public RenderImage(string Key, uint width, uint height, ImageBufferFormats IBF) : base(width, height) { CheckIfKeyIsNull(Key); _key = Key; BlendSettings = BlendMode.Alpha; }
public SpriteBatch(uint maxCapacity = 100000) { Max = maxCapacity * 4; BlendingSettings = new BlendMode(BlendMode.Factor.SrcAlpha, BlendMode.Factor.OneMinusDstAlpha, BlendMode.Equation.Add, BlendMode.Factor.SrcAlpha, BlendMode.Factor.OneMinusSrcAlpha, BlendMode.Equation.Add); drawableDummy = new SpriteBatchDrawableDummy(this); }
public RenderStates(BlendMode mode) : this(new SRenderStates((SBlendMode)mode)) { }