예제 #1
0
        public RayTracerWindow(int width, int height)
            : base(width, height)
        {
            //CalculateIntersectCostsAndSaveToFile();

            FlowLayoutWidget leftToRight = new FlowLayoutWidget();

            leftToRight.HAnchor |= HAnchor.ParentLeftRight;
            leftToRight.VAnchor |= VAnchor.ParentBottomTop;

            previewWindowRayTrace = new RayTraceWidget();
            AnchorAll();
            previewWindowRayTrace.AnchorAll();

            leftToRight.AddChild(previewWindowRayTrace);

            GuiWidget zBuffer = new GuiWidget(HAnchor.ParentLeftRight, VAnchor.ParentBottomTop);

            zBuffer.BackgroundColor = RGBA_Bytes.Blue;
            leftToRight.AddChild(zBuffer);

            AddChild(leftToRight);

            BackgroundColor = RGBA_Bytes.Black;

            ShowAsSystemWindow();
        }
예제 #2
0
        public RayTracerWindow(int width, int height)
            : base(width, height)
        {
            //CalculateIntersectCostsAndSaveToFile();

            FlowLayoutWidget leftToRight = new FlowLayoutWidget();

            leftToRight.HAnchor |= HAnchor.Stretch;
            leftToRight.VAnchor |= VAnchor.Stretch;

            previewWindowRayTrace = new RayTraceWidget();
            AnchorAll();
            previewWindowRayTrace.AnchorAll();

            leftToRight.AddChild(previewWindowRayTrace);

            GuiWidget zBuffer = new GuiWidget()
            {
                HAnchor = HAnchor.Stretch,
                VAnchor = VAnchor.Stretch
            };

            zBuffer.BackgroundColor = Color.Blue;
            leftToRight.AddChild(zBuffer);

            AddChild(leftToRight);

            BackgroundColor = Color.Black;

            ShowAsSystemWindow();
        }