[Plib-cvs] plib/examples/src/ssg/water Makefile.am,1.1,1.2 water.cxx,1.6,1.7
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-08-06 18:44:38
|
Update of /cvsroot/plib/plib/examples/src/ssg/water In directory usw-pr-cvs1:/tmp/cvs-serv10103/plib/examples/src/ssg/water Modified Files: Makefile.am water.cxx Log Message: Added menu system. Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/examples/src/ssg/water/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 4 Aug 2002 06:01:04 -0000 1.1 +++ Makefile.am 6 Aug 2002 18:44:34 -0000 1.2 @@ -2,7 +2,7 @@ water_SOURCES = water.cxx -water_LDADD = -lplibssgaux -lplibssg -lplibsg -lplibul $(GLUT_LIBS) $(OGL_LIBS) +water_LDADD = -lplibpu -lplibfnt -lplibssgaux -lplibssg -lplibsg -lplibul $(GLUT_LIBS) $(OGL_LIBS) EXTRA_DIST = water.dsp Index: water.cxx =================================================================== RCS file: /cvsroot/plib/plib/examples/src/ssg/water/water.cxx,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- water.cxx 6 Aug 2002 12:32:06 -0000 1.6 +++ water.cxx 6 Aug 2002 18:44:34 -0000 1.7 @@ -10,8 +10,30 @@ #include <math.h> #include <plib/ssg.h> #include <plib/ssgAux.h> +#include <plib/pu.h> #include <GL/glut.h> +#define GUI_BASE 80 +#define VIEW_GUI_BASE 20 + +puSlider *trainLengthSlider = (puSlider *) NULL ; +puSlider *trainSpeedSlider = (puSlider *) NULL ; [...467 lines suppressed...] + wavePolycountSlider->setMinValue ( 4000 ) ; + wavePolycountSlider->setStepSize ( 0 ) ; + wavePolycountSlider->setCBMode ( PUSLIDER_ALWAYS ) ; + wavePolycountSlider->setCallback ( wavePolycountSlider_cb ) ; + wavePolycountSlider->setLabel ( "Polygons" ) ; + wavePolycountSlider->setLabelPlace ( PUPLACE_CENTERED_RIGHT ) ; + + window_group->close () ; +} /* The works. @@ -338,6 +674,7 @@ { init_graphics () ; load_database () ; + init_gui () ; glutMainLoop () ; return 0 ; } |