blob: d18f91f52be9bd09f3b8546ea54121e0da15f4cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|