Show
Ignore:
Timestamp:
10/07/10 13:53:28 (4 years ago)
Author:
robert
Message:

Introduced osg namespace to new local GLU functions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/lwo/Tessellator.cpp

    r4801 r11829  
    4545    last_error_ = 0; 
    4646 
    47     GLUtesselator *tess = gluNewTess(); 
     47    osg::GLUtesselator *tess = osg::gluNewTess(); 
    4848 
    49     gluTessCallback(tess, GLU_TESS_BEGIN_DATA, (GLU_TESS_CALLBACK) (cb_begin_data)); 
    50     gluTessCallback(tess, GLU_TESS_VERTEX_DATA, (GLU_TESS_CALLBACK) (cb_vertex_data)); 
    51     gluTessCallback(tess, GLU_TESS_END_DATA, (GLU_TESS_CALLBACK) (cb_end_data)); 
    52     gluTessCallback(tess, GLU_TESS_ERROR_DATA, (GLU_TESS_CALLBACK) (cb_error_data)); 
     49    osg::gluTessCallback(tess, GLU_TESS_BEGIN_DATA, (osg::GLU_TESS_CALLBACK) (cb_begin_data)); 
     50    osg::gluTessCallback(tess, GLU_TESS_VERTEX_DATA, (osg::GLU_TESS_CALLBACK) (cb_vertex_data)); 
     51    osg::gluTessCallback(tess, GLU_TESS_END_DATA, (osg::GLU_TESS_CALLBACK) (cb_end_data)); 
     52    osg::gluTessCallback(tess, GLU_TESS_ERROR_DATA, (osg::GLU_TESS_CALLBACK) (cb_error_data)); 
    5353 
    54     gluTessBeginPolygon(tess, this); 
    55     gluTessBeginContour(tess);     
     54    osg::gluTessBeginPolygon(tess, this); 
     55    osg::gluTessBeginContour(tess);     
    5656 
    5757    double *vertices = new double[poly.indices().size() * 3]; 
     
    7373    } 
    7474 
    75     gluTessEndContour(tess); 
    76     gluTessEndPolygon(tess); 
    77     gluDeleteTess(tess); 
     75    osg::gluTessEndContour(tess); 
     76    osg::gluTessEndPolygon(tess); 
     77    osg::gluDeleteTess(tess); 
    7878 
    7979    delete[] vertices;