SFML community forums

Bindings - other languages => General => Topic started by: tapirath on May 17, 2016, 08:58:45 am

Title: I've made new Go bindings for SFML 2.3.x
Post by: tapirath on May 17, 2016, 08:58:45 am
For anybody who's interested to use SFML with Go, you can take a look at the bindings I've made.
Right now only graphics and window graphics, window and some part of the audio modules are implemented. I will also implement the audio module in near future. I've tried to stay as faithful as possible to SFML but my priority was to make it Go idiomatic.

https://gitlab.com/tapir/sfml

Also for anyone who's interested I've made a helper library that implements a "maximum fps with fixed timestep" game loop that handles the interpolation automatically.

https://gitlab.com/tapir/sfmlhelpers

You can check "examples/bunnymark" to see how it works.

PS: There are parts of the binding that I didn't test yet. So expect some bugs.

Cheers

EDIT: You can now play music and sound. Only recorder and stream classes left.
Title: Re: I've made new Go bindings for SFML 2.3.x
Post by: eXpl0it3r on May 17, 2016, 09:12:56 am
Since you use the same logo, is this based on the other Go binding (https://bitbucket.org/krepa098/gosfml2/wiki/Home)?
Title: Re: I've made new Go bindings for SFML 2.3.x
Post by: tapirath on May 17, 2016, 09:26:40 am
This is 90% from scratch except for methods that were not possible to bind in any other way, so I copied some boring parts and changed the names.

Especially the event union is completely different. Other binding uses an interface, I use a partly updated struct. Closer to original SFML.

I took the logo from SFML website, didn't notice it belonged to the other binding. I can change it if it's a problem.
Title: Re: I've made new Go bindings for SFML 2.3.x
Post by: eXpl0it3r on May 17, 2016, 09:50:02 am
Well it's not my binding or logo so I can't say if it's a problem, but I think it can cause quite a confusion if different bindings use the same logo. ;)
Title: Re: I've made new Go bindings for SFML 2.3.x
Post by: tapirath on May 17, 2016, 10:27:16 am
That's true. I've changed the logo.
Title: Re: I've made new Go bindings for SFML 2.3.x
Post by: framioco on May 31, 2016, 12:29:06 pm
Thanks! I've been interested in Go for some time :)
Title: Re: I've made new Go bindings for SFML 2.3.x
Post by: tapirath on June 09, 2016, 01:00:12 pm
I'm glad. Did you have time to fiddle with it?