using Blacklight.Core.Cameras; using Blacklight.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Azimuth; using Blacklight.Core.Drawables; using Glass.Blacklight; using System.Diagnostics; using System.Reflection; using System.Windows.Forms; using Microsoft.Win32; namespace Glass.Testbed { public class World { WindowHandle window = null; Scene scene = new Scene(); Cel cel = new Cel(); Button button = new Button(); ViewportControl control = null; public BlacklightGlassWorld uiWorld = new BlacklightGlassWorld(); int clickCount = 0; public World(ViewportControl control) { uiWorld.BindToViewport(control); uiWorld.Scale = 2; this.control = control; this.window = control.DrawableSurface; scene.Cels.Add(cel); var arrow = new Arrow(5, 2); arrow.InsideColor = new Color(0.5, 0.5, 0); arrow.ShellColor = new Color(0.75, 0.75, 0); arrow.ShellModelSpaceThickness = 0; arrow.ShellPixelThickness = 3; cel.AddEntity(arrow); var panel = uiWorld.Controls.NewChild(); panel.Bounds = Rect.FromPositionAndSize(Vector.Zero, new Vector(100, 100)); panel.Material = UiPacksheetMaterials.RedFlatPanel; var button = panel.ChildControls.NewChild