public DrawableComponent(DX3DHost host, Visualization3DDataSource dataSource)
        {
            this.device     = host.Device;
            this.camera     = host.Camera;
            this.dataSource = dataSource;

            this.isEnabled = false;

            host.DeviceReset     += OnDeviceReset;
            host.DeviceLost      += OnDeviceLost;
            host.DeviceDestroyed += OnDeviceDestroyed;
        }
Exemplo n.º 2
0
        public DrawableComponent(DX3DHost host, Visualization3DDataSource dataSource)
        {
            this.device = host.Device;
            this.camera = host.Camera;
            this.dataSource = dataSource;

            this.isEnabled = false;

            host.DeviceReset += OnDeviceReset;
            host.DeviceLost += OnDeviceLost;
            host.DeviceDestroyed += OnDeviceDestroyed;
        }