Exemple #1
0
        public UI(ViewDB db_, Camera c_, SelectionCallback onSelect_)
        {
            db = db_;
            c = c_;

            newSel = new Point(-1, -1);

            onSelect = onSelect_;
        }
Exemple #2
0
        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;
 }