renderer.h 426 B

1234567891011121314151617
  1. #ifndef RENDERER_H
  2. #define RENDERER_H
  3. #include "microui.h"
  4. void r_init(void);
  5. void r_draw_rect(mu_Rect rect, mu_Color color);
  6. void r_draw_text(const char *text, mu_Vec2 pos, mu_Color color);
  7. void r_draw_icon(int id, mu_Rect rect, mu_Color color);
  8. int r_get_text_width(const char *text, int len);
  9. int r_get_text_height(void);
  10. void r_set_clip_rect(mu_Rect rect);
  11. void r_clear(mu_Color color);
  12. void r_present(void);
  13. #endif