Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
B_BackgroundManager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <iostream>
5 #include "../Core/C_Texture.h"
6 #include "B_Background.h"
7 
13 {
14 public:
21  B_BackgroundManager(SDL_Renderer* renderer, C_Vec2 dimensions, float* universalSpeed);
22 
27 
32  void update(float dt);
33 
38  void draw(SDL_Renderer* renderer);
39 
40 private:
51 };
~B_BackgroundManager()
Destructs the Background Manager.
Definition: B_BackgroundManager.cpp:18
B_Background * bottomBackgroundLayer
The bottom background layer backgrounds.
Definition: B_BackgroundManager.h:44
C_Texture * background[3]
The Background images.
Definition: B_BackgroundManager.h:42
An object for a background layer that inherits Velocity Entity.
Definition: B_Background.h:10
void draw(SDL_Renderer *renderer)
A function to draw the Backgrounds to the screen.
Definition: B_BackgroundManager.cpp:49
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
B_BackgroundManager(SDL_Renderer *renderer, C_Vec2 dimensions, float *universalSpeed)
Constructs the Background Manager.
Definition: B_BackgroundManager.cpp:3
B_Background * topBackgroundLayer[2]
The top background layer backgrounds.
Definition: B_BackgroundManager.h:48
Contains the functions to manage the background objects.
Definition: B_BackgroundManager.h:12
float * universalSpeed
A pointer for the universal speed of the game.
Definition: B_BackgroundManager.h:50
B_Background * middleBackgroundLayer[2]
The middle background layer backgrounds.
Definition: B_BackgroundManager.h:46
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13
void update(float dt)
A function to update the Backgrounds.
Definition: B_BackgroundManager.cpp:36