CRASH >.< !and this:
BTW: zis replacement works:
So, it looks like zat our main problem is DM_RenderWorld().;----------------
;- Main Loop
;----------------
If InitD3D9() = #True
If D3D9_OpenWindowedScreen(0, 10, 10, 640, 480, "DirectX For PB: Initilization") = #True
DM_SetDevices(hwnd, *D3D, *D3DDevice)
DM_SetGraphics(@Rendering, 32, 0)
; create camera
*camera = DM_CreateCamera(0)
DM_TranslateEntity(*camera, 0,3,-20)
*cube=DM_CreateCube()
; set parameters dreamotion engine with params initialized by directx
Repeat
DM_BeginScene()
; DM_RenderWorld()
DM_EndScene()
Until WindowEvent() = #PB_Event_CloseWindow
EndIf
EndIf
Shutdown(0)