- Timestamp:
- May 3, 2010, 12:27:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fps/src/libraries/tools/bsp/OgreFramework.cpp
r6820 r6825 108 108 m_nMaxEntity=0 ; 109 109 m_pEntityInfo=NULL ; 110 m_nMaxVisibleEntity= NULL;110 m_nMaxVisibleEntity=0 ; 111 111 m_pVisibleEntity=NULL ; 112 m_nMaxFrustumEntity= NULL;112 m_nMaxFrustumEntity=0 ; 113 113 m_pFrustumEntity=NULL ; 114 114 … … 241 241 void OgreFramework::initOgre(Ogre::String wndTitle, OIS::KeyListener *pKeyListener, OIS::MouseListener *pMouseListener) 242 242 { 243 Ogre::LogManager* logMgr = new Ogre::LogManager();243 // Ogre::LogManager* logMgr = new Ogre::LogManager(); 244 244 245 245 m_pLog = Ogre::LogManager::getSingleton().createLog("OgreLogfile.log", true, true, false); … … 971 971 int nVisEnt=0 ; 972 972 int nEntity=0 ; 973 int nMaxEntity=0 ;973 // int nMaxEntity=0 ; 974 974 int nSubMesh=0 ; 975 975 int nMaxSubMesh=0 ; … … 1798 1798 // now we do a few rounds of ping-pong bluring of A to B, B to A. 1799 1799 int nMaxBlur=4 ; 1800 int nLastBlur=nMaxBlur-1 ;1800 // int nLastBlur=nMaxBlur-1 ; 1801 1801 int nBlurLoop=0 ; 1802 1802 … … 2282 2282 m_TranslateVector = Vector3::ZERO; 2283 2283 2284 char chMessage[1024] ;2284 // char chMessage[1024] ; 2285 2285 //sprintf(chMessage, "winmessage %u, %u, %u", m_pRenderWnd->m_Test_uMsg, (UINT)m_pRenderWnd->m_Test_wParam, (UINT)m_pRenderWnd->m_Test_lParam) ; 2286 2286 //m_pLog->logMessage(chMessage) ; … … 2417 2417 Ogre::Vector3 Pos ; 2418 2418 Pos=m_pCamera->getPosition() ; 2419 intnCamX=Pos.x ;2420 intnCamY=Pos.y ;2421 intnCamZ=Pos.z ;2419 Ogre::Real nCamX=Pos.x ; 2420 Ogre::Real nCamY=Pos.y ; 2421 Ogre::Real nCamZ=Pos.z ; 2422 2422 2423 2423 … … 2999 2999 // reattach all entity scenenodes. 3000 3000 int nLoop=0 ; 3001 int nSubMesh=0 ;3002 int nMaxSubMesh=0 ;3001 // int nSubMesh=0 ; 3002 // int nMaxSubMesh=0 ; 3003 3003 for(nLoop=0 ; nLoop<m_nMaxEntity ; nLoop++) 3004 3004 m_pSceneMgr->getRootSceneNode()->addChild(m_pEntityInfo[nLoop].pMasterNode) ; … … 3486 3486 3487 3487 int nTriangle=0 ; 3488 int nStart=0 ;3488 // int nStart=0 ; 3489 3489 int nEnd=0 ; 3490 3490 int nMaterial=0 ; … … 3553 3553 float flMaxY=0.0f ; 3554 3554 float flMaxZ=0.0f ; 3555 float flMidX=0.0f ;3556 float flMidY=0.0f ;3557 float flMidZ=0.0f ;3555 // float flMidX=0.0f ; 3556 // float flMidY=0.0f ; 3557 // float flMidZ=0.0f ; 3558 3558 float flDisX=0.0f ; 3559 3559 float flDisY=0.0f ; … … 5629 5629 5630 5630 int nZone=0 ; 5631 int nZoneIndex=0 ;5631 // int nZoneIndex=0 ; 5632 5632 int nSubZone=0 ; 5633 int nSubZoneIndex=0 ;5633 // int nSubZoneIndex=0 ; 5634 5634 int nMaxSubZone=0 ; 5635 5635 int nPortal=0 ; 5636 int nPortalIndex=0 ;5636 // int nPortalIndex=0 ; 5637 5637 int nMaxPortal=0 ; 5638 int nMaxPortalZone=0 ;5639 int nPortalZone=0 ;5640 int nPortalZoneIndex=0 ;5641 int nMaxZone=0 ;5638 // int nMaxPortalZone=0 ; 5639 // int nPortalZone=0 ; 5640 // int nPortalZoneIndex=0 ; 5641 // int nMaxZone=0 ; 5642 5642 5643 5643 … … 5645 5645 int nLt=0 ; 5646 5646 5647 int nMaxSubLight=m_Q3Map->m_nSubLightMax ;5647 // int nMaxSubLight=m_Q3Map->m_nSubLightMax ; 5648 5648 int nSubLt=0 ; 5649 5649 … … 5891 5891 int nSubLight=0 ; 5892 5892 5893 int nLight=0;5893 // int nLight=0; 5894 5894 int nLightIndex=0 ; 5895 5895 … … 6048 6048 int nZone=0 ; 6049 6049 int nZoneIndex=0 ; 6050 int nVisible=0 ;6050 // int nVisible=0 ; 6051 6051 Ogre::AxisAlignedBox AABB ; 6052 6052 … … 6384 6384 int nLight=0 ; 6385 6385 int nLightIndex=0 ; 6386 int nLightVal=0 ;6386 // int nLightVal=0 ; 6387 6387 int nOpenPortals=0 ; 6388 int nZoneHasOpenPortals=0 ;6388 // int nZoneHasOpenPortals=0 ; 6389 6389 int nPortal=0 ; 6390 6390 int nPortalIndex=0 ; 6391 6391 int nMaxPortal=0 ; 6392 int nZone=0 ;6393 int nMaxZone=0 ;6394 int nZoneIndex=0 ;6392 // int nZone=0 ; 6393 // int nMaxZone=0 ; 6394 // int nZoneIndex=0 ; 6395 6395 6396 6396 int nSubLightMax=0 ; 6397 int nSubLightIndex=0 ;6397 // int nSubLightIndex=0 ; 6398 6398 int nSubLight=0 ; 6399 6399 int nSubLightStart=0 ; … … 6401 6401 int nPortalLightMax=0 ; 6402 6402 int nPortalLightIndex=0 ; 6403 int nPortalLight=0 ;6403 // int nPortalLight=0 ; 6404 6404 6405 6405 int nCentreZone=0 ; … … 6495 6495 6496 6496 int nSubLightMax=0 ; 6497 int nSubLightIndex=0 ;6497 // int nSubLightIndex=0 ; 6498 6498 int nSubLight=0 ; 6499 6499 int nSubLightStart=0 ; … … 6586 6586 int nLight=0; 6587 6587 int nLightVal=0 ; 6588 int nLightIndex=0 ;6589 int nMaxLight=0 ;6588 // int nLightIndex=0 ; 6589 // int nMaxLight=0 ; 6590 6590 6591 6591 int nSubLight=0 ; 6592 6592 int nSubLightIndex=0 ; 6593 6593 int nMaxSubLight=0 ; 6594 int nSubLightVal=0 ;6594 // int nSubLightVal=0 ; 6595 6595 6596 6596 … … 6872 6872 void OgreFramework::initLight() 6873 6873 { 6874 char chMessage[1024] ;6874 // char chMessage[1024] ; 6875 6875 6876 6876 // these lights only have placeholder settings to begin with, since they get moved around and reused thoughout the level. … … 6908 6908 // make sure the config is a string 6909 6909 int nConfigPos=-1 ; 6910 int nPos=0 ;6910 // int nPos=0 ; 6911 6911 int nKeyPos=0 ; 6912 6912 int nValuePos=0 ; … … 6914 6914 char chKey[KVSIZE] ; 6915 6915 char chValue[KVSIZE] ; 6916 float flValue=0.0f;6916 int nValue=0 ; 6917 6917 6918 6918 … … 6967 6967 6968 6968 // convert value string to a float 6969 flValue=atof(chValue) ;6969 nValue=atoi(chValue) ; 6970 6970 6971 6971 // assign that value 6972 if(strcmp("r_shadowmapsize", chKey)==0) { m_nShadowMapSize= flValue ; if(m_nShadowMapSize<2) m_nShadowMapSize=2 ; }6973 if(strcmp("r_shadowrgbsize", chKey)==0) { m_nShadowRGBSize= flValue ; if(m_nShadowRGBSize<2) m_nShadowRGBSize=2 ; }6974 if(strcmp("r_colouredshadow", chKey)==0) { m_nColouredShadow= flValue ; }6975 if(strcmp("r_renderhdr", chKey)==0) { m_nRenderHDR= flValue ; }6976 if(strcmp("r_maxgpuquery", chKey)==0) { m_nMaxGPUQuery= flValue ; if(m_nMaxGPUQuery<0) m_nMaxGPUQuery=0 ; if(m_nMaxGPUQuery>MAXGPUQUERY) m_nMaxGPUQuery=MAXGPUQUERY ; }6977 6978 //sprintf(m_chBug, "Key: %s, Value: % f", chKey, flValue) ;6972 if(strcmp("r_shadowmapsize", chKey)==0) { m_nShadowMapSize=nValue ; if(m_nShadowMapSize<2) m_nShadowMapSize=2 ; } 6973 if(strcmp("r_shadowrgbsize", chKey)==0) { m_nShadowRGBSize=nValue ; if(m_nShadowRGBSize<2) m_nShadowRGBSize=2 ; } 6974 if(strcmp("r_colouredshadow", chKey)==0) { m_nColouredShadow=nValue ; } 6975 if(strcmp("r_renderhdr", chKey)==0) { m_nRenderHDR=nValue ; } 6976 if(strcmp("r_maxgpuquery", chKey)==0) { m_nMaxGPUQuery=nValue ; if(m_nMaxGPUQuery<0) m_nMaxGPUQuery=0 ; if(m_nMaxGPUQuery>MAXGPUQUERY) m_nMaxGPUQuery=MAXGPUQUERY ; } 6977 6978 //sprintf(m_chBug, "Key: %s, Value: %i", chKey, nValue) ; 6979 6979 //m_pLog->logMessage(m_chBug); 6980 6980
Note: See TracChangeset
for help on using the changeset viewer.