Abstract base class for a scrolling background.
More...
#include <Background.h>
|
| virtual void | LoadContent (ResourceManager *pResourceManager)=0 |
| | Called when resources need to be loaded. More...
|
| |
|
virtual void | UnloadContent () |
| | Called when resources need to be unloaded. Override this method to unload any unneeded resources.
|
| |
| virtual void | Update (const GameTime *pGameTime)=0 |
| | Called when the game has determined that game logic needs to be processed. More...
|
| |
| virtual void | Draw (SpriteBatch *pSpriteBatch)=0 |
| | Called when the game determines it is time to draw a frame. More...
|
| |
|
|
virtual int | GetScrollSpeed () const |
| | Gets the scrolling speed of the background, measured in pixels per second.
|
| |
Abstract base class for a scrolling background.
◆ Draw()
| virtual void ShooterLibrary::Background::Draw |
( |
SpriteBatch * |
pSpriteBatch | ) |
|
|
pure virtual |
Called when the game determines it is time to draw a frame.
- Parameters
-
| pSpriteBatch | The game's sprite batch, used for rendering. |
Implemented in Sample::Background.
◆ LoadContent()
| virtual void ShooterLibrary::Background::LoadContent |
( |
ResourceManager * |
pResourceManager | ) |
|
|
pure virtual |
Called when resources need to be loaded.
- Parameters
-
| pResourceManager | The game's resource manager, used for loading and managing game resources. |
Implemented in Sample::Background.
◆ Update()
| virtual void ShooterLibrary::Background::Update |
( |
const GameTime * |
pGameTime | ) |
|
|
pure virtual |
Called when the game has determined that game logic needs to be processed.
- Parameters
-
| pGameTime | Timing values including time since last update. |
Implemented in Sample::Background.
The documentation for this class was generated from the following file: