25 lines
		
	
	
		
			759 B
		
	
	
	
		
			C
		
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			759 B
		
	
	
	
		
			C
		
	
	
| #ifndef UI_DRAW_H
 | |
| #define UI_DRAW_H
 | |
| #include "../ui/elements.h"
 | |
| #include "interface.h"
 | |
| #include "../interfaces.h"
 | |
| 
 | |
| void r_soft_Init();
 | |
| void r_soft_Reinit();
 | |
| void r_soft_Close();
 | |
| 
 | |
| void r_soft_renderElements(struct ElementList *list);
 | |
| void r_soft_renderElement(struct Element *element);
 | |
| void r_soft_renderScreen();
 | |
| void r_soft_clearScreen();
 | |
| 
 | |
| void r_soft_drawElement(struct Element *element);
 | |
| void r_soft_drawText(SDL_Surface *surface, struct Font *font, const char *string, int x, int y);
 | |
| void r_soft_drawSprite(struct Spritesheet *sheet, void *surface, int id, int x, int y);
 | |
| 
 | |
| /* event handlers */
 | |
| void r_soft_setupElement(struct Element *element);
 | |
| void r_soft_cleanElement(struct Element *element);
 | |
| void r_soft_changeElement(struct Element *element);
 | |
| #endif
 |