1#ifndef DRAW_H
2#define DRAW_H
3
4#include <stdint.h>
5
6#include "font.h"
7
8/* draw a run of properties (look: vvvv) to screen */
9void draw_rune(uint32_t* dst, int w, int h, int cl, int rw, int cw, int ch,
10 uint32_t bg);
11
12/* fill the background of a rune
13 (TODO: runes) */
14void draw_caret(uint32_t* dst, int w, int h, int cl, int rw, int cw, int ch,
15 uint32_t fg);
16
17/* draw one codepoint to buffer */
18void draw_codepoint(Fontface* face, uint32_t* dst, int w, int h, int x,
19 int baseline, uint32_t cp, uint32_t fg);
20
21#endif /* DRAW_H */
22