Great! Here's the PureGDK version of tutorial from the newsletter:
XIncludeFile "..\include\puregdk\core\h.PureGDK.pb"
XIncludeFile "..\include\puregdk\plugins\h.Puregdk-Plugins.pb"
XIncludeFile "..\include\h.InitPureGDK.pb"
;/ Initialize PureGDK by telling it where the engine dll is
If Not InitPureGDK("..\..\..\gdkengine.dll")
End
EndIf
Window=OpenWindow(#PB_Any,0,0,640,480,"PureGDK - Game Developer's Toolkit",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
dbOpenScreen(WindowID(Window),0,0,640,480)
dbSyncRate(60)
ODE_Start()
ODE_SetWorldGravity(0,-50,0)
ODE_SetWorldStep(0.05)
ODE_SetWorldERP((0.2)*2.5)
ODE_SetWorldCFM(Pow(10,-5)*2.5)
dbCreateObjectBox(200,10,200,1)
dbColorObject(1,RGB(128,255,128))
dbRotateObject(1,0,180,30)
ODE_CreateStaticBox(1)
dbCreateObjectBox(10,5,8,2)
dbCreateObjectSphere(12,16,16,3)
dbCreateObjectSphere(10,16,16,4)
dbCreateObjectBox(8,0.1,10,5)
dbCreateObjectCone(15,6)
dbPositionObject(2,-3,20,0)
dbPositionObject(3,23,40,3)
dbPositionObject(4,10,60,-3)
dbPositionObject(5,15,80,0)
dbPositionObject(6,20,200,50)
ODE_CreateDynamicBox(2,100,100,100)
ODE_CreateDynamicSphere(3)
ODE_CreateDynamicSphere(4)
ODE_CreateDynamicBox(5,100,100,100)
ODE_CreateDynamicTriangleMesh(6)
ODE_SetContactFDir1(1,5.0)
ODE_SetContactFDir1(2,5.0)
ODE_SetContactFDir1(3,5.0)
ODE_SetContactFDir1(4,5.0)
ODE_SetContactFDir1(5,5.0)
ODE_SetContactFDir1(6,5.0)
dbPositionCamera(0,50,-40)
dbPointCamera(0,20,0)
Repeat
ODE_Update()
dbSync()
Until WindowEvent()=#PB_Event_CloseWindow
ODE_End()
dbCloseScreen()
I'll explore the undocumented functions later and see if I can get the correct parameters.
Thank you!
ACER Aspire 5920G: Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, Windows Vista Ultimate SP1, DBPro 7.5 + PureGDK 2.0b