@@ 810,28 810,6 @@ createumbrella(Scene *s)
return umbrella;
}
-void
-build_scene(Scene *s)
-{
- Point3d a = Pt3d(10, 0, 0);
- Point3d b = Pt3d(-10, 0, 0);
- Point3d c = Pt3d(15, 5, 0);
- Point3d d = Pt3d(15, 5, 0);
- Mesh *ramp = addmesh(s);
- Mesh *lift = addmesh(s);
- addline(
- addline(ramp, a, c, 1), a, b, 1);
- extrude(
- extrude(ramp, 0, 15, 0, 1), 0, 0, -10, 1);
-
- addline(
- addline(lift, a, b, 2), d, c, 2);
-
- extrude(lift, 0, -10, 10, 3);
- createbox(s, 20, 20, 20, 1);
- createbox(s, 40, 20, 10, 1);
-}
-
int
main(void)
{
@@ 840,7 818,7 @@ main(void)
cam = Cm3d(180, 0, 0, 30);
if(!init())
return error("Init", "Failure");
- build_scene(&scn);
+ createumbrella(&scn);
redraw(pixels);
while(1) {
int tick = SDL_GetTicks();