]> Dogcows Code - chaz/rasterize/blob - scene.h
add scene lighting constructs; real stdin support
[chaz/rasterize] / scene.h
1
2 /*
3 * CS5600 University of Utah
4 * Charles McGarvey
5 * mcgarvey@eng.utah.edu
6 */
7
8 #ifndef _SCENE_H_
9 #define _SCENE_H_
10
11 #include "raster.h"
12
13
14 /*
15 * A scene class.
16 */
17 typedef struct scene scene_t;
18
19 /*
20 * Allocate a scene by reading in data from a file.
21 */
22 scene_t* scene_alloc(FILE* file);
23
24 /*
25 * Destroy a scene.
26 */
27 void scene_destroy(scene_t* s);
28
29
30 /*
31 * Render a scene to an in-memory raster. The caller takes ownership of the
32 * returned object and must destroy it when it is no longer needed.
33 */
34 raster_t* scene_render(scene_t* s);
35
36
37 #endif // _SCENE_H_
38
This page took 0.03875 seconds and 4 git commands to generate.