Esempio n. 1
0
        protected override void LoadContent()
        {
            device                 = graphics.GraphicsDevice;
            this.sprites           = new SpriteBatch(device);
            terrainVisEffect       = Content.Load <Effect>("GenerationVisualiser");
            terrainTileEffect      = Content.Load <Effect>("TerrainTile1024");
            terrainTileEffectPass2 = Content.Load <Effect>("TerrainTile1024Pass2");
            statusFont             = Content.Load <SpriteFont>("statusFont");

            quad = new QuadRender(device);

            // terrain tile
            this.tile.LoadContent(device);

            base.LoadContent();
        }
        protected override void LoadContent()
        {
            device = graphics.GraphicsDevice;
            this.sprites = new SpriteBatch(device);
            terrainVisEffect = Content.Load<Effect>("GenerationVisualiser");
            terrainTileEffect = Content.Load<Effect>("TerrainTile1024");
            terrainTileEffectPass2 = Content.Load<Effect>("TerrainTile1024Pass2");
            statusFont = Content.Load<SpriteFont>("statusFont");

            quad = new QuadRender(device);

            // terrain tile
            this.tile.LoadContent(device);

            base.LoadContent();
        }