with this code (visual basic) :
the Blitz3D SDK enters a sort of infinite loop that shows a huge amount of messagebox windows with the text: Graphics mode not set.
This internal loop happens when the host application calls the Graphics3D function (bbGraphics3D in the dll).
I'm using a compiled DLL version of the CSharp example (no source modified). And the CANVAS object is a regular picture box. so that means I can't use this dll from visual basic or C#. The funny thing is that it was working ok and decided not to work any more suddently (no code was changed so it seems to me like an acumulative bug, something can not be freed properly or something... weird...)
SetBlitz3DHWND(Me.CANVAS3D.Handle.ToInt32())
BeginBlitz3D()
Graphics3D(800, 600)
Cam = CreateCamera()
'Cls()
UpdateWorld()
RenderWorld()
CreateLight()
Dim CUBE As Integer = CreateCube()
MoveEntity(CUBE, 0, 0, -5)
bbText(0, 0, "Blitz3D preview", 0, 0)
Flip()
the Blitz3D SDK enters a sort of infinite loop that shows a huge amount of messagebox windows with the text: Graphics mode not set.
This internal loop happens when the host application calls the Graphics3D function (bbGraphics3D in the dll).
I'm using a compiled DLL version of the CSharp example (no source modified). And the CANVAS object is a regular picture box. so that means I can't use this dll from visual basic or C#. The funny thing is that it was working ok and decided not to work any more suddently (no code was changed so it seems to me like an acumulative bug, something can not be freed properly or something... weird...)