Arch Game Engine  0.2
background.cpp
1 #include "background.h"
2 
3 Background::Background() {
4 
5 }
6 Background::~Background() {}
7 
8 void Background::setBackground(string file, int w, int h, SDL_Renderer* ren) {
9  setImage(file, ren);
10  setFrame(0, 0, w, h);
11  setDest(0, 0, w, h);
12 }
void setImage(Image i)
Set the Object's Image with a given Image.
Definition: object.h:56
void setFrame(SDL_Rect i)
Set the frame with a given SDL_Rect.
Definition: object.h:72
void setDest(SDL_Rect i)
Set the destination with a given SDL_Rect.
Definition: object.h:74
void setBackground(string file, int w, int h, SDL_Renderer *ren)
Sets the background with a path to the file name, the width and height of the screen, and the renderer.
Definition: background.cpp:8