Changeset 2090 for GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp
- Timestamp:
- 02/05/07 13:29:55 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp
r1554 r2090 6 6 7 7 //--------------------------------------------------------------------------- 8 // Han le events.8 // Handle events. 9 9 //--------------------------------------------------------------------------- 10 10 int GeoMeshView::handle(int event) … … 46 46 if (mPan) 47 47 { 48 xshift = xshift + (x - mMouseX);48 xshift = xshift + 0.01; 49 49 } 50 50 else … … 59 59 if (mPan) 60 60 { 61 xshift = xshift - (mMouseX - x);61 xshift = xshift - 0.01; 62 62 } 63 63 else … … 72 72 if (mPan) 73 73 { 74 yshift = yshift - (y - mMouseY);74 yshift = yshift - 0.01; 75 75 } 76 76 else … … 85 85 if (mPan) 86 86 { 87 yshift = yshift + (mMouseY - y);87 yshift = yshift + 0.01; 88 88 } 89 89 else … … 884 884 geosubmesh->mIndexCount, 885 885 GL_UNSIGNED_INT, 886 886 887 mIndexArray[submesh]); 887 888 … … 1146 1147 glLoadIdentity(); 1147 1148 1148 glEnable(GL_LIGHTING);1149 1150 1149 // Frustrum. 1151 1150 glViewport(0,0,w(),h()); … … 1213 1212 { 1214 1213 enableColorStrips(); 1215 //glDisable(GL_LIGHTING);1216 1214 glPolygonMode (GL_FRONT_AND_BACK, GL_FILL); 1217 1215 drawGeoMesh(false); 1218 1216 } 1217 1218 if (mLighting) 1219 { 1220 glEnable(GL_LIGHTING); 1221 } 1219 1222 else 1220 1223 { 1221 gl Enable(GL_LIGHTING);1224 glDisable(GL_LIGHTING); 1222 1225 } 1223 1226 … … 1225 1228 { 1226 1229 disableColorStrips(); 1227 1228 //glDisable(GL_LIGHTING);1229 1230 1230 1231 GLfloat color[4]; … … 1257 1258 { 1258 1259 disableColorStrips(); 1259 //glEnable(GL_LIGHTING);1260 1260 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 1261 1261 drawGeoMesh(false); … … 1279 1279 current_texture = ilutGLLoadImage((const ILstring)imgfile); 1280 1280 1281 if (!current_texture)1282 {1283 fltk::alert("Error loading texture!");1284 }1281 // if (!current_texture) 1282 // { 1283 // fltk::alert("Error loading texture!"); 1284 // } 1285 1285 1286 1286 ilShutDown(); … … 1295 1295 current_texture_submesh[isubmesh] = ilutGLLoadImage((const ILstring)imgfile); 1296 1296 1297 if (!current_texture_submesh[isubmesh])1298 {1299 fltk::alert("Error loading texture!");1300 }1297 // if (!current_texture_submesh[isubmesh]) 1298 // { 1299 // fltk::alert("Error loading texture!"); 1300 // } 1301 1301 1302 1302 ilShutDown();
Note: See TracChangeset
for help on using the changeset viewer.