Changeset 12941

Show
Ignore:
Timestamp:
02/06/12 13:05:36 (16 months ago)
Author:
robert
Message:

Fixed silly compiler warning that was being produced in error.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgsharedarray/osgsharedarray.cpp

    r12292 r12941  
    133133  */ 
    134134namespace { 
    135  
    136     static const osg::Vec3 myVertices[] = { osg::Vec3(-1.,-1.,-1.), 
    137                                             osg::Vec3( 1.,-1.,-1.), 
    138                                             osg::Vec3(-1., 1.,-1.), 
    139                                             osg::Vec3( 1., 1.,-1.), 
    140                                             osg::Vec3(-1.,-1., 1.), 
    141                                             osg::Vec3( 1.,-1., 1.), 
    142                                             osg::Vec3(-1., 1., 1.), 
    143                                             osg::Vec3( 1., 1., 1.)  
    144                                           }; 
    145  
    146     static const osg::Vec3 myNormals[] = { osg::Vec3( 0., 0., 1.), 
    147                                            osg::Vec3( 1., 0., 0.), 
    148                                            osg::Vec3( 0., 0.,-1.), 
    149                                            osg::Vec3(-1., 0., 0.), 
    150                                            osg::Vec3( 0., 1., 0.), 
    151                                            osg::Vec3( 0.,-1., 0.)  
    152                                          }; 
    153      
    154     static const osg::Vec4 myColors[] = { osg::Vec4( 1., 0., 0., 1.), 
    155                                           osg::Vec4( 0., 1., 0., 1.), 
    156                                           osg::Vec4( 1., 1., 0., 1.), 
    157                                           osg::Vec4( 0., 0., 1., 1.), 
    158                                           osg::Vec4( 1., 0., 1., 1.), 
    159                                           osg::Vec4( 0., 1., 1., 1.)  
    160                                         }; 
    161  
    162     static const unsigned short myIndices[] = { 4, 5, 7, 6, 
    163                                                 5, 1, 3, 7, 
    164                                                 1, 0, 2, 3, 
    165                                                 0, 4, 6, 2, 
    166                                                 6, 7, 3, 2, 
    167                                                 0, 1, 5, 4 
    168                                               }; 
    169135} 
    170136 
     
    195161osg::Geode* createGeometry() 
    196162{ 
     163    const osg::Vec3 myVertices[] = { osg::Vec3(-1.,-1.,-1.), 
     164                                     osg::Vec3( 1.,-1.,-1.), 
     165                                     osg::Vec3(-1., 1.,-1.), 
     166                                     osg::Vec3( 1., 1.,-1.), 
     167                                     osg::Vec3(-1.,-1., 1.), 
     168                                     osg::Vec3( 1.,-1., 1.), 
     169                                     osg::Vec3(-1., 1., 1.), 
     170                                     osg::Vec3( 1., 1., 1.) 
     171                                   }; 
     172 
     173    const osg::Vec3 myNormals[] = { osg::Vec3( 0., 0., 1.), 
     174                                    osg::Vec3( 1., 0., 0.), 
     175                                    osg::Vec3( 0., 0.,-1.), 
     176                                    osg::Vec3(-1., 0., 0.), 
     177                                    osg::Vec3( 0., 1., 0.), 
     178                                    osg::Vec3( 0.,-1., 0.) 
     179                                  }; 
     180 
     181    const osg::Vec4 myColors[] = { osg::Vec4( 1., 0., 0., 1.), 
     182                                   osg::Vec4( 0., 1., 0., 1.), 
     183                                   osg::Vec4( 1., 1., 0., 1.), 
     184                                   osg::Vec4( 0., 0., 1., 1.), 
     185                                   osg::Vec4( 1., 0., 1., 1.), 
     186                                   osg::Vec4( 0., 1., 1., 1.) 
     187                                 }; 
     188 
     189    const unsigned short myIndices[] = { 4, 5, 7, 6, 
     190                                        5, 1, 3, 7, 
     191                                        1, 0, 2, 3, 
     192                                        0, 4, 6, 2, 
     193                                        6, 7, 3, 2, 
     194                                        0, 1, 5, 4 
     195                                       }; 
     196 
    197197    osg::Geode* geode = new osg::Geode(); 
    198198