OpenGL Windowing Library for 2009

后端 未结 6 725
执念已碎
执念已碎 2021-02-02 04:08

Trying to decide on a library for creating a window and capturing user input for my OpenGL app, but there are just way too many choices:

  • GLUT (win32)
  • Free
6条回答
  •  长情又很酷
    2021-02-02 04:45

    IF  "learning c++ part of what you're trying to achieve":
    then
    IF  "you only want to learn OpenGL with a fullscreen mode":
      USE GLUT //Because it's VERY VERY simple. You can get set up VERY quick
    ELSE:
      USE QT //Great library, has many many things that will help you. It is portable, it has a nice API
    ENDIF
    
    IF "you don't need C++":
    then
       USE Python //I recommend it, it is fast, no long link times, good api, omg I love this language
    

    Background:

    I also tried to make simple 2D games once, I started with C++ and NeHe. I knew nothing about OpenGL and C++ (had Java background). The language overrun me, so did OpenGL. So it was a very hard learning curve.

    I don't recommend going that way, since you can get faster results by using a dynamic language (such as Python). So I started learning some years later with python. I could get the "rotating cubes" working much faster.

提交回复
热议问题