diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-03 20:28:59 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-03 20:28:59 +0800 |
| commit | 6dfbf8fd561187ef23eacf9aaae606c0fb42381f (patch) | |
| tree | 42af64e6988c9468b7abedbc9f980722d18a6ca6 /productviewer.h | |
Initial working commit
Diffstat (limited to 'productviewer.h')
| -rw-r--r-- | productviewer.h | 18 |
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 |