19unsigned char *
glCompLoadPng(cairo_surface_t **surface,
const char *filename,
20 int *imageWidth,
int *imageHeight) {
21 *surface = cairo_image_surface_create_from_png(filename);
22 if (*surface ==
NULL ||
23 cairo_surface_status(*surface) != CAIRO_STATUS_SUCCESS) {
26 *imageWidth = cairo_image_surface_get_width(*surface);
27 *imageHeight = cairo_image_surface_get_height(*surface);
28 return cairo_image_surface_get_data(*surface);
unsigned char * glCompLoadPng(cairo_surface_t **surface, const char *filename, int *imageWidth, int *imageHeight)