Пример #1
0
        public DrawingContext(IElement element, IPrimitivesService primitivesService)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            if (primitivesService == null)
            {
                throw new ArgumentNullException("primitivesService");
            }

            this.element = element;
            this.primitivesService = primitivesService;
        }
Пример #2
0
        public DrawingContext(IElement element, IPrimitivesService primitivesService)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            if (primitivesService == null)
            {
                throw new ArgumentNullException("primitivesService");
            }

            this.element           = element;
            this.primitivesService = primitivesService;
        }
Пример #3
0
 public Renderer(ISpriteBatch spriteBatch, IPrimitivesService primitivesService)
 {
     this.spriteBatch = spriteBatch;
     this.primitivesService = primitivesService;
 }
Пример #4
0
 public Renderer(ISpriteBatch spriteBatch, IPrimitivesService primitivesService)
 {
     this.spriteBatch       = spriteBatch;
     this.primitivesService = primitivesService;
 }