Example #1
0
 public Terrainnew(Window window)
     : base(ref window.logger)
 {
     log = window.logger;
     camera = (vbdetlevvb_engine.Rendering.Camera.BasicCamera)window.camera;
     this.window = window;
     window.Mouse.ButtonDown += new EventHandler<MouseButtonEventArgs>(Mouse_ButtonDown);
     window.Mouse.ButtonUp += new EventHandler<MouseButtonEventArgs>(Mouse_ButtonUp);
 }
Example #2
0
 public Chunk(ref Window window, Vector2 position)
 {
     log = window.logger;
     camera = (vbdetlevvb_engine.Rendering.Camera.BasicCamera)window.camera;
     this.window = window;
     ChunkPosition = position;
     window.Mouse.ButtonDown += new EventHandler<MouseButtonEventArgs>(Mouse_ButtonDown);
     window.Mouse.ButtonUp += new EventHandler<MouseButtonEventArgs>(Mouse_ButtonUp);
     drawer = new List<ChunkDrawer>();
     drawer.Add(new ChunkDrawer(ref window.logger));
     shape = new List<VertexPosition[]>();
 }