PureGDK is designed to make writing applications in PureBasic that use the DarkBasic Professional 3D engine easy. The only command necessary to open the DarkBasic render window and to tell the GDK compiler to compile a PureGDK application is to use the command dbOpenDBWnd.

Most of the DarkBasic Professional core libraries have been renamed with the prefix 'db'. For example, SET CURRENT CAMERA has been renamed to dbSetCurrentCamera(). There are important changes to consider when porting a DarkBasic Professional application to PureGDK. Please refer to the From DarkBasic to PureGDK section for more information.

An simple program might look like this:

;/ Open a PureBasic window
OpenWindow(0,0,0,640,480,"DarkBasic Professional - PureGDK",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)

;/ Initialize the PureGDK screen as a child of window ID 0
hDBWnd=OpenDBWnd(WindowID(0),0,0,640,480)

;/ Set the sync rate
dbSyncRate(60)

dbMakeObjectCube(1,3)

;/ Rotate the cube and update the screen
Repeat
 x.f+0.2: y.f+0.4: z.f+0.8
 dbRotateObject(1,x.f,y.f,z.f)
 dbSync()
Until WaitWindowEvent(1)=#PB_Event_CloseWindow