aboutsummaryrefslogtreecommitdiff
path: root/src/rencache.h
blob: eb9882293a4fa65b6615c087d1051dcd7b0c3ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef RENCACHE_H
#define RENCACHE_H

#include <stdbool.h>
#include "renderer.h"

void rencache_show_debug(bool enable);
void rencache_free_font(RenFont *font);
void rencache_set_clip_rect(RenRect rect);
void rencache_draw_rect(RenRect rect, RenColor color);
int  rencache_draw_text(RenFont *font, const char *text, int x, int y, RenColor color, bool draw_subpixel);
void rencache_invalidate(void);
void rencache_begin_frame(void);
void rencache_end_frame(void);

#endif