38 static char THIS_FILE[] = __FILE__;
41 static ModelView* views[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
46 :
CameraView(c, 0, s), view_mode(100), fill_mode(FILL_WIRE),
47 grid(0), az(-
PI/4), el(
PI/4)
67 double x = 1e3 * sin(
az) * cos(
el);
68 double y = 1e3 * cos(
az) * cos(
el);
69 double z = 1e3 * sin(
el);
112 if (mode >= 0 && mode < 8)
185 const double limit = (0.43 *
PI);
188 double len = pos.
length();
201 else if (
el < -limit)
204 double x = len * sin(az) * cos(
el);
205 double y = len * cos(az) * cos(
el);
206 double z = len * sin(
el);
236 while (++light_iter) {
259 const char* title =
"ModelView";
263 case VIEW_SIDE: title =
"Right Side";
break;
267 int len = strlen(title);
291 if (!strcmp(g->
Name(),
"Selector")) {
298 else if (!strcmp(g->
Name(),
"Selection")) {