Building Game Engines
Public Member Functions | List of all members
Background Class Reference

#include <Background.hpp>

Inheritance diagram for Background:
Inheritance graph
Collaboration diagram for Background:
Collaboration graph

Public Member Functions

 Background (SDL_Texture *texture)
 
 ~Background ()
 
virtual void Update ()
 
virtual void Render (SDL_Renderer *renderer)
 
- Public Member Functions inherited from Component
 Component ()
 
virtual ~Component ()=0
 

Detailed Description

The background for the game, acts as a component

Constructor & Destructor Documentation

◆ Background()

Background::Background ( SDL_Texture *  texture)

Constructor Texture is the background texture.

◆ ~Background()

Background::~Background ( )

Destructor

Member Function Documentation

◆ Render()

void Background::Render ( SDL_Renderer *  renderer)
virtual

Renders the background.

Implements Component.

◆ Update()

void Background::Update ( )
virtual

Does nothing.

Implements Component.


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