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