public void AddLayer(Layer renderlayer) { layers.Add(renderlayer); }
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; }