protected override void LoadContent() { //Load game content model = new Landscape(this, this.scale); water = new Water(this); lightsource = new Sun(this); this.camera = new Camera(this); base.LoadContent(); }
protected override void LoadContent() { float x = worldSize/2f; float y = 0f; float z = (float)Math.PI; float rotationSpeed = 0.005f; float sideLength = 50f; model = new Landscape(this, rotationSpeed, worldSize); sun = new Sun(this, x, y, z, sideLength, rotationSpeed, worldSize); // Create an input layout from the vertices base.LoadContent(); }