public ShipDraw(Model mesh, Texture2D tex, Ship parent, Matrix World) { myParent = parent; myTex = tex; myMesh = mesh; myWorld = World; }
/// <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() { // TODO: Add your initialization logic here mainDrawCommands = new List<DrawCommand>(); mainGameObjects = new List<GameObject>(); playerShip = new Ship(); mainGameObjects.Add(playerShip); myPos = new Vector3(0, -2, 2); baseViewPos = myPos; myView = Quaternion.Identity; inHandler = new InputHandler(); inHandler.CurrentKeyMapping = InputHandler.getDefaultKeymapping(); lookPos = Vector3.Zero; camUp = Vector3.UnitZ; LevelLoader.InitalizeLevelLoader(this); base.Initialize(); }