示例#1
0
 public void Draw()
 {
     if (editor != null)
     {
         editor.Draw();
     }
 }
示例#2
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);

            spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp);
            // spriteBatch.Draw(spriteSheet, new Vector2 ( 10, 10 ), new Rectangle(0, 0, 32, 32), Color.White);
            // spriteBatch.Draw(spriteSheet, new Vector2(10, 100), new Rectangle(64, 0, 32, 32), Color.White);
            _editor.Draw(spriteBatch);
            EditorText.Draw(spriteBatch);
            // _testMap.Draw(spriteBatch);
            spriteBatch.End();
            // TODO: Add your drawing code here

            base.Draw(gameTime);
        }