Esempio 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);
        }
Esempio n. 2
0
 public void AddGraph(DebugGraph newGraph)
 {
     this.debugGraphManager.AddGraph(ref newGraph);
 }
Esempio n. 3
0
 public void AddGraph(ref DebugGraph newGraph)
 {
     graphs.Add(newGraph);
 }