diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-07 11:05:31 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-07 11:06:14 -0400 |
commit | cda12a3eda7049e828c61506f16361c5a5b3869c (patch) | |
tree | 57b3f2d14b5116cc1eaccd50819f86ae4f46bcf7 /example/cat.h | |
parent | 382f712792007ad839c4b6febf7f6387128ca7af (diff) |
Add texture, use index buffer, tweak matricies
Diffstat (limited to 'example/cat.h')
-rw-r--r-- | example/cat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/example/cat.h b/example/cat.h new file mode 100644 index 00000000..6db307fd --- /dev/null +++ b/example/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 * 3 + 1]; +}; + +extern const struct gimp_texture cat_tex; + +#endif |