阅读:2384回复:2
【源码编译】V19圆心小地图
#ifdef __VCINEMASCOPEint m_nCinemaScopeCnt = -100;#endifHRESULT CNeuzApp::Render(){ _PROFILE("CNeuzApp::Render()"); if( m_bActive == FALSE ) return S_FALSE; // Clear the viewport m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, CWndBase::m_Theme.m_d3dcBackground, 1.0f, 0 ) ; CWndWorld* pWndWorld = (CWndWorld*)g_WndMng.GetWndBase( APP_WORLD ); if( pWndWorld ) pWndWorld ->ClearFlyTarget(); // oñÇට °ø°Y°¡′éÇÑ Å¸°ùμé ¸®½oÆ® áö¿öáü. //pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 90, 146, 222 ), 1.0f, 0 ) ; //m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 255, 255, 255 ), 1.0f, 0 ) ; //m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 0, 0, 0 ), 1.0f, 0 ) ; // Begin the scene if( g_Option.m_nShadow < 2 ) // 3ôà½/áß°£ ¸¸ ½|μμ¿ì ¸êà» ¸¸μç′ù. { _PROFILE("Make Shadow Map"); CHECK1(); void RenderShadowMap( LPDIRECT3DDEVICE9 pd3dDevice, CObj **pList, int nMax ); if( g_pPlayer ) { CWorld *pWorld = g_pPlayer->GetWorld(); if( pWorld ) {#if __VER >= 13 // __HOUSING#if __VER >= 14 // __BS_FIX_SHADOW_ONOBJECT if( pWorld->GetID() != WI_WORLD_MINIROOM ) // 7.28±aè1¿äû : ÇÏ¿ì¡ ±×¸2àú á|°Å RenderShadowMap( m_pd3dDevice, pWorld->m_aobjCull, pWorld->m_nObjCullSize );#else if(pWorld->GetID() != WI_WORLD_MINIROOM && pWorld->GetID() != WI_INSTANCE_OMINOUS && pWorld->GetID() != WI_INSTANCE_OMINOUS_1) RenderShadowMap( m_pd3dDevice, pWorld->m_aobjCull, pWorld->m_nObjCullSize );#endif //__VER >= 14#endif //__VER >= 13 } } CHECK2( " Render ShadowMap" ); } // »Ç»t½Ã ¿é¼Çàì ÄÑá®àÖà¸¸é ·»′õŸ°ù¿¡ °Ôàóè-¸éà» ·»′õÇÔ. if( g_Option.m_nBloom ) { _PROFILE("Make Bloom"); CWorld* pWorld = g_WorldMng.Get(); if( pWorld && g_pPlayer && g_Glare.m_bActive ) { pWorld->Projection( m_pd3dDevice, g_Glare.m_Src.m_nWidth, g_Glare.m_Src.m_nHeight ); pWorld->SetCamera( &m_camera ); g_Glare.m_Src.BeginScene(); DWORD dwColor = CWorld::GetDiffuseColor(); m_2DRender.m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, dwColor /*D3DCOLOR_ARGB( 255, 255, 255, 255 )*/, 1.0f, 0 ) ; pWorld->RenderBase( m_pd3dDevice, g_WndMng.m_Theme.m_pFontWorld ); // áöÇü°ú ¿àoêá§Æ®¸| 1츮 ·»′õ¸μ ÇØμò. g_Glare.m_Src.EndScene(); g_Glare.Blur( m_pd3dDevice ); // m_Src¸| m_Surface[0]¿¡ oí·ˉÇÔ. } } CHECK1();#ifdef __NEW_THEME CWndNavigator* pWndNavigator = (CWndNavigator*)g_WndMng.GetWndBase(APP_NAVIGATOR); if(pWndNavigator) { pWndNavigator->Render(m_pd3dDevice); }#endif if(SUCCEEDED(m_pd3dDevice->BeginScene())) { _PROFILE("BeginScene"); CHECK2( "Begin" );
所需要的素材文件V19客户端大部分都是有的。如果没有自己找。。 |
|
100% |
沙发#
发布于:2014-01-06 09:34
用户被禁言,该主题自动屏蔽! |
|
板凳#
发布于:2015-04-10 19:49
吊到看不懂
|
|