Esempio n. 1
0
 public void AddLayer(Layer renderlayer)
 {
     layers.Add(renderlayer);
 }
Esempio n. 2
0
 public void SceneHasBeenSet()
 {
     Layer selectionmarker;
     selectionmarker = new Layer(g =>
     {
         if (mouseoverpointx > -1 && mouseoverpointy > -1)
         {
             int xx, yy;
             m_map.MapToScreenCoords(mouseoverpointx, mouseoverpointy, out xx, out yy);
             g.DrawRectangle(new Pen(Color.Cyan), xx, yy, 32, 32);
         }
     });
     pictureBox1.Scene.AddLayer(selectionmarker);
     selectionmarker.Visible = true;
 }