?? infotextfx.h
字號(hào):
/**
* File : InfoTextFX.h
* Author : Kevin Lynx
* Date : 2007/8/3
*/
#ifndef INFO_TEXT_FX_H_
#define INFO_TEXT_FX_H_
/**
* InfoTextFX
*
* it will make an effect that render a texture
* on screen and the texture will bicome bigger and bigger
*/
class InfoTextFX
{
public:
/**
* Constructor
*
*/
InfoTextFX();
/**
* Destructor
*
*/
~InfoTextFX();
/**
* init
*
* @param texture a texture used in this effect
*/
void init( IrrlichtDevice *device, ITexture *texture );
/**
* reset
*
* reset the effect in order to restart later
*/
void reset();
/**
* update
*
* @return when the effect is finished , return true
*/
bool update( float dt );
/**
* render
*
*/
void render();
private:
IrrlichtDevice *mDevice;
ITexture *mTexture;
rect<s32> mSrcRect;
f32 mLeftX;
f32 mUpY;
f32 mEndLeftX;
position2d<s32> mCenterPos;
f32 mSpeed;
};
#endif //end INFO_TEXT_FX_H_
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -