From 4f73498b78645728ff23adfbf9b650a1b66b66bb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 1 Nov 2017 15:47:58 -0400 Subject: Move shared example code --- examples/support/cat.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/support/cat.h (limited to 'examples/support/cat.h') diff --git a/examples/support/cat.h b/examples/support/cat.h new file mode 100644 index 00000000..46dc50f6 --- /dev/null +++ b/examples/support/cat.h @@ -0,0 +1,13 @@ +#ifndef _CAT_H +#define _CAT_H + +struct gimp_texture { + unsigned int width; + unsigned int height; + unsigned int bytes_per_pixel; /* 2:RGB16, 3:RGB, 4:RGBA */ + unsigned char pixel_data[128 * 128 * 4 + 1]; +}; + +extern const struct gimp_texture cat_tex; + +#endif -- cgit v1.2.3