Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public static bool IsMatchSlot(this SItem item, E_CHAR_SLOTS slot)
 {
     return(WowDatabase.WowDatabase_itemIsCorrectType(item.type, (int)slot));
 }