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

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