projects
/
demo_prior
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
textures, overlay images, libimago
[demo_prior]
/
src
/
texture.h
diff --git a/src/texture.h
b/src/texture.h
new file mode 100644
(file)
index 0000000..
0732a74
--- /dev/null
+++ b/
src/texture.h
@@ -0,0
+1,13
@@
+#ifndef TEXTURE_H_
+#define TEXTURE_H_
+
+struct texture {
+ unsigned int id;
+ int width, height;
+ unsigned char *pixels;
+};
+
+struct texture *load_texture(const char *fname);
+void free_texture(struct texture *tex);
+
+#endif /* TEXTURE_H_ */