Leadwerks Engine and PureBasic

Advanced game related topics
Leadwerks
User
User
Posts: 18
Joined: Sun Aug 31, 2008 5:07 am
Location: California

Leadwerks Engine and PureBasic

Post by Leadwerks »

Hi, this is Josh of Leadwerks. I am finishing up version 2.1 of our engine, after which I plan to shift to a more educational mode...I am just going to take a break for a few months and only do documentation and video tutorials.

The engine command set uses a C interface. I was wondering if it is possible for PureBasic to import a C header? If so, you would be able to just start using the commands right away. If not, then maybe I can write a simple program that will automatically generate the PB include code.

Please let me know what the best way to allow PB accessibility is. Thanks!

Image

Image
Last edited by Leadwerks on Thu Sep 18, 2008 7:00 pm, edited 1 time in total.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

PureBasic cannot import C headers. You will have to rewrite all of the imports using PureBasic code.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

Hi Josh,

the LEADWERKS Engine? :shock: WOW!

... and as I just have looked up, this engine isn't that expensive,
your company's website sais US$ 150,- for the engine and US$ 120,- for the WorldBuilder, is this correct?
... and the WorldBuilder is capable of CSG?
darn, I guess you have me, I'm an old POV scripter and I always disliked too much Meshes... xD


from your product information:

> DLL version can be used with virtually any programming language.

PureBasic can access external DLLs without problems

> Procedural interface allows full access to all features while maintaining a simple and straightforward API.

PureBasic can natively handle API calls with 32bit arguments, 64bit argument API calls have to be imported.
this should not be too difficult, myself I have not much experience with imports, but I know others who have.
the C Header maybe helpful to create the importing code in PureBasic.


PureBasic is an European Product, international sold.
how easy is international shipping of your engine's package?
the billing pages offer CreditCard and PayPal... are there other possibilities, too?

excuse my questions, just curious...
how did you find PureBasic and this forums?
oh... and have a nice day.
Leadwerks
User
User
Posts: 18
Joined: Sun Aug 31, 2008 5:07 am
Location: California

Post by Leadwerks »

I used to use PureBasic for GUI apps. It's a very good language.

We process orders from all over the world.

I guess I will have to write a PB include file then. Hopefully I still remember the syntax. I thought PB supported 64-bit floats? No matter, I stuck to 32-bit parameters.

If anyone here has time and interest in doing this, please contact me and we can work something out.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

PB supports 64bit floats, but not natively 64bit arguments for unimported API calls.
I discovered this when trying to work with openGL without imports.

but it should be easy to write some imports to have full 64bit access.
using 64bit arguments will be better, it will be useful with large maps and fine detailed models.
oh... and have a nice day.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Hi there,

This tool might be handy for the import job:

http://www.purebasic.fr/english/viewtopic.php?t=16179

A few years ago i did a similar tool for importing all the functions of 3impact to purebasic, but i had to quit because PB did not support Quads at the time.
Leadwerks
User
User
Posts: 18
Joined: Sun Aug 31, 2008 5:07 am
Location: California

Post by Leadwerks »

Danke aber mein Deutsch ist nicht gut genug fur mich zum verstanden der applikation.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

There is version 1.5.6 on page 4, but you can get an English version here
http://www.file-upload.net/download-103 ... 6.zip.html
Leadwerks
User
User
Posts: 18
Joined: Sun Aug 31, 2008 5:07 am
Location: California

Post by Leadwerks »

I am still looking for someone to write import code for PureBasic.

An evaluation kit is now available:
http://forum.leadwerks.com/viewtopic.php?f=1&t=822

Image
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4326
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

I remember this from Blitz3D! It has been much improved!!! Keep up the good works!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Post by c4s »

Leadwerks wrote:I am still looking for someone to write import code for PureBasic.
Maybe you should give that someone an attraction. For example a free
licence or so.
I think nobody would do it just for fun for a commercial application..
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Leadwerks
User
User
Posts: 18
Joined: Sun Aug 31, 2008 5:07 am
Location: California

Post by Leadwerks »

well, yeah, they would need the SDK to test with.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Played around a little with the evaluation package and found a few things...

- In messes around with registry keys. Why? I can't seem to think of a reason why it would.

- The sandbox crashed repeatedly on me.

- I can't seem to find anything loadable in the model viewer, and the model viewer crashes on exit.

The island demo is great, but it could use a couple of (moving) objects.

All in all very promising, but it's a bit hard to estimate how easy or hard it is to use the kit just from looking at this package. That it crashed and stored stuff in the registry is something I don't like, especially not from an evaluation package.

Promising but I'm not buying yet :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Leadwerks
User
User
Posts: 18
Joined: Sun Aug 31, 2008 5:07 am
Location: California

Post by Leadwerks »

The installer might do something with registry keys. My engine does not.

I don't know anything about crashing because no one has reported anything like that until now, but I will keep an eye out.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Not the installer but the sandbox and model viewer accessed registry keys.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply