What should go inside tBlitz2D.BeginMax2D?

BlitzMax Forums/MiniB3D Module/What should go inside tBlitz2D.BeginMax2D?

RexRhino(Posted 2008) [#1]
Is there any list of what commands should go inside of tBlitz2D.BeginMax2D and tBlitz2D.EndMax3D and what are OK outside?


Brucey(Posted 2008) [#2]
Max2D commands? :-)

DrawRect
DrawLine
DrawText

etc...

I presume that BeginMax2D must setup the context for drawing in 2D, placing 0,0 in the top-left of the viewable area.


Oddball(Posted 2008) [#3]
I haven't seen the latest version of miniB3D, but assuming nothings changed then Brucey is right. Any command from the Max2D module needs to be used between these two commands, even the transform commands.