public Spline(Game game, GraphicsDeviceManager graphics, Camera camera) : base(game) { // TODO: Construct any child components here this.graphics = graphics; this.camera = camera; quality = 20; }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { camera = new Camera(graphics.GraphicsDevice.Viewport); camera.Position = new Vector3(0, 0, 100); camera.LookAt = new Vector3(0, 0, 0); camera.Update(); spline = new Spline(this, graphics,camera); Components.Add(spline); //TEST rotation = 0; base.Initialize(); }