Al99

GameObject.h

Nov 11th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #ifndef __GameObject__
  2. #define __GameObject__
  3.  
  4. #include<SDL2/SDL.h>
  5. #include<SDL2/SDL_image.h>
  6. #include <iostream>
  7. #include <string>
  8. #include <map>
  9. #include "LoaderParams.h"
  10. #include "TextureManager.h"
  11.  
  12. class GameObject
  13. {
  14.     public:
  15.        
  16.     virtual void draw(SDL_Renderer* pRenderer)=0;
  17.     virtual void update()=0;
  18.     virtual void clean()=0;
  19.    
  20.     protected:
  21.    
  22.     SDL_Renderer* pRenderer = 0;
  23.  
  24.     GameObject(const LoaderParams* pParams){}
  25.     virtual ~GameObject(){}
  26. };
  27.  
  28. #endif /*defined(GameObject) */
Advertisement
Add Comment
Please, Sign In to add comment