Inheritance: Jurassic.Library.ObjectInstance
コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public void BlitSurface(HWSurfaceInstance surf, int x, int y)
 {
     if (surf._changed) { surf.Update(); }
     _myBatch.Add(surf._cache, (float)x, (float)y);
     _changed = true;
 }