public UI(ViewDB db_, Camera c_, SelectionCallback onSelect_) { db = db_; c = c_; newSel = new Point(-1, -1); onSelect = onSelect_; }
public GUI(ViewDB db_, Viewport v, SelectionCallback onSelect, EventDispatcher disp) { db = db_; c = new Camera(0, 0, v); r = new Renderer(db, c); ui = new UI(db, c, onSelect); disp.AddListener(r, EventType.View); disp.AddListener(ui, EventType.UI); }
public Renderer(ViewDB db_, Camera c_) { db = db_; c = c_; xPan = yPan = 0; }