C# | ||
---|---|---|
|
The methods of the BrowserFactory class are the only way to create new instances of the Browser object, i.e. it is essential for initiating the connection between your software components and the X3D browser.
The BrowserFactory itself does not implement much functionality, instead it depends on an implementation of the BrowserFactoryImpl interface that has to be provided by the deleveloper of the X3D browser you want to use. Usually you do not have to care about these details, because the BrowserFactory automatically chooses an implementation. See the SetBrowserFactoryImpl method for more information about that.
C# |
---|
System.Net.IPAddress address = System.Net.Dns.GetHostByName("localhost").AddressList[0]; Vrml.EAI.Browser browser = Vrml.EAI.BrowserFactory.GetBrowser(address, 4848); ... browser.Dispose(); |