libgoatvr
annotate src/opt.h @ 7:6896f9cf9621
- configure now emits config.status with the current confure invocation
- now vr_init will heed the VR_MODULE env var for the name of the module to use
- more stuff on the openhmd module
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 19 Sep 2014 15:16:51 +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_ */ |