dpblend_sphere.h
来自「<B>《Realtime Rendering》的随书源代码」· C头文件 代码 · 共 35 行
H
35 行
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 + =
减小字号Ctrl + -
显示快捷键?