Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __GameObject__
- #define __GameObject__
- #include<SDL2/SDL.h>
- #include<SDL2/SDL_image.h>
- #include <iostream>
- #include <string>
- #include <map>
- #include "LoaderParams.h"
- #include "TextureManager.h"
- class GameObject
- {
- public:
- virtual void draw(SDL_Renderer* pRenderer)=0;
- virtual void update()=0;
- virtual void clean()=0;
- protected:
- SDL_Renderer* pRenderer = 0;
- GameObject(const LoaderParams* pParams){}
- virtual ~GameObject(){}
- };
- #endif /*defined(GameObject) */
Advertisement
Add Comment
Please, Sign In to add comment