libgoatvr
diff src/vr.c @ 11:34d4643d61f9
remove _opt suffix from vr_get_opt/vr_set_opt, and _OPT_from the predefined names
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 24 Sep 2014 10:18:42 +0300 |
parents | 3d9ec6fe97d7 |
children | b536bd21b37f |
line diff
1.1 --- a/src/vr.c Sat Sep 20 20:12:00 2014 +0300 1.2 +++ b/src/vr.c Wed Sep 24 10:18:42 2014 +0300 1.3 @@ -36,8 +36,8 @@ 1.4 1.5 /* create the default options database */ 1.6 if(!defopt && (defopt = create_options())) { 1.7 - set_option_float(defopt, VR_OPT_EYE_HEIGHT, 1.675); 1.8 - set_option_float(defopt, VR_OPT_IPD, 0.064); 1.9 + set_option_float(defopt, VR_EYE_HEIGHT, 1.675); 1.10 + set_option_float(defopt, VR_IPD, 0.064); 1.11 } 1.12 1.13 if(vrm) { 1.14 @@ -115,7 +115,7 @@ 1.15 return -1; 1.16 } 1.17 1.18 -void vr_set_opti(const char *optname, int val) 1.19 +void vr_seti(const char *optname, int val) 1.20 { 1.21 if(vrm && vrm->set_option) { 1.22 vrm->set_option(optname, OTYPE_INT, &val); 1.23 @@ -124,7 +124,7 @@ 1.24 } 1.25 } 1.26 1.27 -void vr_set_optf(const char *optname, float val) 1.28 +void vr_setf(const char *optname, float val) 1.29 { 1.30 if(vrm && vrm->set_option) { 1.31 vrm->set_option(optname, OTYPE_FLOAT, &val); 1.32 @@ -133,7 +133,7 @@ 1.33 } 1.34 } 1.35 1.36 -int vr_get_opti(const char *optname) 1.37 +int vr_geti(const char *optname) 1.38 { 1.39 int res = 0; 1.40 1.41 @@ -143,7 +143,7 @@ 1.42 return res; 1.43 } 1.44 1.45 -float vr_get_optf(const char *optname) 1.46 +float vr_getf(const char *optname) 1.47 { 1.48 float res = 0.0f; 1.49