View Full Version : freeimage for powerbasic
Guys, I found code for freeimage to be used with powebasic. I thought maybe one of you guys could then easilly port it to thinBasic.
We can then use all sorts of image files easilly.
http://freeimage.sourceforge.net/sourcecode.html#PowerBasic
There is a c++ example of using any format as a texture in opengl. I just put in a png into the same code and it worked automatically. REally cool example to see how easy it is.
http://www.codesampler.com/usersrc/usersrc_6.htm
Michael Hartlef
26-05-2007, 07:40
Thanks Kent, but I have no time for this. Maybe you can do it with C++. Would be a good training for you.
Petr Schreiber
26-05-2007, 09:46
Hi kryton9,
good idea,
I had some unhappy events here so I am a bit paralyzed for any creative stuff for some time.
But I am bookmarking this thread and will have a look when my mind will be clear.
Thanks,
Petr
ErosOlmi
26-05-2007, 10:00
The best places where to look at for Power Basic souces is Power Basic form: http://www.powerbasic.com/support/forums/Ultimate.cgi?action=intro&BypassCookie=true
Maybe not so user friendly but for sure a great source of capable people.
If nothing there, the second place to look at is José Roca web site at http://www.jose.it-berater.org/ and in particular his forum at http://www.jose.it-berater.org/smfforum/index.php
José always make a great and professional job, all for free. In particular his knowledge of in/out of COM interfaces is far behind the common everage. You will found there a lot or COM wrapper for Power Basic.
Regarding FreeImage header and interface: http://www.jose.it-berater.org/smfforum/index.php?topic=82.0
The biggest problem with FreeImage library is that it uses a lot of callbacks to handle many functionalities so not so easy to port into thinBasic directly but a wrapper dll module I think will be needed.
Regards
Eros
Michael Hartlef
26-05-2007, 11:53
Hi kryton9,
good idea,
I had some unhappy events here so I am a bit paralyzed for any creative stuff for some time.
But I am bookmarking this thread and will have a look when my mind will be clear.
Thanks,
Petr
I hope it is something that can be fixed. Best wishes from my side.
@Petr As Mike said, hope you are well and that it all turns out OK!
@Mike I was thinking of making it a project for me to do in c++, but when I saw the existing powerbasic wrapper
I thought it would be really easy for you guys with powerbasic to make it a dll. But apprently that is not the case from
what Eros is saying.
@Eros I will check out the site for sure. I have seen his posts on other forums and he is a wiz at that sort of stuff for sure!!