Quote Originally Posted by Robert Kosek
Looks good! I've been scratching my head at this, and you just saved the day! How about some buttons? *hint hint hint*
buttons could be done without textures, like:

Code:
procedure drawButton(x, y, w, h: single; focused, pushed: boolean);
begin
resetcolor;
glFrontFace(GL_CW);
glBindTexture(gl_texture_2d, btn.GLID);

glcolor3UB(0, 0, 0);

glLineWidth(1);

// border
glBegin(gl_line_loop);
glvertex2fwin(x, y);
glvertex2fwin(x, y + h);
glvertex2fwin(x + w, y + h);
glvertex2fwin(x + w, y-1);
glend;

glLineWidth(2);

glcolor3UB(255, 255, 255);

// TOP one
glBegin(gl_line_loop);
glvertex2fwin(x+2, y+1);
glvertex2fwin(x+2, y + h-2);
glcolor3UB(128, 128, 128);
glvertex2fwin(x + w-1, y + h-2);
glvertex2fwin(x + w-1, y-1+2);
glend;

glFrontFace(GL_CCW);
end;
this looks quite good, i'll poke around with the button a bit more