breakhack/src/gui.h

30 lines
604 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*);
2018-01-23 12:14:44 +01:00
void gui_render_panel(Gui*, unsigned int width, unsigned int height, Camera*);
void gui_render_log(Gui*, unsigned int width, unsigned int height, Camera*);
void gui_destroy(Gui*);
#endif // GUI_H_