this should work:
Function DrawImageOutline(img:TImage,x:Float,y:Float,thickness:Int=1) Local r:Int,g:Int,b:Int GetColor(r,g,b) SetColor(0,0,0) For Local dx:Int = -thickness To thickness For Local dy:Int = -thickness To thickness DrawImage(img,x+dx,y+dy) Next Next SetColor(r,g,b) DrawImage(img,x,y) EndFunctionAlthough it isn't OpenGL specific, you can do the same..