SFML community forums
Bindings - other languages => General => Topic started 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.
-
Since you use the same logo, is this based on the other Go binding (https://bitbucket.org/krepa098/gosfml2/wiki/Home)?
-
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.
-
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. ;)
-
That's true. I've changed the logo.
-
Thanks! I've been interested in Go for some time :)
-
I'm glad. Did you have time to fiddle with it?