Exemple #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();
        }
Exemple #2
0
        /// <summary>
        /// Disposes of the Display.
        /// </summary>
        public static void Dispose()
        {
            OnDispose();

            if (impl != null)
            {
                impl.Dispose();
                impl = null;
            }
        }
Exemple #3
0
 public CountDisplay(DisplayImpl impl)
     : base(impl)
 {
 }
Exemple #4
0
 public Display(DisplayImpl impl)
 {
     this.impl = impl;
 }
Exemple #5
0
 public Display(DisplayImpl impl)
 {
     _impl = impl;
 }