diff options
Diffstat (limited to 'include/yasl/cpu.h')
| -rw-r--r-- | include/yasl/cpu.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/yasl/cpu.h b/include/yasl/cpu.h new file mode 100644 index 0000000..d18f91f --- /dev/null +++ b/include/yasl/cpu.h @@ -0,0 +1,15 @@ +/** @file CPU surfaces: draw into the lent pixel buffer, then present it. */ +#ifndef YASL_CPU_H +#define YASL_CPU_H +#include "yasl/yasl.h" +#ifdef __cplusplus +extern "C" { +#endif +/** width*height premultiplied 0xAARRGGBB pixels, rows tightly packed. Contents + * persist; a resize keeps the overlap and zeroes the rest. Valid until the next wait. */ +YASL_API uint32_t *yasl_cpu_pixels(yasl_surface *surface, int *width, int *height); +YASL_API bool yasl_cpu_present(yasl_surface *surface); +#ifdef __cplusplus +} +#endif +#endif |
