libgoatvr
view src/opt.h @ 8:3d9ec6fe97d7
- added distortion mesh generation for the OpenHMD module (unfinished)
- changed internal implementation function naming to use the vrimp_ prefix
- added an opengl helper function to load extension entry points
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 20 Sep 2014 13:22:53 +0300 |
parents | |
children | 437fe32ac633 |
line source
1 #ifndef OPT_H_
2 #define OPT_H_
4 enum opt_type { OTYPE_INT, OTYPE_FLOAT };
6 struct option {
7 enum opt_type type;
8 int ival;
9 float fval;
10 };
12 void *create_options(void);
13 void destroy_options(void *optdb);
15 void set_option_int(void *optdb, const char *key, int val);
16 void set_option_float(void *optdb, const char *key, float val);
18 int get_option_int(void *optdb, const char *key, int *val);
19 int get_option_float(void *optdb, const char *key, float *val);
21 #endif /* OPT_H_ */