[Plib-cvs] plib/examples/src/ssg/tween_test Makefile.am,1.3,1.4 tween_test.cxx,1.3,1.4
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2004-12-29 07:19:54
|
Update of /cvsroot/plib/plib/examples/src/ssg/tween_test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10737/plib/examples/src/ssg/tween_test Modified Files: Makefile.am tween_test.cxx Log Message: Fixed some bugs in tweening. Added functions to dump Z buffer into ssgaScreenDump. Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/examples/src/ssg/tween_test/Makefile.am,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Makefile.am 1 Sep 2002 05:22:26 -0000 1.3 +++ Makefile.am 29 Dec 2004 07:19:39 -0000 1.4 @@ -4,8 +4,7 @@ tween_test_SOURCES = tween_test.cxx -tween_test_LDADD = -lplibssgaux -lplibssg -lplibsg -lplibul $(GLUT_LIBS) \ - $(OGL_LIBS) +tween_test_LDADD = -lplibssgaux -lplibssg -lplibsg -lplibpw -lplibul $(OGL_LIBS) endif Index: tween_test.cxx =================================================================== RCS file: /cvsroot/plib/plib/examples/src/ssg/tween_test/tween_test.cxx,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- tween_test.cxx 1 Sep 2002 12:04:52 -0000 1.3 +++ tween_test.cxx 29 Dec 2004 07:19:39 -0000 1.4 @@ -32,18 +32,11 @@ # include <unistd.h> #endif #include <math.h> +#include <GL/gl.h> #include <plib/ssg.h> #include <plib/ssgAux.h> - -#ifdef FREEGLUT_IS_PRESENT -# include <GL/freeglut.h> -#else -# ifdef __APPLE__ [...79 lines suppressed...] + pwSetCallbacks ( NULL, NULL, NULL, NULL, NULL ) ; /* Initialise SSG @@ -291,7 +242,14 @@ { init_graphics () ; load_database () ; - glutMainLoop () ; + + while ( 1 ) + { + ulMilliSecondSleep ( 16 ) ; + redraw () ; + pwSwapBuffers () ; + } + return 0 ; } |