コード例 #1
0
ファイル: Engine.cs プロジェクト: funjoker/WoWDatabaseEditor
        public Engine(IDevice device, IConfiguration configuration, IWindowHost host)
        {
            WindowHost = host;
            //windowHost.Bind(this);

            Configuration = configuration;
            Device        = new TheDevice(host, device, false);

            Device.Initialize();

            statsManager  = new StatsManager();
            entityManager = new EntityManager();

            lightManager = new LightManager(this);
            inputManager = new InputManager(this);
            cameraManger = new CameraManager(this);

            materialManager = new MaterialManager(this);
            shaderManager   = new ShaderManager(this);
            meshManager     = new MeshManager(this);
            renderManager   = new RenderManager(this);

            textureManager = new TextureManager(this);
            fontManager    = new FontManager(this);
            uiManager      = new UIManager(this);
        }
コード例 #2
0
        public Engine(IConfiguration configuration, IHwndHost windowHost, Action onStart, Action <float> updateLoop)
        {
            windowHost.Bind(this);

            Configuration   = configuration;
            this.windowHost = windowHost;
            this.onStart    = onStart;
            this.updateLoop = updateLoop;
            Device          = new TheDevice(windowHost.Handle, false);

            Device.Initialize();

            lightManager = new LightManager(this);
            inputManager = new InputManager(this);
            cameraManger = new CameraManager(this);

            materialManager = new MaterialManager(this);
            shaderManager   = new ShaderManager(this);
            meshManager     = new MeshManager(this);
            renderManager   = new RenderManager(this);

            textureManager = new TextureManager(this);
        }