#include "debug.h"#include <GL/glut.h>#include <GMmatlib.h>#include "litscene.h"#include "time.h"#include "simplecamera.h"#include "brdf.h"#include "sphere.h"Defines | |
| #define | MAX_PATH_BOUNCES 5 |
Functions | |
| const char * | friendlyTime (char time[9], double tsecs) |
| void | keyboard (unsigned char key, int x, int y) |
| void | glutResize (int w, int h) |
| void | set_pixel (int x, int y, Colour col) |
| void | idle (void) |
| void | display (void) |
| void | create_window (void) |
| void | usage (void) |
| int | main (int argc, char **argv) |
Variables | |
| const int | xSZ = 250 |
| const int | ySZ = 250 |
| const int | previewStep = 10 |
| LitScene | TheScene (MAX_PATH_BOUNCES) |
| SimpleCamera | TheCamera (xSZ, ySZ) |
| int | Nx |
| int | Ny |
| GLfloat * | raytraceBuffer = NULL |
| static char | filename [256] |
| static const int | N_RAYS_PER_PIXEL = 1 |
| static float | DISPLAY_SCALE = 30.0f |
| static char | title [256] |
| static char | timeS [9] |
| static int | irt = 0 |
| static int | jrt = 0 |
| static bool | done = false |
| static Colour | col |
| static time_t | start |
| static double | estimate_dur = 0.0 |
| static double | dur = 0.0 |
| #define MAX_PATH_BOUNCES 5 |
| void create_window | ( | void | ) |
| void display | ( | void | ) |
| const char * friendlyTime | ( | char | time[9], | |
| double | tsecs | |||
| ) |
| void glutResize | ( | int | w, | |
| int | h | |||
| ) |
| void idle | ( | void | ) |
| void keyboard | ( | unsigned char | key, | |
| int | x, | |||
| int | y | |||
| ) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
| void set_pixel | ( | int | x, | |
| int | y, | |||
| Colour | col | |||
| ) |
| void usage | ( | void | ) |
float DISPLAY_SCALE = 30.0f [static] |
bool done = false [static] |
double dur = 0.0 [static] |
double estimate_dur = 0.0 [static] |
char filename[256] [static] |
int irt = 0 [static] |
int jrt = 0 [static] |
const int N_RAYS_PER_PIXEL = 1 [static] |
| int Nx |
| int Ny |
| const int previewStep = 10 |
| GLfloat* raytraceBuffer = NULL |
time_t start [static] |
char timeS[9] [static] |
char title[256] [static] |
| const int xSZ = 250 |
| const int ySZ = 250 |
1.5.1-p1