summaryrefslogtreecommitdiff
path: root/productviewer.h
blob: 191cfe5a5024813285166d0675fae90deeaa41c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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