Just draw 4 lines.
or...In OpenGL ... this might not be entirely accurate...untested
or...In OpenGL ... this might not be entirely accurate...untested
glBegin(GL_LINES) glvertex2i(x+1,y) glvertex2i(x+width-1,y) 'first line glvertex2i(x+width-1,y+1) glvertex2i(x+width-1,y+height-2) 'second line glvertex2i(x+1,y+height-2) glvertex2i(x+width-1,y+height-1) 'third line glvertex2i(x,y) glvertex2i(x,y+height-1) 'fourth line glEnd()