Attach command buffer to Renderer Window (#1472)
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user