Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
Background.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 #include "JAM/Entity.h"
5 
10 class Background : public JAM_Entity
11 {
12 private:
14  float velocity;
15 
16 public:
26  Background(JAM_Texture* sprite, float x, float y, float width, float height, float velocity);
27 
31  ~Background();
32 
37  void update(float dt);
38 };
JAM_Texture * sprite
Definition: Entity.h:14
Creates a Texture for use with a renderer. Creates a Texture from an image file, this can then be use...
Definition: Texture.h:13
Background(JAM_Texture *sprite, float x, float y, float width, float height, float velocity)
Definition: Background.cpp:6
Creates a Background object that inherits Entity.
Definition: Background.h:10
~Background()
Definition: Background.cpp:16
Creates an Entity object.
Definition: Entity.h:10
float velocity
Definition: Background.h:14
void update(float dt)
Definition: Background.cpp:23