Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: I've made new Go bindings for SFML 2.3.x  (Read 6956 times)

0 Members and 2 Guests are viewing this topic.

tapirath

  • Newbie
  • *
  • Posts: 15
    • View Profile
I've made new Go bindings for SFML 2.3.x
« 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.
« Last Edit: May 18, 2016, 11:48:30 am by tapirath »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: I've made new Go bindings for SFML 2.3.x
« Reply #1 on: May 17, 2016, 09:12:56 am »
Since you use the same logo, is this based on the other Go binding?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

tapirath

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: I've made new Go bindings for SFML 2.3.x
« Reply #2 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: I've made new Go bindings for SFML 2.3.x
« Reply #3 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

tapirath

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: I've made new Go bindings for SFML 2.3.x
« Reply #4 on: May 17, 2016, 10:27:16 am »
That's true. I've changed the logo.

framioco

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: I've made new Go bindings for SFML 2.3.x
« Reply #5 on: May 31, 2016, 12:29:06 pm »
Thanks! I've been interested in Go for some time :)

tapirath

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: I've made new Go bindings for SFML 2.3.x
« Reply #6 on: June 09, 2016, 01:00:12 pm »
I'm glad. Did you have time to fiddle with it?

 

anything