why too many opengl wrappers?

c0mputer_fr0d 101 Mar 28, 2013 at 03:50

what’s will all this glew,glut,glut+,sdl,gfsl,glee,glfw. are these just wrapper libraries or what? what’s the reason for the redundancy. why can’t I just use opengl api by itself? if I do ever get opengl going (codeblocks) probably won’t at this rate, I want to build a map in 3ds max and then put it into my program and move the camera inside it. can I do this without an engine? How long does an engine take to make? am I too incompetent to build an engine?(probably) Help please!
can I make a cool looking map with a lot of effort and little 3d modelling experience or is it like drawing where you can’t do it unless your bjorn with it. I’m a big thicko you might say but I do put a lot of effort into things so I wan’t to know if I’m wasting my time here. sorry for the multitude of questions but I have a lot of them. thanks. I’m not as experienced as most of you guys and gals(politically correctness mandated by my government) but I think I can get this done. hopefully it’s more straight forward than my last project with the steinberg sdk which is for vsts which are plugins for a daw which is a music creation software.

2 Replies

Please log in or register to post a reply.

Reedbeta 167 Mar 28, 2013 at 06:26

Yes, you can use the OpenGL API by itself. You have to use your operating system’s APIs to create the OpenGL window, get input, measure time and so forth. Windows, OS X, Linux will all have their own ways of doing these things.

  • GLUT, SDL, SFML, and GLFW are wrappers around the operating system parts. Each of them provides a cross-platform way to create the OpenGL window, get input, measure time and so forth. Even if you’re only on one platform, though, they probably offer a simpler interface than the operating system APIs, therefore may be easier to code for.
  • GLEW and GLEE are libraries for helping with OpenGL extensions. You can set up extensions yourself, but it’s a huge pain, especially on Windows. GLEW and GLEE have done most of the busywork for you.

You don’t have to use any of these libraries, but you’ll probably make life easier for yourself if you do. Note: pick one library from each list. For instance, you could use GLFW together with GLEW. Don’t use both GLFW and SFML though. Likewise, don’t use both GLEW and GLEE.

Loading a map and flying a camera around isn’t too difficult. You can certainly do that without an engine. As a newbie to 3D graphics it will take you a little while to get right, but it’s certainly doable. Try http://www.opengl-tutorial.org/ for some tutorials to work through. They use GLFW in all their code samples. They also use many OpenGL extensions, so you will need GLEW (or GLEE, but it’s not as up to date anymore). If you work through those, by the time you get to Tutorial 8 you should be able to load a map and fly a camera around.

As for modeling, it takes practice. Drawing also takes practice. I don’t believe there’s anything that “you can’t do it unless your born with it” - everything is an acquired skill. The people who are “talented” are usually that way because they’ve practiced a huge amount of time over years, not because they were somehow born with an ability you weren’t. Anyway, the point is that if you keep working on improving your art and learning more, you will get better. It might go slowly, but you’ll get better at it if you just keep practicing.

c0mputer_fr0d 101 Mar 28, 2013 at 21:37

Thank’s so much, you’ve been very helpful in the past too.I will let you know on this thread when I have it completed!