77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
xtraverts += 8;
glEnable(GL_BLEND);
glEnable(GL_TEXTURE_2D);
glDepthMask(GL_TRUE);
}
const int MAXSPHERES = 50;
struct sphere {
OFVector3D o;
float size, max;
int type;
struct sphere *next;
};
static struct sphere spheres[MAXSPHERES], *slist = NULL, *sempty = NULL;
|
|
|
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
xtraverts += 8;
glEnable(GL_BLEND);
glEnable(GL_TEXTURE_2D);
glDepthMask(GL_TRUE);
}
#define MAXSPHERES 50
struct sphere {
OFVector3D o;
float size, max;
int type;
struct sphere *next;
};
static struct sphere spheres[MAXSPHERES], *slist = NULL, *sempty = NULL;
|