libgoatvr
diff src/vr.h @ 12:b536bd21b37f
added vr_get_def functions
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 24 Sep 2014 23:50:40 +0300 |
parents | 34d4643d61f9 |
children | 27fcd4c2969d |
line diff
1.1 --- a/src/vr.h Wed Sep 24 10:18:42 2014 +0300 1.2 +++ b/src/vr.h Wed Sep 24 23:50:40 2014 +0300 1.3 @@ -36,6 +36,11 @@ 1.4 void vr_setf(const char *optname, float val); 1.5 int vr_geti(const char *optname); 1.6 float vr_getf(const char *optname); 1.7 +/* variants of the get functions, with an additional "default value" 1.8 + * argument, which is returned if the requested option is missing 1.9 + */ 1.10 +int vr_geti_def(const char *optname, int def_val); 1.11 +float vr_getf_def(const char *optname, float def_val); 1.12 1.13 int vr_view_translation(int eye, float *vec); 1.14 int vr_view_rotation(int eye, float *quat);