⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 infotextfx.h

📁 吃豆子游戏源码
💻 H
字号:
/**
 *	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_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -