public void BlitSurface(HWSurfaceInstance surf, int x, int y) { if (surf == null) return; if (surf._changed) { surf.Update(); } _batch.Add(_atlastex, surf._source, _source, Color.White); _changed = true; }
public void BlitMaskSurface(HWSurfaceInstance surf, int x, int y, ColorInstance mask) { if (surf == null) return; if (surf._changed) { surf.Update(); } FloatRect dest = new FloatRect(x, y, _source.Width, _source.Height); _batch.Add(_atlastex, surf._source, dest, mask.Color); _changed = true; }
public void BlitSurface(HWSurfaceInstance surf, int x, int y) { if (surf._changed) { surf.Update(); } _myBatch.Add(surf._cache, (float)x, (float)y); _changed = true; }