Im wanting to create a game and have been doing some stuff with SDL2. What libraries do you guys recommend? Is there any that are better? GLFW? GLUT? SDL? For a little context it will be a desktop game. More than that hasnt really been figured out as i just wanna build and see where it goes.

    • NexusNovazOP
      link
      11 year ago

      Thanks, do you have any particular tutorials or videos that you would recommend i watch?

        • NexusNovazOP
          link
          11 year ago

          Yeah, ive been referring a lot to it. Just wanted to see if there were any videos as i prefer watching over reading but i have been using Lazy Foo’s tutorial. But thanks, ill keep reading and seeing what i can find

          • @[email protected]
            link
            fedilink
            11 year ago

            Just a quick heads-up: I’ve been working with SDL2 and OpenGL lately, using LazyFoo’s tutorials, and there’s a tiny point that could save you hours of head scratching. I e-mailed them about it but either they didn’t read it or thought I was mistaken, because the page hasn’t changed.

            In the part where they talk about “SDL and Modern OpenGL”, they use OpenGL 3.1, and make a very explicit note at the bottom of the page that you DON’T need to create a vertex array object, because that only became a requirement in OpenGL 3.2 and above. That appears to be correct according to the specification, but from my searches it lools like there is more than one OpenGL implementation/driver that incorrectly DOES require VAOs, even for OpenGL 3.1. If you compile the Lazy Foo example code and it mysteriously does nothing (it won’t crash, it just won’t draw anything), this might be why. It may be that all you need to do is add one line that creates a VAO in the initialization. Since the example code never changes any settings, you won’t have to actually do anything with it.

            • NexusNovazOP
              link
              11 year ago

              Oh, i hadnt gotten that far yet, but ill keep that in mind. Thanks!

  • @[email protected]
    link
    fedilink
    English
    11 year ago

    One library I’ve become very fond of using is Raylib. It has a ridiculously simple interface. If you just want to program a game and don’t want/need the details of OpenGL/Vulkan/DirectX (which I’d suggest you do at some point anyways), then It’d be my pick.