Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Kaibo_Crawler" /> class.
        /// </summary>
        public Kaibo_Crawler()
        {
            // Creates a graphics manager. This is mandatory.
            m_graphicsDeviceManager = new GraphicsDeviceManager(this);
            m_graphicsDeviceManager.PreferredDepthStencilFormat = DepthFormat.Depth32;
            m_graphicsDeviceManager.SetPreferredGraphicsProfile(SharpDX.Direct3D.FeatureLevel.Level_10_1);

            // Setup the relative directory to the executable directory
            // for loading contents with the ContentManager
            Content.RootDirectory = "content";
            //m_graphicsDeviceManager.IsFullScreen = true;

            m_graphicsDeviceManager.PreferredBackBufferWidth  = width;
            m_graphicsDeviceManager.PreferredBackBufferHeight = height;
        }