using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Media; using Microsoft.Xna.Framework.Net; using Microsoft.Xna.Framework.Storage; namespace MorphShader { /// /// This is the main type for your game /// public class Game1 : Microsoft.Xna.Framework.Game { #region Fields GraphicsDeviceManager graphics; private MorphingModel morphingModel; #endregion public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; } protected override void Initialize() { base.Initialize(); } protected override void LoadContent() { morphingModel = new MorphingModel(6, "laser/laser", Content, GraphicsDevice); } protected override void UnloadContent() { } protected override void Update(GameTime gameTime) { morphingModel.Update(gameTime); base.Update(gameTime); } protected override void Draw(GameTime gameTime) { morphingModel.Draw(); base.Draw(gameTime); } } }