TuneBlaster_.Engine.LoadGraphicsContent C# (CSharp) Method

LoadGraphicsContent() protected method

Load your graphics content. If loadAllContent is true, you should load content from both ResourceManagementMode pools. Otherwise, just load ResourceManagementMode.Manual content.
protected LoadGraphicsContent ( bool loadAllContent ) : void
loadAllContent bool Which type of content to load.
return void
        protected override void LoadGraphicsContent(bool loadAllContent)
        {
            if (loadAllContent)
            {
                spriteBatch = new SpriteBatch(graphics.GraphicsDevice);
                texture = content.Load<Texture2D>(@"Resources\Textures\Arrow");
                core.LoadGraphicsContent(spriteBatch, texture);
                texture = content.Load<Texture2D>(@"Resources\Textures\Ball");
                ball.LoadGraphicsContent(spriteBatch, texture);
                // TODO: Load any ResourceManagementMode.Automatic content
            }

            // TODO: Load any ResourceManagementMode.Manual content
        }