]> Dogcows Code - chaz/rasterize/blob - scene.h
initial commit
[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 "pixmap.h"
12
13
14 /*
15 * A scene.
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(const char* filename);
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 pixmap. The caller takes ownership of the
32 * returned object and must destroy it when it is no longer needed.
33 */
34 pixmap_t* scene_render(scene_t* s);
35
36
37 #endif // __SCENE_H__
38
This page took 0.030793 seconds and 4 git commands to generate.