?? cfire.h
字號(hào):
#include <windows.h>
#define seedMapWidth 640
#define seedMapHeight 480
#define coolMapWidth 640
#define coolMapHeight 480
#define lightLevel 256
class CFire
{
private:
BOOL error;
int imgWidth,imgHeight;
unsigned char *seedMap;
unsigned char *coolMap;
WORD *lightMap;
unsigned char *lightBuf1;
unsigned char *lightBuf2;
private:
void generateSeed();
void cooling();
public:
public:
CFire(int w,int h);
~CFire();
BOOL operator!();
void clear();
BOOL loadSeedMap(LPCSTR fileName);
BOOL loadCoolMap(LPCSTR fileName);
BOOL loadLightMap(LPCSTR fileName);
void render(WORD *p);
};
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -