libgoatvr

diff src/vr.h @ 8:3d9ec6fe97d7

- added distortion mesh generation for the OpenHMD module (unfinished) - changed internal implementation function naming to use the vrimp_ prefix - added an opengl helper function to load extension entry points
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 20 Sep 2014 13:22:53 +0300
parents ded3d0a74e19
children 34d4643d61f9
line diff
     1.1 --- a/src/vr.h	Fri Sep 19 15:16:51 2014 +0300
     1.2 +++ b/src/vr.h	Sat Sep 20 13:22:53 2014 +0300
     1.3 @@ -1,16 +1,18 @@
     1.4  #ifndef VR_H_
     1.5  #define VR_H_
     1.6  
     1.7 +/* unit: pixels */
     1.8  #define VR_OPT_DISPLAY_WIDTH	"display-xres"
     1.9  #define VR_OPT_DISPLAY_HEIGHT	"display-yres"
    1.10  #define VR_OPT_LEYE_XRES	"left-eye-xres"
    1.11  #define VR_OPT_LEYE_YRES	"left-eye-yres"
    1.12  #define VR_OPT_REYE_XRES	"right-eye-xres"
    1.13  #define VR_OPT_REYE_YRES	"right-eye-yres"
    1.14 +#define VR_OPT_WIN_XOFFS	"win-xoffset"
    1.15 +#define VR_OPT_WIN_YOFFS	"win-yoffset"
    1.16 +/* unit: meters */
    1.17  #define VR_OPT_EYE_HEIGHT	"eye-height"
    1.18  #define VR_OPT_IPD			"ipd"
    1.19 -#define VR_OPT_WIN_XOFFS	"win-xoffset"
    1.20 -#define VR_OPT_WIN_YOFFS	"win-yoffset"
    1.21  
    1.22  enum {
    1.23  	VR_EYE_LEFT,