shithub: microui

ref: e7d741e82a935ee6cf079e68f2a8b6856d7f0323
dir: /demo/renderer.h/

View raw version
#ifndef RENDERER_H
#define RENDERER_H

void r_init(void);
void r_draw_rect(mu_Rect rect, mu_Color color);
void r_draw_text(mu_Font font, const char *text, mu_Vec2 pos, mu_Color color);
void r_draw_icon(int id, mu_Rect rect, mu_Color color);
 int r_get_text_width(mu_Font font, const char *text, int len);
 int r_get_text_height(mu_Font font);
void r_set_clip_rect(mu_Rect rect);
void r_clear(mu_Color color);
void r_present(void);

#endif