home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
WINTUT1.ZIP
/
Tut1
/
star.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-03-19
|
552b
|
29 lines
#define g_nMaxStars 1000
class CStar
{
public :
int m_nXPos, m_nYPos, m_nZPos;
int m_nOldX, m_nOldY;
}; // Details of each individual star
class CStarField
{
public :
CStarField();
~CStarField();
CStar *m_cStar[g_nMaxStars]; // Possible pointers to stars, don't allocate memory yet
BOOL SetUpStars(int nNumStars);
void SetDimensions (int nWidth, int nHeight);
void DrawStarField (HDC pDC);
void MoveStarField (int nXofs, int nYofs, int nZofs);
private :
int m_nTotStars;
int m_nCenterX, m_nCenterY;
};