Show
Ignore:
Timestamp:
04/11/08 16:14:28 (7 years ago)
Author:
robert
Message:

Added --unit entry for controlling which texture unit the overlay works on.

Files:
1 modified

Legend:

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

    r7960 r8087  
    293293    while (arguments.read("--persp") || arguments.read("--perspective")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY; 
    294294 
     295    unsigned int overlayTextureUnit = 1; 
     296    while (arguments.read("--unit", overlayTextureUnit)) {} 
     297     
    295298    std::string pathfile; 
    296299    while (arguments.read("-p",pathfile)) {} 
     
    343346            overlayNode->setOverlaySubgraph(shapefile.get()); 
    344347            overlayNode->setOverlayTextureSizeHint(1024); 
     348            overlayNode->setOverlayTextureUnit(overlayTextureUnit); 
    345349 
    346350            // insert the OverlayNode between the coordinate system node and its children.