/** @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