Changeset 166 for trunk


Ignore:
Timestamp:
07/11/05 17:47:47 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/src/OgreItemBufferQueryManager.cpp

    r164 r166  
    8383                id += buf[idx + 2]; 
    8484 
    85                 std::stringstream d; d << "myid: " << (int)buf[idx] << " " << (int)buf[idx + 1] << " " << (int)buf[idx + 2]; 
    86                 LogManager::getSingleton().logMessage(d.str()); 
     85                //std::stringstream d; d << "myid: " << (int)buf[idx] << " " << (int)buf[idx + 1] << " " << (int)buf[idx + 2]; 
     86                //LogManager::getSingleton().logMessage(d.str()); 
    8787 
    8888                // if valid id <= add visibility (id values start at 1) 
     
    157157                                 
    158158                        subEnt->setId(id); 
    159                         subEnt->setId((41 << 16) + (4 << 8) + 60); 
     159                        //subEnt->setId((41 << 16) + (4 << 8) + 60); 
    160160                        //subEnt->setId((2 << 16) + (4 << 8) + 60); 
    161161                } 
  • trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp

    r164 r166  
    752752        { 
    753753                ent->getSubEntity(i)->setId(mCurrentEntityId); 
    754                 ent->getSubEntity(i)->setId((41 << 16) + (4 << 8) + 60); 
     754                //ent->getSubEntity(i)->setId((41 << 16) + (4 << 8) + 60); 
    755755                //ent->getSubEntity(i)->setId((2 << 16) + (4 << 8) + 60); 
    756756        } 
  • trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/src/OgreOctreeNode.cpp

    r153 r166  
    170170void OctreeNode::getRenderOperation( RenderOperation& rend ) 
    171171{ 
    172 #ifdef GTP_VISIBILITY_MODIFED_OGRE 
     172#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
    173173        /*static SubMesh* pSubMesh = 0; 
    174174 
  • trunk/VUT/work/ogre_changes/RenderSystems/Direct3D9/src/OgreD3D9RenderWindow.cpp

    r153 r166  
    365365                md3dpp.BackBufferWidth                  = mWidth; 
    366366                md3dpp.BackBufferHeight                 = mHeight; 
    367  
     367#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
     368        md3dpp.Flags |= D3DPRESENTFLAG_LOCKABLE_BACKBUFFER; 
     369#endif 
    368370                if (mVSync) 
    369371                        md3dpp.PresentationInterval = D3DPRESENT_INTERVAL_ONE; 
     
    951953                } 
    952954 
    953                 if (FAILED(hr = mpD3DDevice->GetFrontBufferData(0, pTempSurf))) 
     955                //if (FAILED(hr = mpD3DDevice->GetFrontBufferData(0, pTempSurf))) 
     956                if (FAILED(hr = mpD3DDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pTempSurf))) 
    954957                { 
    955958                        SAFE_RELEASE(pTempSurf); 
    956                         OGRE_EXCEPT(hr, "Can't get front buffer!", "D3D9RenderWindow::writeContentsToFile"); 
     959                        OGRE_EXCEPT(hr, "Can't get back buffer!", "D3D9RenderWindow::getBufferContents"); 
    957960                } 
    958961 
     
    10551058                } 
    10561059 
     1060                pTempSurf->UnlockRect(); 
    10571061                SAFE_RELEASE(pTempSurf); 
    10581062                SAFE_RELEASE(pSurf); 
Note: See TracChangeset for help on using the changeset viewer.