/// <summary> /// Initializes a new instance of the <see cref="GraphicsMain"/> class. /// </summary> /// <param name="host"></param> public ControlHost(HostForm host) { this.owner = host; this.surfaces = new Collection <Surface>(); this.controls = new DXControlCollection(); this.settings = new D3DSettings(); this.parameters = new PresentParameters(); this.enumerationSettings = new D3DEnumeration(); InitializeInputDevices(); InitDirect3D(); }
/// <summary> /// Starts the DirectX Client. /// </summary> public override void Start() { this.hostForm = new HostForm(); this.controlHost = new ControlHost(this.hostForm); this.jukeBox = new Jukebox(); InitializeClient(); this.MiniMap = new MiniMap(this.controlHost); this.controlHost.Refresh(); InitializeConsole(new Console(this.controlHost)); base.Start(); DoMainLoop(); }