New beta.
0.4.8 fixes some bugs and adds support for the new DarkBasic Professional U6.7 callbacks. Support for U6.7 commands and updated parameters will not be added until it is an official patch.
0.4.8b - Mar. 16, 2008 Changelog:
* dbMouseClick will now correctly return false if the mouse position is within the render window but outside of the client area.
* Fixed a bug which caused the Styx plugin library to fail.
* OpenDBWnd() will now throw a useful error instead of causing a memory access violation when it does something it wasn't supposed to do.
* Removed SetInvalidCallback() in favor of the new U6.7 callbacks. Use dbSetD3DDeviceCallback() instead to recover from an invalid D3D device. The new callbacks will work only when compiling without the debugger.
Here is an example of the new dbSetD3DDeviceCallback() command. This is useful for backing up the state of your application in the case of an invalidated render device and also for restoring the data in the same case. These commands will only take effect when compiling without the debugger.
Code: Select all
; Show the PureGDK render window
hDBWnd=OpenDBWnd(0,0,640,480,32,#GDK_Window_SystemMenu|#GDK_Window_ScreenCentered)
Procedure D3DDeviceLost()
; Backup your project data here
dbMessage("Info","D3DDeviceLost")
EndProcedure
Procedure D3DDeviceReset()
; Reload your project data here
dbMakeObjectCube(1,3)
dbScaleObject(1,88,88,88)
dbColorBackdrop(RGB(Random(255),Random(255),Random(255)))
dbMessage("Info","D3DDeviceReset")
EndProcedure
dbSetD3DDeviceCallback(@D3DDeviceLost(),#GDK_Callback_DeviceLost)
dbSetD3DDeviceCallback(@D3DDeviceReset(),#GDK_Callback_DeviceReset)
dbMakeObjectCube(1,3)
dbScaleObject(1,88,88,88)
dbColorBackdrop(RGB(0,0,0))
Repeat: Delay(1)
x.f+0.1: y.f+0.4: z.f+0.7
dbRotateObject(1,x.f,y.f,z.f)
dbSync()
ForEver