/// <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(); }
/// <summary> /// Disposes of the Display. /// </summary> public static void Dispose() { OnDispose(); if (impl != null) { impl.Dispose(); impl = null; } }
public CountDisplay(DisplayImpl impl) : base(impl) { }
public Display(DisplayImpl impl) { this.impl = impl; }
public Display(DisplayImpl impl) { _impl = impl; }