|
Post by angros47 on Aug 5, 2010 12:03:02 GMT -5
Is it possible to "extract" the sprite library from Basic4GL, to be able to use it even in other languages (i.e. FreeBasic)? Does the license allow it? Is it technically possible? I'm asking that because I've already ported MiniB3D to FreeBasic: www.freebasic.net/forum/viewtopic.php?t=15409and basic4gl library would be great to add credits, title, score and so on (FreeBasic graphic commands can't be used in opengl mode). Also, it would allow using freebasic to compile basic4gl programs, with few changes: basic4gl is more user friendly, and offers a nice development environment, while freebasic produces faster executable, and is multi-platform, so, both languages could be improved, with a better compatibility.
|
|
|
Post by Supermonkey on Aug 5, 2010 14:36:52 GMT -5
I believe B4GL uses Corona. However I have no idea what layer of abstraction b4gl adds on top of the library itself. You could also download the source off the homepage to see what b4gl adds to the library (if anything).
|
|
|
Post by Wayne Rayner on Aug 6, 2010 0:57:58 GMT -5
Basic4GL adds sprite manipulation functions. Well thats what I can see. The corona library isn't that good really and it's hard to find good documentation about it so I wouldn't really know.
If you download the source from the wiki as the home page hasn't got a link to any source code download. You could look at the sprite library section. You might be able to use it in C/C++ but with free basic it wouldn't work.
|
|
|
Post by angros47 on Aug 6, 2010 2:39:11 GMT -5
Well, c /c++ can be used to produce .o files, or dynamic libraries, to be used in freebasic. I have already done that (MiniB3D is written in c++, and can be used in FreeBasic)
Does Basic4Gl license allow something similar? Has anybody already tried to "detach" sprite library from it?
|
|
|
Post by Supermonkey on Aug 6, 2010 4:21:38 GMT -5
I haven't tried but I'd say from working with other areas of the code it'd be quite easy.
|
|
|
Post by Tom Mulgrew on Aug 7, 2010 6:36:25 GMT -5
It's in the Routines\glSpriteEngine.cpp file in the Basic4GL source. Which incidently is up on sourceforge now (https://sourceforge.net/projects/newbasic4gl) under the New BSD License.
There's probably a few other files it needs to function (it's a while since the code was written).
|
|