2019-12-28 12:16:32 +01:00
|
|
|
#ifndef RENCACHE_H
|
|
|
|
#define RENCACHE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "renderer.h"
|
|
|
|
|
|
|
|
void rencache_show_debug(bool enable);
|
2021-04-24 10:21:34 +02:00
|
|
|
void rencache_free_font(FontDesc *font_desc);
|
2019-12-28 12:16:32 +01:00
|
|
|
void rencache_set_clip_rect(RenRect rect);
|
|
|
|
void rencache_draw_rect(RenRect rect, RenColor color);
|
2021-04-24 10:21:34 +02:00
|
|
|
int rencache_draw_text(FontDesc *font_desc, const char *text, int x, int y, RenColor color,
|
|
|
|
bool draw_subpixel, CPReplaceTable *replacements, RenColor replace_color);
|
2020-05-22 10:00:48 +02:00
|
|
|
void rencache_invalidate(void);
|
2019-12-28 12:16:32 +01:00
|
|
|
void rencache_begin_frame(void);
|
|
|
|
void rencache_end_frame(void);
|
|
|
|
|
|
|
|
#endif
|