#include #include #include #include #include #include "common.h" GLenum doubleBuffer; GLubyte ubImage[65536]; void set_aspect_ratio(int w,int h) { glViewport(0,0,w,h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0,w,0,h,-1,1); // glScalef(1,-1,1); // glTranslatef(0,-h,0); } void set_color_based_on_distance(real d) { //scale this color based on distance... closer is lighter. // float g; // g=d/100.0 glColor3f(0.0, 1.0, 0.0); } void set_clipping_rectangle(int x,int y,int w,int h) { } void draw_cs_line(cs_t p1,cs_t p2) { glBegin(GL_LINES); glColor3f(0.0, 1.0, 0.0); glVertex2i(p1.x,p1.y); glVertex2i(p2.x,p2.y); glEnd(); } void draw_cs_text() { } void draw_cs_shape(cs_s_t s) { int i; for(i=0;i