Show
Ignore:
Timestamp:
04/14/14 18:16:22 (9 days ago)
Author:
robert
Message:

Fixed comment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osganimationviewer/AnimtkViewer.cpp

    r12292 r13576  
    1 /*  -*-c++-*-  
     1/*  -*-c++-*- 
    22 *  Copyright (C) 2008 Cedric Pinson <mornifle@plopbyte.net> 
    33 * 
    4  * This library is open source and may be redistributed and/or modified under   
    5  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     4 * This library is open source and may be redistributed and/or modified under 
     5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    66 * (at your option) any later version.  The full license is in LICENSE file 
    77 * included with this distribution, and on the openscenegraph.org website. 
    8  *  
     8 * 
    99 * This library is distributed in the hope that it will be useful, 
    1010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1212 * OpenSceneGraph Public License for more details. 
    1313 * 
     
    3838 
    3939 
    40 osg::Geode* createAxis()  
     40osg::Geode* createAxis() 
    4141{ 
    42     osg::Geode*     geode    = new osg::Geode();   
     42    osg::Geode*     geode    = new osg::Geode(); 
    4343    osg::Geometry*  geometry = new osg::Geometry(); 
    4444    osg::Vec3Array* vertices = new osg::Vec3Array(); 
    4545    osg::Vec4Array* colors   = new osg::Vec4Array(); 
    46      
     46 
    4747    vertices->push_back(osg::Vec3(0.0f, 0.0f, 0.0f)); 
    4848    vertices->push_back(osg::Vec3(1.0f, 0.0f, 0.0f)); 
     
    5858    colors->push_back(osg::Vec4(0.0f, 0.0f, 1.0f, 1.0f)); 
    5959    colors->push_back(osg::Vec4(0.0f, 0.0f, 1.0f, 1.0f)); 
    60      
     60 
    6161    geometry->setVertexArray(vertices); 
    62     geometry->setColorArray(colors); 
    63     geometry->setColorBinding(osg::Geometry::BIND_PER_VERTEX);     
     62    geometry->setColorArray(colors, osg::Array::BIND_PER_VERTEX); 
    6463    geometry->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, 0, 6)); 
    6564    geometry->getOrCreateStateSet()->setMode(GL_LIGHTING, false); 
     
    101100}; 
    102101 
    103 int main(int argc, char** argv)  
     102int main(int argc, char** argv) 
    104103{ 
    105104    osg::ArgumentParser arguments(&argc, argv); 
     
    154153    AnimtkViewerGUI* gui    = new AnimtkViewerGUI(&viewer, WIDTH, HEIGHT, 0x1234); 
    155154    osg::Camera*     camera = gui->createParentOrthoCamera(); 
    156      
     155 
    157156    node->setNodeMask(0x0001); 
    158157