All drawing commands?

BlitzMax Forums/BlitzMax Beginners Area/All drawing commands?

Ryan Burnside(Posted 2006) [#1]
Could someone post all the basic drawing commands?
Just to deal with shapes and such. Is there any way to draw unfilled rectangles and circles?


tonyg(Posted 2006) [#2]
Look under MAX2D in the help with anything called Drawnnn.
There are no native unfilled draw routines but many workarounds in the forum and the code archives.


Grey Alien(Posted 2006) [#3]
heres a rectangle ouline for you:

' -----------------------------------------------------------------------------
' ccDrawRectOutline
' -----------------------------------------------------------------------------
Function ccDrawRectOutline(x,y,w,h)
	DrawLine(x,y,x+w,y,0)
	DrawLine(x+w,y,x+w,y+h,0)
	DrawLine(x+w,y+h,x,y+h,0)
	DrawLine(x,y+h,x,y,0)	
End Function



ImaginaryHuman(Posted 2006) [#4]
Look in the code archives under blitzmax graphics routines, I put an unfilled and filled circle/ellipse routine in there, but it doesn't support rotation.


Oddball(Posted 2006) [#5]
And here's a function I added to the archives for drawing unfilled polygons of almost any shape that can be scaled and rotated correctly.

DrawPoly(), filled or unfilled


Ryan Burnside(Posted 2006) [#6]
Thanks guys. so basically what you're telling me is that I need to make my own drawing functions via line commands.
I can live with that.


ImaginaryHuman(Posted 2006) [#7]
Look in the wiki, there is a way to turn off filling so it automatically draws unfilled.