예제 #1
0
        public void Blit(Surface Source, Rectangle rec)
        {
            if (!_can_Update)
            {
                throw new StormLib.Exceptions.LogicException("Surface cannot be updated at this time!");
            }

            _graphics.SpriteBatch.Draw(Source._target, rec.ToRender(), XColor.White);
        }
예제 #2
0
        public void Render(Rectangle rec)
        {
            if (_can_Update)
            {
                throw new StormLib.Exceptions.LogicException("Surface changes must be disabled!");
            }


            _graphics.SpriteBatch.Draw(_target, rec.ToRender(), XColor.White);
        }