Update of /cvsroot/artoolkit/artoolkit/examples/simpleVRML
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv1430
Modified Files:
simpleVRML.c
Log Message:
Added RH versions of GL projection and modelview fns in gsub_lite, and switch examples to using these.
Index: simpleVRML.c
===================================================================
RCS file: /cvsroot/artoolkit/artoolkit/examples/simpleVRML/simpleVRML.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** simpleVRML.c 18 Sep 2006 23:39:11 -0000 1.15
--- simpleVRML.c 4 Oct 2006 03:44:31 -0000 1.16
***************
*** 360,364 ****
if (gPatt_found) {
// Projection transformation.
! arglCameraFrustum(&gARTCparam, VIEW_DISTANCE_MIN, VIEW_DISTANCE_MAX, p);
glMatrixMode(GL_PROJECTION);
glLoadMatrixd(p);
--- 360,364 ----
if (gPatt_found) {
// Projection transformation.
! arglCameraFrustumRH(&gARTCparam, VIEW_DISTANCE_MIN, VIEW_DISTANCE_MAX, p);
glMatrixMode(GL_PROJECTION);
glLoadMatrixd(p);
***************
*** 376,380 ****
if ((gObjectData[i].visible != 0) && (gObjectData[i].vrml_id >= 0)) {
//fprintf(stderr, "About to draw object %i\n", i);
! arglCameraView(gObjectData[i].trans, m, VIEW_SCALEFACTOR_4);
glLoadMatrixd(m);
--- 376,380 ----
if ((gObjectData[i].visible != 0) && (gObjectData[i].vrml_id >= 0)) {
//fprintf(stderr, "About to draw object %i\n", i);
! arglCameraViewRH(gObjectData[i].trans, m, VIEW_SCALEFACTOR_4);
glLoadMatrixd(m);
|