breakhack/src/gui.h

28 lines
479 B
C
Raw Normal View History

#ifndef GUI_H_
#define GUI_H_
#include "linkedlist.h"
#include "hashtable.h"
#include "sprite.h"
#include "camera.h"
typedef struct {
LinkedList *sprites;
LinkedList *health;
Hashtable *textures;
} Gui;
Gui* gui_create(void);
void gui_set_max_health(Gui*, int max, SDL_Renderer*);
void gui_set_current_health(Gui*, int current);
Texture* gui_add_texture(Gui*, const char *path, SDL_Renderer*);
void gui_render(Gui*, Camera*);
void gui_destroy(Gui*);
#endif // GUI_H_