Ejemplo n.º 1
0
        public SEngine(Game game, GraphicsDeviceManager graphicsManager)
            : base(game)
        {
            this.game            = game;
            this.graphicsManager = graphicsManager;

            safeRegion        = new SafeRegion(graphicsManager);
            gcGraphWindow     = new Rectangle();
            debugGraphManager = new GraphManager(game, this);
            debugGraphManager.SafeDimensions = safeRegion.SafeDimensions;

            debugGCGraph          = new GCGraph(ref debugGraphManager, 0.5f, 50);
            debugGCGraph.Position = new Vector2(0, 0);
            debugGraphManager.AddGraph(ref debugGCGraph);
            debugFPSGraph          = new FPSGraph(ref debugGraphManager, 0.5f, 50);
            debugFPSGraph.Position = new Vector2(0, debugGCGraph.Height + 5);
            debugGraphManager.AddGraph(ref debugFPSGraph);

            game.Components.Add(debugGraphManager);
        }