Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2010, 12:27:45 AM (14 years ago)
Author:
landauf
Message:

fixed warnings in BZN bsp renderer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fps/src/libraries/tools/bsp/OgreFramework.cpp

    r6820 r6825  
    108108        m_nMaxEntity=0 ;
    109109        m_pEntityInfo=NULL ;
    110         m_nMaxVisibleEntity=NULL ;
     110        m_nMaxVisibleEntity=0 ;
    111111        m_pVisibleEntity=NULL ;
    112         m_nMaxFrustumEntity=NULL ;
     112        m_nMaxFrustumEntity=0 ;
    113113        m_pFrustumEntity=NULL ;
    114114
     
    241241void OgreFramework::initOgre(Ogre::String wndTitle, OIS::KeyListener *pKeyListener, OIS::MouseListener *pMouseListener)
    242242{
    243         Ogre::LogManager* logMgr = new Ogre::LogManager();
     243//      Ogre::LogManager* logMgr = new Ogre::LogManager();
    244244       
    245245        m_pLog = Ogre::LogManager::getSingleton().createLog("OgreLogfile.log", true, true, false);
     
    971971        int nVisEnt=0 ;
    972972        int nEntity=0 ;
    973         int nMaxEntity=0 ;
     973//      int nMaxEntity=0 ;
    974974        int nSubMesh=0 ;
    975975        int nMaxSubMesh=0 ;
     
    17981798                // now we do a few rounds of ping-pong bluring of A to B, B to A.
    17991799                int nMaxBlur=4 ;
    1800                 int nLastBlur=nMaxBlur-1 ;
     1800//              int nLastBlur=nMaxBlur-1 ;
    18011801                int nBlurLoop=0 ;
    18021802
     
    22822282        m_TranslateVector = Vector3::ZERO;
    22832283
    2284         char chMessage[1024] ;
     2284//      char chMessage[1024] ;
    22852285        //sprintf(chMessage, "winmessage %u, %u, %u", m_pRenderWnd->m_Test_uMsg, (UINT)m_pRenderWnd->m_Test_wParam, (UINT)m_pRenderWnd->m_Test_lParam) ;
    22862286        //m_pLog->logMessage(chMessage) ;
     
    24172417        Ogre::Vector3 Pos ;
    24182418        Pos=m_pCamera->getPosition() ;
    2419         int nCamX=Pos.x ;
    2420         int nCamY=Pos.y ;
    2421         int nCamZ=Pos.z ;
     2419        Ogre::Real nCamX=Pos.x ;
     2420        Ogre::Real nCamY=Pos.y ;
     2421        Ogre::Real nCamZ=Pos.z ;
    24222422
    24232423
     
    29992999                // reattach all entity scenenodes.
    30003000                int nLoop=0 ;
    3001                 int nSubMesh=0 ;
    3002                 int nMaxSubMesh=0 ;
     3001//              int nSubMesh=0 ;
     3002//              int nMaxSubMesh=0 ;
    30033003                for(nLoop=0 ; nLoop<m_nMaxEntity ; nLoop++)
    30043004                        m_pSceneMgr->getRootSceneNode()->addChild(m_pEntityInfo[nLoop].pMasterNode) ;
     
    34863486
    34873487        int nTriangle=0 ;
    3488         int nStart=0 ;
     3488//      int nStart=0 ;
    34893489        int nEnd=0 ;
    34903490        int nMaterial=0 ;
     
    35533553        float flMaxY=0.0f ;
    35543554        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 ;
    35583558        float flDisX=0.0f ;
    35593559        float flDisY=0.0f ;
     
    56295629       
    56305630        int nZone=0 ;
    5631         int nZoneIndex=0 ;
     5631//      int nZoneIndex=0 ;
    56325632        int nSubZone=0 ;
    5633         int nSubZoneIndex=0 ;
     5633//      int nSubZoneIndex=0 ;
    56345634        int nMaxSubZone=0 ;
    56355635        int nPortal=0 ;
    5636         int nPortalIndex=0 ;
     5636//      int nPortalIndex=0 ;
    56375637        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 ;
    56425642       
    56435643
     
    56455645        int nLt=0 ;
    56465646
    5647         int nMaxSubLight=m_Q3Map->m_nSubLightMax ;
     5647//      int nMaxSubLight=m_Q3Map->m_nSubLightMax ;
    56485648        int nSubLt=0 ;
    56495649       
     
    58915891        int nSubLight=0 ;
    58925892
    5893         int nLight=0;
     5893//      int nLight=0;
    58945894        int nLightIndex=0 ;
    58955895
     
    60486048        int nZone=0 ;
    60496049        int nZoneIndex=0 ;
    6050         int nVisible=0 ;
     6050//      int nVisible=0 ;
    60516051        Ogre::AxisAlignedBox AABB ;
    60526052
     
    63846384        int nLight=0 ;
    63856385        int nLightIndex=0 ;
    6386         int nLightVal=0 ;
     6386//      int nLightVal=0 ;
    63876387        int nOpenPortals=0 ;
    6388         int nZoneHasOpenPortals=0 ;
     6388//      int nZoneHasOpenPortals=0 ;
    63896389        int nPortal=0 ;
    63906390        int nPortalIndex=0 ;
    63916391        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 ;
    63956395
    63966396        int nSubLightMax=0 ;
    6397         int nSubLightIndex=0 ;
     6397//      int nSubLightIndex=0 ;
    63986398        int nSubLight=0 ;
    63996399        int nSubLightStart=0 ;
     
    64016401        int nPortalLightMax=0 ;
    64026402        int nPortalLightIndex=0 ;
    6403         int nPortalLight=0 ;
     6403//      int nPortalLight=0 ;
    64046404
    64056405        int nCentreZone=0 ;
     
    64956495
    64966496        int nSubLightMax=0 ;
    6497         int nSubLightIndex=0 ;
     6497//      int nSubLightIndex=0 ;
    64986498        int nSubLight=0 ;
    64996499        int nSubLightStart=0 ;
     
    65866586        int nLight=0;
    65876587        int nLightVal=0 ;
    6588         int nLightIndex=0 ;
    6589         int nMaxLight=0 ;
     6588//      int nLightIndex=0 ;
     6589//      int nMaxLight=0 ;
    65906590
    65916591        int nSubLight=0 ;
    65926592        int nSubLightIndex=0 ;
    65936593        int nMaxSubLight=0 ;
    6594         int nSubLightVal=0 ;
     6594//      int nSubLightVal=0 ;
    65956595
    65966596       
     
    68726872void OgreFramework::initLight()
    68736873{
    6874         char chMessage[1024] ;
     6874//      char chMessage[1024] ;
    68756875
    68766876                // these lights only have placeholder settings to begin with, since they get moved around and reused thoughout the level.
     
    69086908        // make sure the config is a string
    69096909        int nConfigPos=-1 ;
    6910         int nPos=0 ;
     6910//      int nPos=0 ;
    69116911        int nKeyPos=0 ;
    69126912        int nValuePos=0 ;
     
    69146914        char chKey[KVSIZE] ;
    69156915        char chValue[KVSIZE] ;
    6916         float flValue=0.0f ;
     6916        int nValue=0 ;
    69176917
    69186918       
     
    69676967                               
    69686968                                        // convert value string to a float
    6969                                         flValue=atof(chValue) ;
     6969                                        nValue=atoi(chValue) ;
    69706970
    69716971                                        // 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) ;
    69796979                                        //m_pLog->logMessage(m_chBug);
    69806980                               
Note: See TracChangeset for help on using the changeset viewer.