PureGDK, for those you don't already know, is a compile-time wrapper that allows developers programing in PureBasic to take advantage of the DarkBasic Professional engine in their projects.
http://forum.thegamecreators.com/?m=forum_view&t=124255&b=8
PureGDK is not far removed from being able to compile TPC plugins for DarkBasic Professional. This post is to ask if anyone would be interested in purchasing this kind of a feature as an add-on to PureGDK.
PureGDK's plugin framework sets it apart from other TPC solutions by enabling anyone to add support for their favorite plugins effortlessly and be able to compile and test them right out of the PureBasic IDE.
To give an example of how simple plugin authoring would become consider this plugin which rotates a box by 45 degrees along y and z.
Here is the PureGDK code where you can test the function.
Declare RotateBox(ObjectID)
hDBWnd=OpenDBWnd(0,0,640,480,32,#GDK_Window_SystemMenu|#GDK_Window_ScreenCentered)
dbMakeObjectCube(1,3)
RotateBox(1)
Repeat: Delay(1)
dbSync()
ForEver
End
Procedure RotateBox(ObjectID)
dbRotateObject(ObjectID,0,45,45)
EndProcedure
If it functions the way you want it to then simply change is to an exported function (use ProcedureCDLL instead of Procedure), set the compiler to make a DLL instead of an EXE, add a string table (easy!) and you have a plugin!
ProcedureCDLL RotateBox(ObjectID)
dbRotateObject(ObjectID,0,45,45)
EndProcedure
The final code in DarkBasic Professional would look something like this:
Make Object Cube 1,3
Rotate Object 1
Wait Key
End
Because PureGDK supports the PureBasic IDE's sophisticated debugging tools it would be an all-in-one package for developing, testing, and compiling to a final TPC DLL.
PureBasic is a powerful and robust language with an impressive set of command libraries. It has full support for the Windows API, structures, OO/COM interfaces, a complete GUI library, OpenGL and DirectX interfaces, an XML library, unicode support, inline asm, threads, 8-bit data types (double/quad), a flexible pointer system, string tools, callbacks, and more!
Support for programming TCP plugins with PureGDK would certainly make it the ultimate tool for plugin authors. It's an idea I've been toying with but I would like to hear some feedback before I make a decision on this.
Please let me know what you think.
For a demo of what PureGDK can do and for a summary of its features see the article written in this month's issue (April) of the newsletter.
There you can download a demo which showcases a few of the powerful features that PureBasic has to offer DarkBasic Professional developers:
Threads
Window callbacks
Linked lists
Enumeration
MDI windows
Gadgets
Windows API
You can also find more information about PureGDK on the PureBasic forums here:
http://www.purebasic.fr/english/viewtopic.php?t=31201
http://3dfolio.com