]> Dogcows Code - chaz/rasterize/blobdiff - config.h
add opengl support
[chaz/rasterize] / config.h
index 8cc0ffdfc82098f718ba38ccfbc73e0aeeef5212..8c0fd39c782f463be26e527cb41ab243004c0a97 100644 (file)
--- a/config.h
+++ b/config.h
@@ -8,6 +8,21 @@
 #ifndef _CONFIG_H_
 #define _CONFIG_H_
 
+/*
+ * OPENGL
+ * If enabled, the software rasterizer will be bypassed and the scene will
+ * be rendered using OpenGL.  The resulting image will not be exported;
+ * rather, GLUT will be used to display the scene in a window.  This option
+ * overrides options effecting the software rasterizer.  Also, the float
+ * size will be 32-bit regardless of the DOUBLE_FLOAT option.
+ */
+#if OPENGL
+#define IF_OPENGL(X) X
+#undef DOUBLE_FLOAT
+#else
+#define IF_OPENGL(X)
+#endif
+
 /*
  * BACKFACE_CULLING
  * If enabled, triangles that are facing away from the viewer, according to
This page took 0.017545 seconds and 4 git commands to generate.