Changeset 153 for trunk/VUT/work


Ignore:
Timestamp:
07/04/05 03:15:53 (20 years ago)
Author:
mattausch
Message:

added item buffer queries

Location:
trunk/VUT/work
Files:
12 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/TestCullingTerrain/TerrainFrameListener.cpp

    r151 r153  
    365365        VisibilityTerrainSceneManager *sm = dynamic_cast<VisibilityTerrainSceneManager *>(mSceneMgr); 
    366366 
    367         //mQueryManager = new ItemBufferQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0)); 
    368         mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0)); 
     367        mQueryManager = new ItemBufferQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0)); 
     368        //mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0)); 
    369369 
    370370        sm->GetVisibilityManager()->SetQueryManager(mQueryManager); 
     
    443443                mQueryTypeInfo->setCaption(str); 
    444444 
    445                 sprintf(str, ": %d", (int)visibleNodes.size());  
     445                sprintf(str, ": %d", (int)nodesSize);  
    446446                mQueryVisibleNodesInfo->setCaption(str); 
    447447         
    448                 sprintf(str,": %d", (int)visibleGeometry.size());  
     448                sprintf(str,": %d", (int)geomSize);  
    449449                mQueryVisibleGeometryInfo->setCaption(str); 
    450450                 
  • trunk/VUT/work/ogre_changes/OgreMain/include/OgreRenderable.h

    r131 r153  
    5353    { 
    5454    public: 
    55                 Renderable() {mId = 0;} 
     55                Renderable() {mId = -1;} 
    5656        /** Virtual destructor needed as class has virtual methods. */ 
    5757        virtual ~Renderable() { } 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeNode.cpp

    r141 r153  
    170170void OctreeNode::getRenderOperation( RenderOperation& rend ) 
    171171{ 
    172         //Node::getRenderOperation(rend); 
     172#ifdef GTP_VISIBILITY_MODIFED_OGRE 
    173173        /*static SubMesh* pSubMesh = 0; 
    174174 
     
    180180        } 
    181181        pSubMesh->_getRenderOperation(rend);*/ 
     182 
     183        // HACK. render scaled box 
    182184        if (mWireBoundingBox == NULL)  
    183185        { 
     
    191193        mWireBoundingBox->getRenderOperation(rend); 
    192194 
     195#endif // GTP_VISIBILITY_MODIFIED_OGRE 
    193196 
    194197    /* TODO 
Note: See TracChangeset for help on using the changeset viewer.