📄 dpblend_sphere.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 + -