Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Graphics.h
- *
- */
- #ifndef GRAPHICS_H
- #define GRAPHICS_H
- class Graphics {
- public:
- Graphics();
- ~Graphics();
- int _windowWidth, _windowHeight;
- void changeWindowSize(int width, int height);
- SDL_Renderer* getRenderer(); // since _renderer is pointer, this func must return a SDL_Renderer pointer
- private:
- SDL_Window* _window;
- const char* _windowTitle;
- SDL_Renderer* _renderer;
- int _renderingDriverIndex;
- Uint32 _rendererFlags;
- };
- class Layer {
- public:
- Layer(SDL_Renderer* renderer, int& width, int& height);
- ~Layer();
- SDL_Texture* getTexture();
- private:
- SDL_Texture* _texture;
- };
- #endif /* GRAPHICS_H */
Add Comment
Please, Sign In to add comment