libgoatvr

diff src/vr.c @ 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 6896f9cf9621
children 34d4643d61f9
line diff
     1.1 --- a/src/vr.c	Fri Sep 19 15:16:51 2014 +0300
     1.2 +++ b/src/vr.c	Sat Sep 20 13:22:53 2014 +0300
     1.3 @@ -198,9 +198,9 @@
     1.4  	offs[1] = -offs[1];
     1.5  	offs[2] = -offs[2];
     1.6  
     1.7 -	translation_matrix(offs, tmat);
     1.8 -	rotation_matrix(quat, rmat);
     1.9 -	mult_matrix(mat, tmat, rmat);
    1.10 +	vrimp_translation_matrix(offs, tmat);
    1.11 +	vrimp_rotation_matrix(quat, rmat);
    1.12 +	vrimp_mult_matrix(mat, tmat, rmat);
    1.13  	return 1;
    1.14  }
    1.15  
    1.16 @@ -238,7 +238,7 @@
    1.17  
    1.18  	if(!res) {
    1.19  		fallback_present();
    1.20 -		vr_gl_swap_buffers();
    1.21 +		vrimp_swap_buffers();
    1.22  	}
    1.23  	return 0;
    1.24  }