[Plib-cvs] plib/examples/src/ssg/water water.cxx,1.14,1.15
Brought to you by:
sjbaker
|
From: Steve B. <sj...@us...> - 2002-08-15 04:59:57
|
Update of /cvsroot/plib/plib/examples/src/ssg/water
In directory usw-pr-cvs1:/tmp/cvs-serv29544/plib/examples/src/ssg/water
Modified Files:
water.cxx
Log Message:
Added environment mapping to water.
Index: water.cxx
===================================================================
RCS file: /cvsroot/plib/plib/examples/src/ssg/water/water.cxx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- water.cxx 13 Aug 2002 05:11:33 -0000 1.14
+++ water.cxx 15 Aug 2002 04:59:53 -0000 1.15
@@ -35,6 +35,7 @@
puDial *viewPitchDial = (puDial *) NULL ;
puSlider *viewRangeSlider = (puSlider *) NULL ;
puButton *viewWireframeButton= (puButton *) NULL ;
+puButton *viewEnvMapButton = (puButton *) NULL ;
puOneShot *writeButton = (puOneShot *) NULL ;
@@ -74,8 +75,45 @@
sgCoord campos = { { 0, -20, 8 }, { 0, -30, 0 } } ;
[...157 lines suppressed...]
@@ -750,7 +810,7 @@
/* Set everything up on the first time around */
trainSelectBox_cb ( trainSelectBox ) ;
- depthSelectBox = new puSelectBox ( 193, GUI_BASE, 400, GUI_BASE+20,
+ depthSelectBox = new puSelectBox ( 200, GUI_BASE, 400, GUI_BASE+20,
depthNames ) ;
depthSelectBox->setCallback ( depthSelectBox_cb ) ;
depthSelectBox->setCurrentItem ( 0 ) ;
@@ -799,6 +859,10 @@
viewWireframeButton= new puButton ( 400, VIEW_GUI_BASE, "Wireframe" ) ;
viewWireframeButton->setCallback ( viewWireframeButton_cb ) ;
viewWireframeButton->setValue ( FALSE ) ;
+
+ viewEnvMapButton= new puButton ( 300, VIEW_GUI_BASE, "Env.Map" ) ;
+ viewEnvMapButton->setCallback ( viewEnvMapButton_cb ) ;
+ viewEnvMapButton->setValue ( FALSE ) ;
writeButton = new puOneShot ( 400, VIEW_GUI_BASE + 30, "Write C++" ) ;
writeButton->setCallback ( writeButton_cb ) ;
|