libgoatvr

diff src/vr.h @ 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.h	Sat Sep 20 20:12:00 2014 +0300
     1.2 +++ b/src/vr.h	Wed Sep 24 10:18:42 2014 +0300
     1.3 @@ -2,17 +2,17 @@
     1.4  #define VR_H_
     1.5  
     1.6  /* unit: pixels */
     1.7 -#define VR_OPT_DISPLAY_WIDTH	"display-xres"
     1.8 -#define VR_OPT_DISPLAY_HEIGHT	"display-yres"
     1.9 -#define VR_OPT_LEYE_XRES	"left-eye-xres"
    1.10 -#define VR_OPT_LEYE_YRES	"left-eye-yres"
    1.11 -#define VR_OPT_REYE_XRES	"right-eye-xres"
    1.12 -#define VR_OPT_REYE_YRES	"right-eye-yres"
    1.13 -#define VR_OPT_WIN_XOFFS	"win-xoffset"
    1.14 -#define VR_OPT_WIN_YOFFS	"win-yoffset"
    1.15 +#define VR_DISPLAY_WIDTH	"display-xres"
    1.16 +#define VR_DISPLAY_HEIGHT	"display-yres"
    1.17 +#define VR_LEYE_XRES		"left-eye-xres"
    1.18 +#define VR_LEYE_YRES		"left-eye-yres"
    1.19 +#define VR_REYE_XRES		"right-eye-xres"
    1.20 +#define VR_REYE_YRES		"right-eye-yres"
    1.21 +#define VR_WIN_XOFFS		"win-xoffset"
    1.22 +#define VR_WIN_YOFFS		"win-yoffset"
    1.23  /* unit: meters */
    1.24 -#define VR_OPT_EYE_HEIGHT	"eye-height"
    1.25 -#define VR_OPT_IPD			"ipd"
    1.26 +#define VR_EYE_HEIGHT		"eye-height"
    1.27 +#define VR_IPD				"ipd"
    1.28  
    1.29  enum {
    1.30  	VR_EYE_LEFT,
    1.31 @@ -32,10 +32,10 @@
    1.32  int vr_use_module(int idx);
    1.33  int vr_use_module_named(const char *name);
    1.34  
    1.35 -void vr_set_opti(const char *optname, int val);
    1.36 -void vr_set_optf(const char *optname, float val);
    1.37 -int vr_get_opti(const char *optname);
    1.38 -float vr_get_optf(const char *optname);
    1.39 +void vr_seti(const char *optname, int val);
    1.40 +void vr_setf(const char *optname, float val);
    1.41 +int vr_geti(const char *optname);
    1.42 +float vr_getf(const char *optname);
    1.43  
    1.44  int vr_view_translation(int eye, float *vec);
    1.45  int vr_view_rotation(int eye, float *quat);