mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
dfb06e1c7a
Follow the other sources that include cairo.h, by just doing #include <cairo.h>, not <cairo/cairo.h>. https://bugzilla.gnome.org/show_bug.cgi?id=773299
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
#ifndef __GSK_GL_IMAGE_H__
|
|
#define __GSK_GL_IMAGE_H__
|
|
|
|
#include "gskgldriverprivate.h"
|
|
#include <cairo.h>
|
|
|
|
typedef struct
|
|
{
|
|
guint texture_id;
|
|
int width;
|
|
int height;
|
|
} GskGLImage;
|
|
|
|
typedef struct
|
|
{
|
|
guchar *data;
|
|
gsize width;
|
|
gsize height;
|
|
gsize stride;
|
|
gsize x;
|
|
gsize y;
|
|
} GskImageRegion;
|
|
|
|
void gsk_gl_image_create (GskGLImage *self,
|
|
GskGLDriver *gl_driver,
|
|
int width,
|
|
int height);
|
|
void gsk_gl_image_destroy (GskGLImage *self,
|
|
GskGLDriver *gl_driver);
|
|
void gsk_gl_image_write_to_png (const GskGLImage *self,
|
|
GskGLDriver *gl_driver,
|
|
const char *filename);
|
|
void gsk_gl_image_upload_regions (GskGLImage *self,
|
|
GskGLDriver *gl_driver,
|
|
guint n_regions,
|
|
const GskImageRegion *regions);
|
|
|
|
|
|
#endif
|
|
|