Changeset 31


Ignore:
Timestamp:
03/24/05 18:05:48 (20 years ago)
Author:
gametools
Message:
 
Location:
trunk/VUT/OcclusionCullingSceneManager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/OcclusionCullingSceneManager/TestCulling/TestCullingApplication.cpp

    r30 r31  
    213213{ 
    214214        unsigned int opt = 0; 
    215          
    216         mSceneMgr->getOption("Threshold", &opt); mThresholdInfo->setCaption(": " + opt); 
    217         mSceneMgr->getOption("NumFrustumCulledNodes", &opt); mFrustumCulledNodesInfo->setCaption(": " + opt); 
    218         mSceneMgr->getOption("NumQueryCulledNodes", &opt); mQueryCulledNodesInfo->setCaption(": " + opt); 
    219         mSceneMgr->getOption("NumTraversedNodes", &opt); mTraversedNodesInfo->setCaption(": " + opt); 
     215        char str[100]; 
     216        mSceneMgr->getOption("Threshold", &opt); sprintf(str,"%d",opt);mThresholdInfo->setCaption(str); 
     217        mSceneMgr->getOption("NumFrustumCulledNodes", &opt); sprintf(str,"%d",opt); mFrustumCulledNodesInfo->setCaption(str); 
     218        mSceneMgr->getOption("NumQueryCulledNodes", &opt); sprintf(str,"%d",opt);mQueryCulledNodesInfo->setCaption(str); 
     219        mSceneMgr->getOption("NumTraversedNodes", &opt); sprintf(str,"%d",opt);mTraversedNodesInfo->setCaption(str); 
    220220} 
    221221//----------------------------------------------------------------------- 
  • trunk/VUT/OcclusionCullingSceneManager/src/OgreOcclusionCullingSceneManager.cpp

    r30 r31  
    378378                if ( key == "Threshold" ) 
    379379                { 
    380                         * static_cast < int * > ( val ) = mVisibilityThreshold; 
     380                        * static_cast < unsigned int * > ( val ) = mVisibilityThreshold; 
    381381                        return true; 
    382382                } 
Note: See TracChangeset for help on using the changeset viewer.