X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Frasterize;a=blobdiff_plain;f=config.h;h=8c0fd39c782f463be26e527cb41ab243004c0a97;hp=8cc0ffdfc82098f718ba38ccfbc73e0aeeef5212;hb=bc662e293c854e1bdc9d46e9a410fe220247e6d4;hpb=07083c8dfbbd4fe48e84d86ce8d7e44e0719b84a diff --git a/config.h b/config.h index 8cc0ffd..8c0fd39 100644 --- 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