Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <SDL.h>
- #include <SDL_image.h>
- #include <string>
- class gameMain
- {
- public:
- gameMain();
- ~gameMain();
- void run(std::string title, int w, int h);
- void initSystems();
- void gameLoop();
- void processInput();
- void Draw();
- SDL_Renderer* getRenderer();
- private:
- SDL_Window* m_window;
- SDL_Renderer* m_renderer;
- SDL_Event* m_event;
- int m_screenWidth;
- int m_screenHeight;
- std::string m_title;
- gameSprite* player;
- int FPS;
- bool Running;
- };
Advertisement
Add Comment
Please, Sign In to add comment