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"
|
|
|
|
|
2021-09-25 06:35:55 +02:00
|
|
|
void rencache_show_debug(bool enable);
|
2023-06-16 16:19:52 +02:00
|
|
|
void rencache_set_clip_rect(RenWindow *window_renderer, RenRect rect);
|
|
|
|
void rencache_draw_rect(RenWindow *window_renderer, RenRect rect, RenColor color);
|
2023-03-09 16:48:46 +01:00
|
|
|
double rencache_draw_text(RenWindow *window_renderer, RenFont **font, const char *text, size_t len, double x, int y, RenColor color);
|
2021-09-25 06:35:55 +02:00
|
|
|
void rencache_invalidate(void);
|
2023-01-22 04:11:42 +01:00
|
|
|
void rencache_begin_frame(RenWindow *window_renderer);
|
|
|
|
void rencache_end_frame(RenWindow *window_renderer);
|
2019-12-28 12:16:32 +01:00
|
|
|
|
|
|
|
#endif
|