Пример #1
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     // Create and add a frame rate counter
     frameRateCounter = new FrameRateCounter(this);
     Components.Add(frameRateCounter);
 }
Пример #2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            // Construct the FrameRateCounter
            frameRateCounter = new FrameRateCounter(this);
            Components.Add(frameRateCounter);
        }