shithub: microui

ref: e7530c204ba05aaf5443803a4d235ddb2785680e
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