/******************************************************************* Type definitions for CS480/CS680 Line Drawing Assignment (P1) ******************************************************************** Author: Stan Sclaroff ********************************************************************/ #include #define SMOOTH_SHADING_BIT 1<<0 #define TEXTURE_MAPPING_BIT 1<<1 typedef struct { GLubyte r,g,b; } Color; typedef struct { int width,height; Color *pixels; } PixelBuffer; typedef struct { float x; /*vertex coords x*/ float y; /*vertex coords y*/ Color color; /*vertex color */ /*the fields below are only used to do the extra credit*/ float u; /*coords for texture mapping u */ float v; /*coords for texture mapping v */ } Vertex;