Update of /cvsroot/artoolkit/artoolkit/examples/twoView
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv1508
Modified Files:
twoView.c
Log Message:
Added RH versions of GL projection and modelview fns in gsub_lite, and switch examples to using these.
Index: twoView.c
===================================================================
RCS file: /cvsroot/artoolkit/artoolkit/examples/twoView/twoView.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** twoView.c 29 May 2006 04:00:20 -0000 1.15
--- twoView.c 4 Oct 2006 03:45:01 -0000 1.16
***************
*** 485,489 ****
// Projection transformation.
! arglCameraFrustum(&(gContextsActive[drawContextIndex].ARTCparam), VIEW_DISTANCE_MIN, VIEW_DISTANCE_MAX, p);
glMatrixMode(GL_PROJECTION);
glLoadMatrixd(p);
--- 485,489 ----
// Projection transformation.
! arglCameraFrustumRH(&(gContextsActive[drawContextIndex].ARTCparam), VIEW_DISTANCE_MIN, VIEW_DISTANCE_MAX, p);
glMatrixMode(GL_PROJECTION);
glLoadMatrixd(p);
***************
*** 497,501 ****
// ARToolKit supplied distance in millimetres, but I want OpenGL to work in my units.
! arglCameraView(gContextsActive[drawContextIndex].patt_trans, m, VIEW_SCALEFACTOR);
glLoadMatrixd(m);
--- 497,501 ----
// ARToolKit supplied distance in millimetres, but I want OpenGL to work in my units.
! arglCameraViewRH(gContextsActive[drawContextIndex].patt_trans, m, VIEW_SCALEFACTOR);
glLoadMatrixd(m);
|