Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 /// <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();
 }