Attach command buffer to Renderer Window (#1472)

This commit is contained in:
Jan
2023-08-19 13:29:05 +08:00
committed by takase1121
parent 964b8fe29d
commit 2af3082640
6 changed files with 41 additions and 35 deletions
+4
View File
@@ -3,6 +3,9 @@
struct RenWindow {
SDL_Window *window;
uint8_t *command_buf;
size_t command_buf_idx;
size_t command_buf_size;
#ifdef LITE_USE_SDL_RENDERER
SDL_Renderer *renderer;
SDL_Texture *texture;
@@ -12,6 +15,7 @@ struct RenWindow {
typedef struct RenWindow RenWindow;
void renwin_init_surface(RenWindow *ren);
void renwin_init_command_buf(RenWindow *ren);
void renwin_clip_to_surface(RenWindow *ren);
void renwin_set_clip_rect(RenWindow *ren, RenRect rect);
void renwin_resize_surface(RenWindow *ren);