First game engine I made
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ui.h 573B

123456789101112131415161718192021222324252627
  1. SDL_Window* window;
  2. SDL_Renderer* renderer;
  3. SDL_Surface* loadingsurface;
  4. SDL_Texture* loadingtexture;
  5. SDL_Texture* fonttexture;
  6. SDL_Rect letter;
  7. SDL_Rect letterfinal;
  8. SDL_RendererFlip flippy;
  9. typedef enum windowstyle{
  10. TITLE,
  11. NOTITLE,
  12. BUTTONS,
  13. NOBUTTONS
  14. };
  15. void setupui(SDL_Window* win, SDL_Renderer* ren);
  16. void destroyui();
  17. void drawstring(char *message, int posx, int posy, int scale, int spacing);
  18. void setupfont(char *url, int rows, int columns);
  19. void drawwindow(char *title, char *message, int ifbuttons, int iftitle, int xpos, int ypos, int timeonscreen);