Show
Ignore:
Timestamp:
02/23/11 13:13:43 (4 years ago)
Author:
robert
Message:

Changed the default number of components for a RGB to 4 so it appears as an RGBA

Files:
1 modified

Legend:

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

    r12183 r12184  
    492492    } 
    493493 
     494    if (max_components==3) 
     495    { 
     496        // change RGB to a RGBA 
     497        max_components = 4; 
     498    } 
     499 
    494500    if (numComponentsDesired!=0) max_components = numComponentsDesired; 
    495501 
     
    10821088 
    10831089        float zMultiplier=1.0f; 
    1084         while (arguments.read("--zMultiplier",zMultiplier)) { OSG_NOTICE<<"Warning: --yMultiplier option no longer supported."<<std::endl; invalidOption = true; } 
     1090        while (arguments.read("--zMultiplier",zMultiplier)) { OSG_NOTICE<<"Warning: --zMultiplier option no longer supported."<<std::endl; invalidOption = true; } 
    10851091 
    10861092        if (invalidOption) return 1;