]>
Dogcows Code - chaz/rasterize/blob - main.c
3 * CS5600 University of Utah
5 * mcgarvey@eng.utah.edu
15 * Read a scene file, construct the scene object, draw the scene to a pixmap,
16 * and export the pixmap in PPM and BMP formats.
18 int main(int argc
, char* argv
[])
20 scene_t
* scene
= scene_alloc("scene.u2d");
22 fprintf(stderr
, "An error prevented the scene from loading. Aborting!\n");
26 pixmap_t
* raster
= scene_render(scene
);
29 pixmap_export_ppm(raster
, "scene.ppm");
30 pixmap_export_bmp(raster
, "scene.bmp");
32 pixmap_destroy(raster
);
35 int _blocks
= mem_blocks();
37 fprintf(stderr
, " *** Leaked %d blocks of memory! ***\n", _blocks
);
This page took 0.032601 seconds and 4 git commands to generate.