Example #1
0
        /// <summary>
        /// Initializes the display by instantiating the driver with the given
        /// DisplayTypeID.  The display driver must be registered with the Registrar
        /// class.
        ///
        /// It is recommended that you instantiate a SetupDisplay object from within
        /// a using block, to ensure that the Display is disposed of properly.
        /// </summary>
        /// <param name="displayType"></param>
        public static void Initialize(DisplayTypeID displayType)
        {
            Core.Initialize();

            impl = Registrar.CreateDisplayDriver(displayType);
            impl.Initialize();

            mSurfacePacker = new SurfacePacker();
        }