Guest User

Untitled

a guest
Apr 1st, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #pragma once
  2. #include <SDL.h>
  3. #include <SDL_image.h>
  4. #include <string>
  5. #include "gameSprite.h"
  6.  
  7. class gameMain
  8. {
  9. public:
  10.     gameMain();
  11.     ~gameMain();
  12.  
  13.     void run(std::string title, int w, int h);
  14.     void initSystems();
  15.     void gameLoop();
  16.     void processInput();
  17.     void Draw();
  18.  
  19.     SDL_Renderer* getRenderer();
  20.  
  21. private:
  22.     SDL_Window* m_window;
  23.     SDL_Renderer* m_renderer;
  24.     SDL_Event* m_event;
  25.  
  26.     int m_screenWidth;
  27.     int m_screenHeight;
  28.     std::string m_title;
  29.  
  30.     int FPS;
  31.     bool Running;
  32. };
Add Comment
Please, Sign In to add comment