libgoatvr
annotate src/opt.h @ 15:27fcd4c2969d
added VR_EYE_RES_SCALE option
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 25 Sep 2014 08:50:50 +0300 |
parents | |
children | 437fe32ac633 |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef OPT_H_ |
nuclear@0 | 2 #define OPT_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 enum opt_type { OTYPE_INT, OTYPE_FLOAT }; |
nuclear@0 | 5 |
nuclear@0 | 6 struct option { |
nuclear@0 | 7 enum opt_type type; |
nuclear@0 | 8 int ival; |
nuclear@0 | 9 float fval; |
nuclear@0 | 10 }; |
nuclear@0 | 11 |
nuclear@0 | 12 void *create_options(void); |
nuclear@0 | 13 void destroy_options(void *optdb); |
nuclear@0 | 14 |
nuclear@0 | 15 void set_option_int(void *optdb, const char *key, int val); |
nuclear@0 | 16 void set_option_float(void *optdb, const char *key, float val); |
nuclear@0 | 17 |
nuclear@0 | 18 int get_option_int(void *optdb, const char *key, int *val); |
nuclear@0 | 19 int get_option_float(void *optdb, const char *key, float *val); |
nuclear@0 | 20 |
nuclear@0 | 21 #endif /* OPT_H_ */ |