Ignore:
Timestamp:
02/05/07 13:29:55 (17 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp

    r1554 r2090  
    66 
    77//--------------------------------------------------------------------------- 
    8 //      Hanle events. 
     8//      Handle events. 
    99//--------------------------------------------------------------------------- 
    1010int     GeoMeshView::handle(int event) 
     
    4646                                                if (mPan) 
    4747                                                { 
    48                                                         xshift  =       xshift  +       (x      -       mMouseX); 
     48                                                        xshift  =       xshift  +       0.01; 
    4949                                                } 
    5050                                                else 
     
    5959                                                        if (mPan) 
    6060                                                        { 
    61                                                                 xshift  =       xshift  -       (mMouseX        -       x); 
     61                                                                xshift  =       xshift  -       0.01; 
    6262                                                        } 
    6363                                                        else 
     
    7272                                                if (mPan) 
    7373                                                { 
    74                                                         yshift  =       yshift  -       (y - mMouseY); 
     74                                                        yshift  =       yshift  -       0.01; 
    7575                                                } 
    7676                                                else 
     
    8585                                                        if (mPan) 
    8686                                                        { 
    87                                                                 yshift  =       yshift  +       (mMouseY        -       y); 
     87                                                                yshift  =       yshift  +       0.01; 
    8888                                                        } 
    8989                                                        else 
     
    884884                        geosubmesh->mIndexCount, 
    885885                        GL_UNSIGNED_INT, 
     886 
    886887                        mIndexArray[submesh]); 
    887888 
     
    11461147        glLoadIdentity(); 
    11471148 
    1148         glEnable(GL_LIGHTING); 
    1149  
    11501149        //      Frustrum. 
    11511150        glViewport(0,0,w(),h()); 
     
    12131212        { 
    12141213                enableColorStrips(); 
    1215                 //glDisable(GL_LIGHTING); 
    12161214                glPolygonMode (GL_FRONT_AND_BACK, GL_FILL); 
    12171215                drawGeoMesh(false); 
    12181216        } 
     1217 
     1218        if (mLighting) 
     1219        { 
     1220                glEnable(GL_LIGHTING); 
     1221        } 
    12191222        else 
    12201223        { 
    1221                 glEnable(GL_LIGHTING); 
     1224                glDisable(GL_LIGHTING); 
    12221225        } 
    12231226 
     
    12251228        { 
    12261229                disableColorStrips(); 
    1227  
    1228                 //glDisable(GL_LIGHTING); 
    12291230 
    12301231                GLfloat color[4]; 
     
    12571258                { 
    12581259                        disableColorStrips(); 
    1259                         //glEnable(GL_LIGHTING); 
    12601260                        glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 
    12611261                        drawGeoMesh(false); 
     
    12791279        current_texture = ilutGLLoadImage((const ILstring)imgfile); 
    12801280 
    1281         if (!current_texture) 
    1282         { 
    1283                 fltk::alert("Error loading texture!"); 
    1284         } 
     1281//      if (!current_texture) 
     1282//      { 
     1283//              fltk::alert("Error loading texture!"); 
     1284//      } 
    12851285 
    12861286        ilShutDown(); 
     
    12951295        current_texture_submesh[isubmesh] = ilutGLLoadImage((const ILstring)imgfile); 
    12961296 
    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//      } 
    13011301 
    13021302        ilShutDown(); 
Note: See TracChangeset for help on using the changeset viewer.