]> Dogcows Code - chaz/rasterize/blobdiff - scene.h
add opengl support
[chaz/rasterize] / scene.h
diff --git a/scene.h b/scene.h
index 93f03e222118b824fae3105d788251e562611bd2..ae373d707dcb5b40ea6dadb4a1fea59988c7a5a8 100644 (file)
--- 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_
 
This page took 0.021778 seconds and 4 git commands to generate.