Rotating a postcard

BlitzMax Modules Forums/MiniB3D/Rotating a postcard

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.

After a good night's rest I continued experimenting to figure out what is going on. Based on the example LAB[au] sent, take a look at this:
Import klepto.minib3d

Graphics3D 640,480,32,1

Local mycube:TEntity=CreateCube()
PositionEntity mycube,0,0,5

Local cam:TCamera=CreateCamera()
CameraViewport cam,100,100,400,300
CameraClsColor cam,0,0,255

Local light=CreateLight()

While Not KeyHit(KEY_ESCAPE)
'everything 3D goes here
	TurnEntity mycube,1,1,0
	RenderWorld()

	TGlobal.BeginMax2D
'put 2D in between BeginMax2D and EndMax2D
	SetColor 255,255,0

'	this works
	DrawText "Just 2D text...", 100, 450
	DrawRect 0,0,100,100

'	this doesn't
'	DrawRect 0,0,100,100
'	DrawText "Just 2D text...", 100, 450

	TGlobal.EndMax2D
	Flip

Wend

End

So, when I first draw text and after that draw the rects, it works. But first rects and than text removes the rects. Hmmm?

But it is getting more complicated. I added a DrawImage line after the DrawText
	SetColor(255, 255, 255)
	DrawImage(img, 10, 10)

Now it does draw all the elements, no matter what order I choose.
Klepto, do we have a bug here? Is this something to think about? Will it help you to improve the module? Or is there something wrong with my system and/or BlitzMax+mods installation?

Anyway, I can continue working on my project but I hope this post will not end here.