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

📄 stars.h

📁 基于引擎基础上开发的三维游戏实例“恐怖之战”游戏者可以自爱三维地形上漫游
💻 H
字号:
// Stars.h: interface for the CStars class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STARS_H__49A36CEB_A981_443E_A031_373073A66214__INCLUDED_)
#define AFX_STARS_H__49A36CEB_A981_443E_A031_373073A66214__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "GameObj.h"

#ifdef _WIN32
#define drand48() (((float) rand())/((float) RAND_MAX))
#define srand48(x) (srand((x)))
#endif

class CStars : public CGameObj  
{
public:
	CStars(int starn=200);
	virtual ~CStars();

	vector<Point3f> S;
	vector<Point3f> C;
	int cc;
	int Draw();
	void Update(int t)
	{
		static int tt;
		tt+=t;
		if(tt>300)
		{
			tt-=300;
			cc=(cc+1)%10;
		}
	}
};

#endif // !defined(AFX_STARS_H__49A36CEB_A981_443E_A031_373073A66214__INCLUDED_)

⌨️ 快捷键说明

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