Counts the total number of elements we have to work with
| 190 | |
| 191 | // Counts the total number of elements we have to work with |
| 192 | void CountElements() { |
| 193 | rad_surface *surf; |
| 194 | int i; |
| 195 | |
| 196 | rad_NumElements = 0; |
| 197 | |
| 198 | for (i = 0; i < rad_NumSurfaces; i++) { |
| 199 | surf = &rad_Surfaces[i]; |
| 200 | |
| 201 | rad_NumElements += (surf->xresolution * surf->yresolution); |
| 202 | } |
| 203 | mprintf(0, "Number of elements=%d\n", rad_NumElements); |
| 204 | } |
| 205 | |
| 206 | // Initializes the exitances for all surfaces |
| 207 | void InitExitance() { |