X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scene.h;h=ae373d707dcb5b40ea6dadb4a1fea59988c7a5a8;hb=bc662e293c854e1bdc9d46e9a410fe220247e6d4;hp=93f03e222118b824fae3105d788251e562611bd2;hpb=c875478cdd823c7df8fdc859941bd9e5948c9315;p=chaz%2Frasterize diff --git a/scene.h b/scene.h index 93f03e2..ae373d7 100644 --- a/scene.h +++ b/scene.h @@ -19,7 +19,7 @@ typedef struct scene scene_t; /* * Allocate a scene by reading in data from a file. */ -scene_t* scene_alloc(const char* filename); +scene_t* scene_alloc(FILE* file); /* * Destroy a scene. @@ -33,6 +33,13 @@ void scene_destroy(scene_t* s); */ raster_t* scene_render(scene_t* s); +#if OPENGL +/* + * Render a scene to a window using OpenGL. This function does not return. + */ +void scene_render_gl(scene_t* s); +#endif // OPENGL + #endif // _SCENE_H_