News for hackers. Stuff that matters.
Re:Writing space invaders with Go by nottorp on Friday February 02, 2018 @04:48PM (#16294472)
See? That's the problem. Two different bindings recommended already. Better than 6 tbh, i might look at those 2.

And to the twitch guy I'm sorry, I'm old enough to prefer written documentation :)

Re:Writing space invaders with Go by gameswithgo on Friday February 02, 2018 @04:54PM (#16294512)
opengl and SDL are different things.

glfw and SDL are similar things, in that one may use one or the other to do basic operating system tasks like "get a window" which you can then draw to with opengl (or vulkan or whatever)

Even if you were programming in C++ you would have the choice between glfw or SDL for that kind of thing (or directly talking to your operating system's API!), so Go is not adding any confusion here that doesn't exist already.

I talk a bit about this in the EP 6 stream that you are too old for =) (I prefer written docs too! EDIT here: https://www.khronos.org/opengl/wiki/Related_toolkits_and_API... )

Re:Writing space invaders with Go by nottorp on Friday February 02, 2018 @05:20PM (#16294672)
I know, except SDL also has OpenGL support ;) Plus enough stuff to handle the rest of your game.

My main confusion is I know some SDL and OpenGL, but no Go. Thus, I don't know how to choose a SDL binding. Fighting with the binding is not a good thing when you want to learn a new language by doing a space invaders clone :)

Re:Writing space invaders with Go by gameswithgo on Friday February 02, 2018 @05:30PM (#16294738)
https://github.com/veandco/go-sdl2 is the SDL binding most people are using. It is solid.
Re:Writing space invaders with Go by nottorp on Friday February 02, 2018 @05:42PM (#16294816)
Replying to myself because I can't reply to my reply - guess too many reply levels.

Thank you mr/mrs/whatever gameswithgo! That's what I wanted to hear!

Re:Writing space invaders with Go by Arnavion on Friday February 02, 2018 @04:52PM (#16294500)
>See? That's the problem. Two different bindings recommended already.

You were recommended one binding for SDL and one for GL. Obviously they're different.

Re:Writing space invaders with Go by nottorp on Friday February 02, 2018 @05:17PM (#16294646)
Ah sorry, my bad. I thought that since i asked about SDL bindings i got recommendations for SDL bindings ;)