Page 1 of 2

purebasic vs. GLbasic

Posted: Tue Feb 12, 2008 5:02 pm
by sampb
Hi all,

What is the advantages using purebasic to write games, rather than GLbasic?

Thanks in advance
:)

Re: purebasic vs. GLbasic

Posted: Tue Feb 12, 2008 6:44 pm
by Irene
sampb wrote:Hi all,

What is the advantages using purebasic to write games, rather than GLbasic?

Thanks in advance
:)
PureBasic is designed more for application development, but can be used for game development too. GLBasic on the other hand is designed for creating games from basic to complex subjects and GLBasic has even support for GP2X handhelds and PocketPCs (Windows CE) making it actually a more preferable choice for making games. GLBasic has by no doubt much better 3D functionality and integration than PureBasic, but this can be overcome by using another 3D engine than OGRE with PureBasic (for example dreamotion3d). Unlike PureBasic, GLBasic supports cross-compiling and produces Universal Binaries for Mac OS X.

I have used/tested GLBasic and it was really fun to code with it, especially with the perfect compatibility for Blender models. I tend to stick with PureBasic though, just because it has a more flexible and powerful code base and it can produce really small executables.

All this is only theory though, you need to try both and decide for yourself. In the end both compilers do the same thing, the other just has features which the other doesn't, etc...

Cheers,
Irene

Posted: Tue Feb 12, 2008 8:29 pm
by Rook Zimbabwe
Dang Irene... knocked that one out of the park!!! 8)

Posted: Tue Feb 12, 2008 10:27 pm
by Trond
It's a while since I tried GLBasic.
As a supplement to what has already been said:
- GLBasic has a great 3d graphics library with tons of ready-made commands, PB hasn't
- PB is a real compiler that compiles to true machine code and comes close to C in speed. If it can be done in C, it can be done in PB. GLBasic was just an interpreter the last time I checked.

Posted: Tue Feb 12, 2008 11:06 pm
by Irene
Trond wrote:It's a while since I tried GLBasic.
As a supplement to what has already been said:
- GLBasic has a great 3d graphics library with tons of ready-made commands, PB hasn't
- PB is a real compiler that compiles to true machine code and comes close to C in speed. If it can be done in C, it can be done in PB. GLBasic was just an interpreter the last time I checked.
GLBasic is a real compiler and not an interpreter. This knocks out your last sentence ^.^

Posted: Wed Feb 13, 2008 5:55 pm
by Trond
I took a look at it, and GLBasic actually isn't a "real" compiler, it just converts from basic to C++ and lets GCC do the rest. Compiling and linking a sample project took 23 seconds! Compare that to PB!

Posted: Wed Feb 13, 2008 6:11 pm
by BriceManuel
Yeppers, GLBasic is just a C++ wrapper. You can even use C++ inline in your BASIC code.

Compiling anything remotely large in GLBasic is extremely slow.

That said, GLBasic is great for prototyping, which is what I use it for.

Posted: Wed Feb 13, 2008 7:53 pm
by Irene
Trond wrote:I took a look at it, and GLBasic actually isn't a "real" compiler, it just converts from basic to C++ and lets GCC do the rest. Compiling and linking a sample project took 23 seconds! Compare that to PB!
When I say real I do not really mean real real. More like just real, so it is not a real real compiler but more of a real compiler. It should not be necessary to note this, but when I say real real I mean real, but when I say real I do not mean real real, got it? ^.^

Posted: Wed Feb 13, 2008 8:24 pm
by Fluid Byte
Say "real" one more time and I strangle you... Image

Posted: Wed Feb 13, 2008 9:15 pm
by Irene
Fluid Byte wrote:Say "real" one more time and I strangle you... Image
Really? ^.^

Posted: Wed Feb 13, 2008 9:16 pm
by PB
Good one, Irene! :D

Posted: Wed Feb 13, 2008 10:49 pm
by Trond
Gonzo Google Search of the Gay... no, I mean Day! wrote:On February 14, 1991 (Valentine's Day), defendant became intoxicated and argued with Irene about the business in the presence of two friends, Sally and Charles Maio. Defendant tried to strangle Irene, and Charles Maio had to pull defendant off of her. Later, when the Maios drove defendant home, defendant said, "I'm going to kill her [Irene]. I'm going to kill the business. I'm going to kill everything." Irene filed a petition complaining about the incident and obtained an injunction prohibiting harassment, which was an order from the court prohibiting defendant from having any contact with Irene and from going to her residence. A police assistant testified at trial that when she served defendant the injunction on February 27, 1991, defendant "called [Irene] a bitch."
No, I didn't alter the dates. Be very careful tomorrow, Irene!

Posted: Wed Feb 13, 2008 11:02 pm
by Trond
PB wrote:Good one, Irene! :D
Awww, get real! Maybe ok, but not relicious.

Posted: Thu Feb 14, 2008 3:40 am
by sampb
Hi Irene, Rook Zimbabwe, Trond, BriceManuel, Fluid Byte, PB:

If you are going to create a commerial game, which option would you select:
1. purebasic + OGRE
2. purebasic + irrlicht wrapper beta
3. GLbasic

:)

Posted: Thu Feb 14, 2008 8:25 am
by matty47
I have purchased both Purebasic (several years ago) and GLbasic (last year). GLBasic is a much "simpler" language and on the 3D side it at least works in linux. Purebasic is probably more powerful but (since I am mainly interested in 3D) not suitable for coding ( for me) due to the lack of 3D in linux. Once the 3D works I think it would be the better of the two. BlitzMax is also cross platform and there are two versions of a 3D module along the lines of Blitz3D - therefore lots of models, code (that needs adapting) etc. In its favour it is more OOP than either of the others.
Still lost??
I am! :)
Matthew