I see there is already a report but for the beta 5. And there is no answer: I don't know so if this will be seen on this version.
Without 3D, it works fine.
Code: Select all
ExamineDesktops()
DW = DesktopWidth(0)
DH = DesktopHeight(0)
DD = DesktopDepth(0)
InitEngine3D() ; 1: Interacts with RenderWorld()
InitSprite()
Gosub Rendering
Delay(1000)
Gosub Rendering
Delay(1000)
Gosub Rendering
Delay(1000)
End
Rendering:
OpenScreen(DW, DH, DD, "") ; 2: Interacts with FlipBuffers() (sprite library)
CreateCamera(0, 0, 0, 100, 100)
MoveCamera(0, 0, 0, 1, #PB_Absolute) ; (*3)
C1 = RGB(255, 255, 255)
C2 = RGB(255, 255, 255)
CreateLine3D(0, -1000, -1000, 0, C1, 1000, 1000, 0, C2) ; 3: Requires MoveCamera()
RenderWorld() ; (*1)
FlipBuffers() ; (*2)
Delay(1000)
FreeMesh(0)
FreeCamera(0)
CloseScreen()
Return
; IDE Options = PureBasic 5.20 beta 7 (Windows - x86)
; CursorPosition = 8
; EnableXP