Ejemplo n.º 1
0
        protected override void OnUpdate(GameTime gameTime)
        {
            var pointerState = InputPointer.GetState();

            var metrics = graphicsMetricsProvider();

            mainLabel.Text = $"Draws: {metrics.DrawCount}\nTextures: {metrics.TextureCount}\nPrimitives: {metrics.PrimitiveCount}";
        }
Ejemplo n.º 2
0
        protected override void OnUpdate(GameTime gameTime)
        {
            var pointerState = InputPointer.GetState();

            var metrics = graphicsMetricsProvider();

            mainLabel.Text = "Input position: " + GuiManager.ScreenToWorld(pointerState.Position.ToVector2()) + "\nStats: " +
                             $"Draws: {metrics.DrawCount}\nTextures: {metrics.TextureCount}\nPrimitives: {metrics.PrimitiveCount}";
        }