示例#1
0
 /// <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;
 }
示例#2
0
 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);
 }
示例#3
0
 public RenderStates(BlendMode mode) : this(new SRenderStates((SBlendMode)mode))
 {
 }