outline

BlitzMax Forums/BlitzMax OpenGL Programming/outline

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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)

EndFunction
Although it isn't OpenGL specific, you can do the same..