Esempio n. 1
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);
        }
Esempio n. 2
0
 public Keyboard(IHwndHost windowHost)
 {
     this.windowHost = windowHost;
 }
Esempio n. 3
0
 internal Mouse(IHwndHost window)
 {
     this.window = window;
 }