LightFog.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:2k
- /******************************************************************************************************************
-
- 葛碘疙:
-
- 累己磊:
- 累己老:
-
- [老磊][荐沥磊] : 荐沥 郴侩
-
- *******************************************************************************************************************/
- #ifndef _CLIGHTFOG_H
- #define _CLIGHTFOG_H
- class CLightFog
- {
- public:
- CLightFog();
- ~CLightFog();
- protected:
- D3DLVERTEX m_avLight[(NUM_CNTY_LIGHTTILE+1)][(NUM_CNTX_LIGHTTILE+1)];
- D3DLVERTEX m_avSaveLight[(NUM_CNTY_LIGHTTILE+1)][(NUM_CNTX_LIGHTTILE+1)];
- WORD m_pwLightIndices[NUM_LIGHTTILE_INDICES];
- DWORD m_dwLightColor;
- public:
- VOID Init(DWORD dwLightColor);
- VOID ShowLightFog(WORD wScrnWidth = 400, WORD wScrnHeight =300);
- // 货肺 官诧 祸阑 m_avSaveLight俊 历厘矫挪促.
- VOID ChangeLightColor(DWORD dwColor);
- VOID ClearSavedLightColor();
- BOOL GetScreenPosToLightTile(INT nX, INT nY, INT* nTileX, INT* nTileY);
- BOOL SetLightRadiusWithRing(INT XLightPos, INT YLightPos, INT nSmallRadius,
- INT nSmallRed, INT nSmallGreen, INT nSmallBlue,
- INT nLargeRadius,
- INT nLargeRed, INT nLargeGreen, INT nLargeBlue);
- BOOL SetLightRadiusWithCircle(INT XLightPos, INT YLightPos, INT nRadius,
- INT nRedValue, INT nGreenValue, INT nBlueValue,
- FLOAT rDrakRate = 1.0f);
- BOOL SetLightRadiusWithElipse(INT XLightPos, INT YLightPos, INT nXRadius, INT nYRadius,
- INT nRedValue, INT nGreenValue, INT nBlueValue,
- FLOAT rDrakRate = 1.0f);
- };
- #endif // _CLIGHTFOG_H