exp_sphere.h
来自「是3D游戏一书中所讲的游戏引擎fly3D 包括fly3D引擎的源码及应用此引擎」· C头文件 代码 · 共 36 行
H
36 行
class exp_sphere : public bsp_object
{
public:
vector color;
float curradius;
stripfan_mesh *sfmesh;
void init();
int step(int dt);
void draw();
int get_custom_param_desc(int i,param_desc *pd);
int message(vector& p,float rad,int msg,int param,void *data);
bsp_object *clone()
{
exp_sphere *tmp=new exp_sphere;
*tmp=*this;
tmp->source=this;
return tmp;
}
exp_sphere()
{ type=TYPE_EXP_SPHERE; sfmesh=0; };
~exp_sphere()
{
if (source==0 && sfmesh) delete sfmesh;
};
};
class exp_sphere_desc : public class_desc
{
public:
void *create() { return new exp_sphere; };
char *get_name() { return "expsphere"; };
int get_type() { return TYPE_EXP_SPHERE; };
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?