Ignore:
Timestamp:
08/30/06 15:10:48 (18 years ago)
Author:
szydlowski
Message:

view cells load/use implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTree.cpp

    r1296 r1300  
    4141                                .addOpt("","savesceneto", ARGUMENT_REQUIRED) 
    4242                                .addOpt("f","faststart", ARGUMENT_NONE) 
    43                                 .addOpt("b","burnin", ARGUMENT_NONE); 
     43                                .addOpt("b","burnin", ARGUMENT_NONE) 
     44                                .addOpt("v","viewcells", ARGUMENT_OPTIONAL); 
    4445 
    4546 
     
    135136                        } 
    136137 
     138                        if (cmdparser.getOpt("v",tmp)) 
     139                        { 
     140                                if (tmp == "0") 
     141                                        options.mViewCells = KdTreeAppListener::VCM_OFF; 
     142                                else if (tmp == "" || tmp == "1") 
     143                                        options.mViewCells = KdTreeAppListener::VCM_ON; 
     144                                else if (tmp == "2") 
     145                                        options.mViewCells = KdTreeAppListener::VCM_FILTER; 
     146                                else 
     147                                { 
     148                                        MessageBox(NULL, ("Invalid argument for option --viewcells: " + tmp).c_str(), "Error", MB_OK | MB_ICONERROR ); 
     149                                        return -1; 
     150                                } 
     151 
     152                        } 
    137153                } 
    138154                catch (std::string s) 
     
    328344                        mTopCam->setPosition(Vector3(1232, 3990, -1477)); 
    329345 
    330                         // try loading view cells if specified and if scene manager supports it 
    331                         if (!mViewCells.empty()) 
    332                                 mSceneMgr->setOption("LoadViewCells", mViewCells.c_str()); 
     346                        //// try loading view cells if specified and if scene manager supports it 
     347                        //if (!mViewCells.empty()) 
     348                        //      mSceneMgr->setOption("LoadViewCells", mViewCells.c_str()); 
    333349 
    334350                        // sky box 
Note: See TracChangeset for help on using the changeset viewer.