Arcade Shooter
Public Member Functions | List of all members
Sample::Background Class Reference

Scrolling background for levels. More...

#include <Background.h>

Inheritance diagram for Sample::Background:
ShooterLibrary::Background

Public Member Functions

virtual void LoadContent (ResourceManager *pResourceManager)
 Called when resources need to be loaded. More...
 
virtual void Update (const GameTime *pGameTime)
 Called when the game has determined that game logic needs to be processed. More...
 
virtual void Draw (SpriteBatch *pSpriteBatch)
 Called when the game determines it is time to draw a frame. More...
 
- Public Member Functions inherited from ShooterLibrary::Background
virtual void UnloadContent ()
 Called when resources need to be unloaded. Override this method to unload any unneeded resources.
 

Additional Inherited Members

- Protected Member Functions inherited from ShooterLibrary::Background
virtual int GetScrollSpeed () const
 Gets the scrolling speed of the background, measured in pixels per second.
 

Detailed Description

Scrolling background for levels.

Member Function Documentation

◆ Draw()

virtual void Sample::Background::Draw ( SpriteBatch *  pSpriteBatch)
virtual

Called when the game determines it is time to draw a frame.

Parameters
pSpriteBatchThe game's sprite batch, used for rendering.

Implements ShooterLibrary::Background.

◆ LoadContent()

virtual void Sample::Background::LoadContent ( ResourceManager *  pResourceManager)
virtual

Called when resources need to be loaded.

Parameters
pResourceManagerThe game's resource manager, used for loading and managing game resources.

Implements ShooterLibrary::Background.

◆ Update()

virtual void Sample::Background::Update ( const GameTime *  pGameTime)
virtual

Called when the game has determined that game logic needs to be processed.

Parameters
pGameTimeTiming values including time since last update.

Implements ShooterLibrary::Background.


The documentation for this class was generated from the following file: