public bool Init(IntPtr hwnd, DriverType driverType, uint adapter, bool fullscreen, bool vsync, uint antialias, bool multithread) { bool sucesss = engine_initDriver(hwnd, driverType, adapter, fullscreen, vsync, antialias, multithread); if (!sucesss) { return(false); } engine_initSceneManager(); _driver = new Driver(engine_getDriver()); _sceneManger = new SceneManager(engine_getSceneManager()); _wowDatabase = new WowDatabase(engine_getWowDatabase()); _manualMeshServices = new ManualMeshServices(engine_getManualMeshServices()); _audioPlayer = new AudioPlayer(engine_getAudioPlayer()); _resourceLoader = new ResourceLoader(engine_getResourceLoader()); _sceneEnvironment = new SceneEnvironment(engine_getSceneEnvironment()); return(true); }
public bool Init(E_DRIVER_TYPE driverType, uint adapter, bool fullscreen, bool vsync, uint antialias, bool multithread) { bool sucesss = engine_initDriver(driverType, adapter, fullscreen, vsync, antialias, multithread); if (!sucesss) { return(false); } engine_initSceneManager(); _driver = new Driver(engine_getDriver()); _sceneManger = new SceneManager(engine_getSceneManager()); _wowDatabase = new WowDatabase(engine_getWowDatabase()); _wowEnvironment = new WowEnvironment(engine_getWowEnvironment()); _manualMeshServices = new ManualMeshServices(engine_getManualMeshServices()); _resourceLoader = new ResourceLoader(engine_getResourceLoader()); _sceneEnvironment = new SceneEnvironment(engine_getSceneEnvironment()); _drawServices = new DrawServices(engine_getDrawServices()); _fontServices = new FontServices(engine_getFontServices()); return(true); }