예제 #1
0
        public RenderService()
        {
            _renderDataModel = new RenderDataModel();

            _scene  = SceneFactory.CreateBasicScene();
            _camera = new Camera(
                new PosVector(7.5, 7.5, 2.3),
                new PosVector(0.0, 0.0, 0.0),
                new PosVector(0.0, 0.0, 1.0),
                50.0);

            _renderer   = new Renderer(_renderData, false);
            _pixelArray = new PixelArray(_renderData.Width, _renderData.Height);
            Task.Run(() =>
            {
                while (true)
                {
                    _renderer.Render(_pixelArray, _camera, _scene, true);
                }
            });
        }
예제 #2
0
        private RenderDataModel GetRenderStatus(IRenderService renderService)
        {
            RenderDataModel renderDataModel = renderService.GetRenderDataModel();

            return(renderDataModel);
        }