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