13 void DrawTile(
float x,
float y,
char c1,
char c2,
int w,
int h)
25 glColor3f(0.0, 0.0, 1.0);
26 glTranslatef(x*2.0/w-1.0, (1+y)*2.0/h-1.0-0.15, -0.001);
27 glScalef(1.0/(w*120.0), 1.0/(h*120.0), 1);
28 glRotatef(180, 0.0, 0.0, 1.0);
29 glRotatef(180, 0.0, 1.0, 0.0);
30 glTranslatef(120-textWidth/2, 0, 0);
41 glVertex3f(x*2.0/w-1+.05/w, (y)*2.0/h-1+.05/h, 0.002);
42 glVertex3f((x+1)*2.0/w-1-.05/w, (y)*2.0/h-1+.05/h, 0.002);
43 glVertex3f((x+1)*2.0/w-1-.05/w, (y+1)*2.0/h-1-.05/h, 0.002);
44 glVertex3f(x*2.0/w-1+.05/w, (y+1)*2.0/h-1-.05/h, 0.002);
52 glColor3f(1.0, 1.0, 1.0);
53 glBegin(GL_LINE_LOOP);
54 glVertex3f(-1-.05/w, -1-.05/h, 0.002);
55 glVertex3f(1+.05/w, -1-.05/h, 0.002);
56 glVertex3f(1+.05/w, 1+.05/h, 0.002);
57 glVertex3f(-1-.05/w, 1+.05/h, 0.002);
60 glColor3f(0.25, 0.25, 0.25);
62 glVertex3f(-1-.05/w, -1-.05/h, 0.003);
63 glVertex3f(1+.05/w, -1-.05/h, 0.003);
64 glVertex3f(1+.05/w, 1+.05/h, 0.003);
65 glVertex3f(-1-.05/w, 1+.05/h, 0.003);