/* Greydon Foil 5.21.04 */ /* ppmRender.h */ #ifndef __ppmRender_h #define __ppmRender_h #include "vectorMath.h" /* This structure is used by the system to hold the relevant information about the current grid and all of the values in the grid */ typedef struct grid { int numCols; int numRows; int maxValue; int** values; /* col is the x-value of the 2-d array and row is the y-value */ } Grid; /* This structure is used to hold the normal vectors for all points in the grid */ typedef struct normalGrid_t { point** values; } normalGrid; void adjustHeights(void); Grid* readGrid(char* filename); void findRatio(void); void display2d(void); void display3d(void); void main_menu(int value); void keypress2d(unsigned char key, int x, int y); void keypress3d(unsigned char key, int x, int y); void mouseFunction(int x, int y); void mouseIdleFunction(int x, int y); void initLighting(void); void printInfo(Grid* inGrid); void colorFunction(int heightR, int heightG, int heightB); void initView(void); void renderScene(void); void specialKey(int key, int x, int y); void findAllNormals(void); void buildNormalGrid(void); #endif