render: Add header

shader-damage
Andri Yngvason 2019-10-06 17:14:53 +00:00
parent 232b945ad0
commit 89dbbc5fc9
2 changed files with 11 additions and 2 deletions

9
include/render.h 100644
View File

@ -0,0 +1,9 @@
#pragma once
struct dmabuf_frame;
int render_dmabuf_frame(struct renderer* self, struct dmabuf_frame* frame);
/* Copy a horizontal stripe from the GL frame into a pixel buffer */
void render_copy_pixels(struct renderer* self, void* dst, uint32_t y,
uint32_t height);

View File

@ -396,8 +396,8 @@ int render_dmabuf_frame(struct renderer* self, struct dmabuf_frame* frame)
return 0;
}
/* Copy a horizontal stripe from the GL frame into a pixel buffer */
void render_copy_pixels(struct renderer* self, void* dst, uint32_t y, uint32_t height)
void render_copy_pixels(struct renderer* self, void* dst, uint32_t y,
uint32_t height)
{
assert(y + height <= self->height);