summaryrefslogtreecommitdiff
path: root/productviewer.h
diff options
context:
space:
mode:
Diffstat (limited to 'productviewer.h')
-rw-r--r--productviewer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/productviewer.h b/productviewer.h
new file mode 100644
index 0000000..191cfe5
--- /dev/null
+++ b/productviewer.h
@@ -0,0 +1,18 @@
+#ifndef PRODUCTVIEWER_H
+#define PRODUCTVIEWER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void pv_init(const char *model, void (*file_reader)(const char *path, char **data, size_t *len),
+ const char *color, unsigned int width, unsigned int height);
+void pv_draw(unsigned int width, unsigned int height);
+void pv_rotate(float angle);
+void pv_quit();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif