]>
Dogcows Code - chaz/rasterize/blob - config.hh
3 * CS5600 University of Utah
5 * mcgarvey@eng.utah.edu
13 * If enabled, scalars will be of type double. This provides and insane level
14 * of precision at a performance cost. The default behavior just uses floats.
17 #define IF_DOUBLE_FLOAT(X) X
19 #define IF_DOUBLE_FLOAT(X)
24 * If enabled, each scene rasterization will be saved as a BMP image file.
25 * This is on unless explicitly disabled.
31 #define IF_EXPORT_BMP(X) X
33 #define IF_EXPORT_BMP(X)
38 * If enabled, each scene rasterization will be saved as a PPM image file.
39 * This is on unless explicitly disabled.
45 #define IF_EXPORT_PPM(X) X
47 #define IF_EXPORT_PPM(X)
52 * If enabled, functions that are defined in interface files will be marked as
53 * inline. The compiler will generally inline functions according to its own
54 * optimization heuristics, and this inline marking may persuade the compiler
55 * to inline a function that it otherwise would not. This option may bring a
56 * small performance boost, but it can also increase the size of the program
60 #define IF_EXTRA_INLINE(X) X
62 #define IF_EXTRA_INLINE(X)
67 * If enabled, assertions and other nonessential checks will not be compiled
71 #define IF_NDEBUG(X) X
78 * If enabled, scene elements will cast shadows on other elements.
81 #define IF_SHADOWS(X) X
88 * If enabled, a description of what is happening will be printed to stdout.
89 * Otherwise, nothing is printed. The behavior of this option is effected by
91 * 1 Print just a few very general descriptions.
92 * 2 After rasterization, also print the triangle count and other
93 * information that may be interesting.
94 * 3 Also print the number of seconds it took to render the entire scene,
95 * according to wall time.
96 * 4 Also print the number of triangles as they are being rastered. This
97 * uses ANSI escape codes which may not be supported on all terminals.
98 * It also causes a lot to be printed, so it can actually decrease render
99 * performance, especially on a slow (or remote) terminal.
100 * The default setting for this option is 3.
106 #define IF_RASTER_STATS(X) X
108 #define IF_RASTER_STATS(X)
111 #define IF_RENDER_TIMER(X) X
113 #define IF_RENDER_TIMER(X)
116 #define IF_RENDER_PROGRESS(X) X
118 #define IF_RENDER_PROGRESS(X)
This page took 0.037864 seconds and 5 git commands to generate.