|
// CFireRoutine.h: interface for the CFireRoutine class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_)
#define AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <Windows.h>
class CFireRoutine
{
public:
CFireRoutine();
virtual ~CFireRoutine();
// Functs (public)
void InitFire();
void ClrHotSpots();
void InitPallette();
void SetHotSpots();
void MakeLines();
void Render(DWORD* pVideoMemory,
int iwidth,
int iheight);
unsigned char Average(int x, int y);
// props
int m_iFlameHeight;
int m_iWidth;
int m_iHeight;
int m_iFireSource;//The y position for the lit spots
int m_iFireChance;
int m_iAvgFlameWidth;
int m_iAlpha;
COLORREF m_FireColors[4];
BYTE* m_pFireBits;
DWORD m_pPalletteBuffer[256];
long* m_pYIndexes;
};
#endif // !defined(AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.