Show
Ignore:
Timestamp:
11/17/05 21:22:55 (8 years ago)
Author:
robert
Message:

Replaced tabs with spaces in examples.

Files:
1 modified

Legend:

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

    r4626 r4805  
    2424osg::Node* createScene() 
    2525{ 
    26         // Create the Earth, in blue 
    27         osg::ShapeDrawable *earth_sd = new osg::ShapeDrawable; 
    28         osg::Sphere* earth_sphere = new osg::Sphere; 
    29         earth_sphere->setRadius(r_earth); 
    30         earth_sd->setShape(earth_sphere); 
    31         earth_sd->setColor(osg::Vec4(0, 0, 1.0, 1.0)); 
     26    // Create the Earth, in blue 
     27    osg::ShapeDrawable *earth_sd = new osg::ShapeDrawable; 
     28    osg::Sphere* earth_sphere = new osg::Sphere; 
     29    earth_sphere->setRadius(r_earth); 
     30    earth_sd->setShape(earth_sphere); 
     31    earth_sd->setColor(osg::Vec4(0, 0, 1.0, 1.0)); 
    3232 
    33         osg::Geode* earth = new osg::Geode; 
    34         earth->setName("earth"); 
    35         earth->addDrawable(earth_sd); 
     33    osg::Geode* earth = new osg::Geode; 
     34    earth->setName("earth"); 
     35    earth->addDrawable(earth_sd); 
    3636 
    37         // Create the Sun, in yellow 
    38         osg::ShapeDrawable *sun_sd = new osg::ShapeDrawable; 
    39         osg::Sphere* sun_sphere = new osg::Sphere; 
    40         sun_sphere->setRadius(r_sun); 
    41         sun_sd->setShape(sun_sphere); 
    42         sun_sd->setColor(osg::Vec4(1.0, 0.0, 0.0, 1.0)); 
     37    // Create the Sun, in yellow 
     38    osg::ShapeDrawable *sun_sd = new osg::ShapeDrawable; 
     39    osg::Sphere* sun_sphere = new osg::Sphere; 
     40    sun_sphere->setRadius(r_sun); 
     41    sun_sd->setShape(sun_sphere); 
     42    sun_sd->setColor(osg::Vec4(1.0, 0.0, 0.0, 1.0)); 
    4343 
    44         osg::Geode* sun = new osg::Geode; 
    45         sun->setName("sun"); 
    46         sun->addDrawable(sun_sd); 
     44    osg::Geode* sun = new osg::Geode; 
     45    sun->setName("sun"); 
     46    sun->addDrawable(sun_sd); 
    4747 
    48         // Move the sun behind the earth 
    49         osg::PositionAttitudeTransform *pat = new osg::PositionAttitudeTransform; 
    50         pat->setPosition(osg::Vec3d(0.0, AU, 0.0)); 
     48    // Move the sun behind the earth 
     49    osg::PositionAttitudeTransform *pat = new osg::PositionAttitudeTransform; 
     50    pat->setPosition(osg::Vec3d(0.0, AU, 0.0)); 
    5151 
    52         osg::Group* scene = new osg::Group; 
    53         scene->addChild(earth); 
    54         scene->addChild(pat); 
    55         pat->addChild(sun); 
     52    osg::Group* scene = new osg::Group; 
     53    scene->addChild(earth); 
     54    scene->addChild(pat); 
     55    pat->addChild(sun); 
    5656 
    57         return scene; 
     57    return scene; 
    5858} 
    5959