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
+6
View File
@@ -45,6 +45,12 @@ void renwin_init_surface(UNUSED RenWindow *ren) {
#endif
}
void renwin_init_command_buf(RenWindow *ren) {
ren->command_buf = NULL;
ren->command_buf_idx = 0;
ren->command_buf_size = 0;
}
static RenRect scaled_rect(const RenRect rect, const int scale) {
return (RenRect) {rect.x * scale, rect.y * scale, rect.width * scale, rect.height * scale};