📄 exp_sphere.h
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -