SFML v2 with FreeBasic

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Post Reply
Equal
Posts: 6
Joined: Apr 30, 2018 19:40

SFML v2 with FreeBasic

Post by Equal »

Dear Gentlemen,

i'm looking for complete headers of SFML v2 for FreeBasic. FreeBasic is such a great language and SFML v2 a great GfxLib for 2D stuff.
But i coudn't find anything in the net!

Can you help me out with links, headers and/ or some tutorials, snippets, sources...?

Best regards and many thanx for your help in advance,
Equal
sancho3
Posts: 358
Joined: Sep 30, 2017 3:22

Re: SFML v2 with FreeBasic

Post by sancho3 »

Here is a thread about it from long ago. Not sure if any of the links are going to work, but its a place to start.

Pro Tip: Use google to search for things like this. Search "freebasic SFML".
Equal
Posts: 6
Joined: Apr 30, 2018 19:40

Re: SFML v2 with FreeBasic

Post by Equal »

@Sancho3
I used Dr.Google but i found nothing concerning SFML version 2.
And the thread you posted is about SFML version 1.4.
In the net i only found incomplete headers of a SFML v2 port ==> CSFML v2 for FreeBasic!

So i hoped the community knows more ad could possibly help me!

Best regards,
Equal
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: SFML v2 with FreeBasic

Post by badidea »

I counted 78 c header files in https://github.com/SFML/CSFML
That quite some work to convert to freebasic .bi files, I think.
Equal
Posts: 6
Joined: Apr 30, 2018 19:40

Re: SFML v2 with FreeBasic

Post by Equal »

@badidea
Yes, that's right what you say, here is the beginning:
https://github.com/seanhaydongriffin/FB-CSFML-V2

But somebody told me that these headers are incomplete?!
I'm not able to appreciate this statement!

Best regards,
Equal
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: SFML v2 with FreeBasic

Post by badidea »

I'm no expert on this, but it looks that 'seanhaydongriffin' started converting 1 header file and decided that the other 77 files was too much work :-)

This SDL2 an alternative for you? You can find more info on that in this forum (including people complaining about examples not working). SDL2 probably is a better match for freebasic as the library it is written in C instead of C++.
paul doe
Moderator
Posts: 1730
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: SFML v2 with FreeBasic

Post by paul doe »

Equal wrote:...
Can you help me out with links, headers and/ or some tutorials, snippets, sources...?
...
Hi Equal. Welcome to the forum.

See if this helps: https://github.com/seanhaydongriffin/FB-CSFML-V2. It seems to me that's a work in progress, but perhaps it could serve as a starting point.
If that doesn't help, I'll give it a go, as it looks like a very interesting lib, and also includes static bindings (so you don't need to distribute a crapton of DLLs with your code). However, you'll have to wait, as I'm juggling far too much stuff at the moment.

See you later.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: SFML v2 with FreeBasic

Post by MrSwiss »

Hi, there is:
CSFML-Audio by D.J.Peters, in Libraries Sub-Forum. Maybe a starting point ...
Equal
Posts: 6
Joined: Apr 30, 2018 19:40

Re: SFML v2 with FreeBasic

Post by Equal »

Hi,

thanx for your fas replies and yes SDL2 seems to be an alternative.
The SFML2 audio headers seem to be finished (MrSwiss found out )and the gfx headers are perhaps a work in progress like paul doe mentioned
Perhaps the SFML2 headers will be finished soon.

Best regards and again thanx a lot for your help,
Equal
paul doe
Moderator
Posts: 1730
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: SFML v2 with FreeBasic

Post by paul doe »

MrSwiss wrote:Hi, there is:
CSFML-Audio by D.J.Peters, in Libraries Sub-Forum. Maybe a starting point ...
Oh, I totally missed that, thanks.

So, Joshy is working on this one? In that case, perhaps we should use that instead (lest we end up with duplicated work). I translated the bulk of the headers (of SFML 2.4) yesterday with the help of fbfrog. Most of the declarations don't get translated but they are pretty straightforward. However, there are several so this could take me a little more time.

@Equal: I have to tell you that the library is pretty meh, however. Nothing you can't do with FreeBasic alone (there are many examples of how to do the things the library does, scattered through the forum)
paul doe
Moderator
Posts: 1730
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: SFML v2 with FreeBasic

Post by paul doe »

Equal wrote:...Perhaps the SFML2 headers will be finished soon...
Turns out they already are. Look here: FB SFML V2
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: SFML v2 with FreeBasic

Post by badidea »

That guy never sleeps or can write code while sleeping :-)

edit:

Code: Select all

while(sleep(1,1) = false) or sleep(0,0): ? "coding": wend
Last edited by badidea on May 08, 2018 18:55, edited 2 times in total.
paul doe
Moderator
Posts: 1730
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: SFML v2 with FreeBasic

Post by paul doe »

badidea wrote:That guy never sleeps or can write code while sleeping :-)
Hahaha indeed =D
Equal
Posts: 6
Joined: Apr 30, 2018 19:40

Re: SFML v2 with FreeBasic

Post by Equal »

@Paul Doe
...pretty meh
What's the meaning of meh,Sir?
Turns out they already are. Look here: FB SFML V2
That's really cool!

Best regards and many thanx for your help,
Equal
paul doe
Moderator
Posts: 1730
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: SFML v2 with FreeBasic

Post by paul doe »

Equal wrote:@Paul Doe
...pretty meh
What's the meaning of meh,Sir?
Something unimpressive, or something boring. But that's a matter of taste, mind you =D
Post Reply