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

📄 dpblend_sphere.h

📁 是3D游戏一书中所讲的游戏引擎fly3D 包括fly3D引擎的源码及应用此引擎开发出来的游戏实例 有fly3D引擎的教程,易于step by step跟学
💻 H
字号:
class dpblend_sphere : public bsp_object
{
public:
	dpblend_sphere() { type=TYPE_DPBLEND_SPHERE; lightdist=1e10; };

	vector ambient,diffuse;
	int pxlsize;
	int normalmap;
	int mode;

	vector lightpos;
	vector lightcolor;
	float lightradius;
	float lightdist;

	void build_normalmap(char *file);
	void init_combiners();

	void init();
	int step(int dt);
	void draw();
	int message(vector& p,float rad,int msg,int param,void *data);
	int get_custom_param_desc(int i,param_desc *pd);
	bsp_object *clone();
};

class dpblend_sphere_desc : public class_desc
{
public:
	void *create() { return new dpblend_sphere; };
	char *get_name() { return "dpblend_sphere"; };
	int get_type() { return TYPE_DPBLEND_SPHERE; };
};

⌨️ 快捷键说明

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