Advertisement
tehcmn

graphics.h

Apr 6th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #ifndef _GRAPHICS_H
  2. #define _GRAPHICS_H
  3.  
  4. #include <SDL2/SDL.h>
  5. #include <SDL2/SDL_image.h>
  6. #include "math.h"
  7.  
  8. extern SDL_Window *window;
  9. extern SDL_Renderer *renderer;
  10.  
  11. class Sprite
  12. {
  13.     Sprite(const char *filename);
  14.     SDL_Texture *tex;
  15.     int x, y, w, h;
  16.     Vector2 v;
  17. };
  18.  
  19. bool GraphicsInit();
  20. void SetLogicalResolution(int w, int h);
  21. void ClearScreen(int r, int g, int b, int a);
  22.  
  23. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement