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(); }
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(); }