aboutsummaryrefslogtreecommitdiffstats
path: root/renderer.h
blob: eaa85a9bfd6903447441b38e3fb49e35cf6b0be4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef RENDERER_H
#define RENDERER_H

#include "microui.h"

void r_init(void);
void r_handle_input(mu_Context *ctx);
void r_render(mu_Context *ctx);
void r_draw_rect(mu_Rect rect, mu_Color color);
void r_draw_text(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(const char *text, int len);
int r_get_text_height(void);
void r_get_window_size(int *w, int *h);
void r_set_clip_rect(mu_Rect rect);
void r_clear(mu_Color color);
void r_present(void);

#endif