SetBlendMode() public méthode

Sets the batcher to use the specified blend mode.
public SetBlendMode ( BlendMode mode ) : void
mode BlendMode
Résultat void
 static HWSurfaceInstance()
 {
     _atlas = new RenderTexture(_aw, _ah);
     _atlastex = _atlas.Texture;
     _batch = new SpriteBatch(_atlas);
     _batch.SetBlendMode(BlendMode.None);
 }
 public HWSurfaceInstance(ScriptEngine parent, string filename)
     : base(parent.Object.InstancePrototype)
 {
     using (Texture tex = new Texture(filename))
     {
         _width = tex.Size.X;
         _height = tex.Size.Y;
         _tex = new RenderTexture(_width, _height);
         _myBatch = new SpriteBatch(_tex);
         _myBatch.SetBlendMode(BlendMode.None);
         _myBatch.Add(tex, 0, 0);
         _myBatch.Flush();
         Update();
     }
     Init();
 }