예제 #1
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // Load our fonts into the static Font class
            Fonts.LoadContent(Content);

            device = graphics.GraphicsDevice;
            cCross = new CoordCross(device);

            weapon = Content.Load<Model>("weapon");
            crosshair = Content.Load<Texture2D>("crosshair1");
            // Initialize the weapon matrices.
            weaponTransforms = new Matrix[weapon.Bones.Count];
            weaponWorldMatrix = Matrix.Identity;

            terrain = new Terrain(device, Content);
            dino = Content.Load<Model>("dino");
            spherePrimitive = new SpherePrimitive(GraphicsDevice, 0.5f, 12);
        }