shithub: microui

ref: 0b64933b08bbfa485c7142c97d33ff3d47f83342
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