Guest User

Untitled

a guest
Feb 8th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. /*
  2.  * Graphics.h
  3.  *
  4.  */
  5.  
  6. #ifndef GRAPHICS_H
  7. #define GRAPHICS_H
  8.  
  9. class Graphics {
  10. public:
  11.     Graphics();
  12.     ~Graphics();
  13.  
  14.     int             _windowWidth, _windowHeight;
  15.  
  16.     void            changeWindowSize(int width, int height);
  17.     SDL_Renderer*   getRenderer();  // since _renderer is pointer, this func must return a SDL_Renderer pointer
  18.  
  19. private:
  20.     SDL_Window*     _window;
  21.     const char*     _windowTitle;
  22.     SDL_Renderer*   _renderer;
  23.     int             _renderingDriverIndex;
  24.     Uint32          _rendererFlags;
  25. };
  26.  
  27.  
  28. class Layer {
  29. public:
  30.     Layer(SDL_Renderer* renderer, int& width, int& height);
  31.     ~Layer();
  32.  
  33.     SDL_Texture*    getTexture();
  34. private:
  35.     SDL_Texture*    _texture;
  36. };
  37.  
  38. #endif /* GRAPHICS_H */
Add Comment
Please, Sign In to add comment