Пример #1
0
 /// <inheritdoc/>
 protected override void Initialize()
 {
     if (this._scene != null)
     {
         this.PrimitiveDrawer = this._scene.ResolveDependency(
             () => new PrimitiveDrawer(this._scene.Game.SpriteBatch));
     }
 }
Пример #2
0
 /// <summary>
 /// Creates the quad sprite.
 /// </summary>
 /// <remarks>This call will make all the pixels of the sprite white.</remarks>
 /// <param name="graphicsDevice">The graphics device.</param>
 /// <param name="size">The size.</param>
 /// <param name="color">The color.</param>
 /// <returns>The quad sprite.</returns>
 public static Sprite CreateQuadSprite(GraphicsDevice graphicsDevice, Point size)
 {
     return(PrimitiveDrawer.CreateQuadSprite(graphicsDevice, size, Color.White));
 }