예제 #1
0
        protected override void LoadContent()
        {
            var perfSpriteBatch = new SpriteBatch(this.GraphicsDevice);
            var font            = this.Content.Load <SpriteFont>(nameof(Fonts.Consolas));

            spriteBatch = new SpriteBatch(GraphicsDevice);

            this.texture2Ds[Sprites.Dot]    = Content.Load <Texture2D>(nameof(Sprites.Dot));
            this.texture2Ds[Sprites.Bubble] = Content.Load <Texture2D>(nameof(Sprites.Bubble));

            PerfMon.InitializeFinished(perfSpriteBatch, font);
        }