Show
Ignore:
Timestamp:
12/10/07 18:30:18 (7 years ago)
Author:
robert
Message:

From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)."

Files:
1 modified

Legend:

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

    r7006 r7648  
    4444#include <iostream> 
    4545 
    46 // call back which cretes a deformation field to oscilate the model. 
     46// call back which creates a deformation field to oscillate the model. 
    4747class MyGeometryCallback :  
    4848    public osg::Drawable::UpdateCallback,  
     
    324324        float zfar  = 3.0f*bs.radius(); 
    325325 
    326         // 2:1 aspect ratio as per flag geomtry below. 
     326        // 2:1 aspect ratio as per flag geometry below. 
    327327        float proj_top   = 0.25f*znear; 
    328328        float proj_right = 0.5f*znear; 
     
    361361            // Rather than attach the texture directly to illustrate the texture's ability to 
    362362            // detect an image update and to subload the image onto the texture.  You needn't 
    363             // do this when using an Image for copying to, as a seperate camera->attach(..) 
    364             // would suffice as well, but we'll do it the long way round here just for demonstation 
     363            // do this when using an Image for copying to, as a separate camera->attach(..) 
     364            // would suffice as well, but we'll do it the long way round here just for demonstration 
    365365            // purposes (long way round meaning we'll need to copy image to main memory, then 
    366366            // copy it back to the graphics card to the texture in one frame). 
    367             // The long way round allows us to mannually modify the copied image via the callback 
     367            // The long way round allows us to manually modify the copied image via the callback 
    368368            // and then let this modified image by reloaded back. 
    369369            texture->setImage(0, image); 
     
    398398    arguments.getApplicationUsage()->addCommandLineOption("--fb","Use FrameBuffer for render to texture."); 
    399399    arguments.getApplicationUsage()->addCommandLineOption("--pbuffer","Use Pixel Buffer for render to texture, where supported."); 
    400     arguments.getApplicationUsage()->addCommandLineOption("--window","Use a seperate Window for render to texture."); 
     400    arguments.getApplicationUsage()->addCommandLineOption("--window","Use a separate Window for render to texture."); 
    401401    arguments.getApplicationUsage()->addCommandLineOption("--width","Set the width of the render to texture."); 
    402402    arguments.getApplicationUsage()->addCommandLineOption("--height","Set the height of the render to texture."); 
    403403    arguments.getApplicationUsage()->addCommandLineOption("--image","Render to an image, then apply a post draw callback to it, and use this image to update a texture."); 
    404     arguments.getApplicationUsage()->addCommandLineOption("--texture-rectangle","Use osg::TextureRectangle for doing the render to texure to."); 
     404    arguments.getApplicationUsage()->addCommandLineOption("--texture-rectangle","Use osg::TextureRectangle for doing the render to texture to."); 
    405405    
    406406    // construct the viewer.