270 {
271
272
273
274 const float s = 2.0f * (float) M_PI / (float) slices;
275 const float t = M_PI / (float) stacks;
276 const float theta = -M_PI;
277 const float phi = -M_PI / 2.0f;
278
279 unsigned int pos = 0;
280
281 for (unsigned int m = 1; m <= slices; m++) {
282 for (unsigned int n = 1; n <= stacks; n++) {
283 float i = (float) m;
284 float j = (float) n;
285
289
293 }
294 }
295}
static void model_sphere_vertex(const float r, const float theta, const float phi, unsigned int *pos, float *points)
Definition: generator.cpp:253