OpenGL Windowing Library for 2009

后端 未结 6 646
执念已碎
执念已碎 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:20

    We have had rather good experiences with ClanLib 0.8 in 2008 and ClanLib 2.1 in 2009 on our C++ course. The productivity of the students (as measured by the quality of their project works) has greatly increased since switching over from SDL. However, it needs to be noted that 2.1 is still very incomplete and one will certainly run into features that are simply not implemented yet.

    A couple of groups used Irrlicht (3D engine) with good results.

    SFML looks promising, but I haven't had a chance to try it yet.

    As others have stated, GLUT is not really suitable for anything serious. The rest of the libraries mentioned are something more of GUI toolkits than game development libraries.

    0 讨论(0)
  • 2021-02-02 04:23

    I'd go for Qt. Nice general purpose library + opengl support

    0 讨论(0)
  • 2021-02-02 04:25

    GLUT and the other GLUT alternatives should not be used in any sort of production application. They are good for putting together a quick demo application or to try something out, but not for much more than that.

    If you're trying to make an OpenGL game, I'd recommend SDL. It focuses more on gaming needs. It most definitely can be used with OpenGL. A brief google for "SDL OpenGL" turned up this link on how to initialize OpenGL with SDL. Enabling OpenGL should also enable hardware rendering with the GPU.

    Qt is a reasonable alternative, but it's better if you want to embed OpenGL within a larger, desktop application (think 3D modeling, CAD/CAM, medical visualization, etc) where you need access to standard OS widgets for the UI.

    0 讨论(0)
  • 2021-02-02 04:25

    Per recent corespondance with the author, development on OGLWFW has stopped.

    0 讨论(0)
  • 2021-02-02 04:45

    SDL allows you to create an OpenGL context that is accelerated (depending on drivers / hardware support).

    I know you tagged as C++, however pygame (python) is a great library for creating 2D games, which also supports an OpenGL context. Pygame is built on SDL.

    Clutter is a new OpenGL based GUI library with bindings for Perl, Python, C#, C++, Vala and Ruby. I haven't used it myself. From the website:

    Clutter uses OpenGL (and optionally OpenGL ES for use on Mobile and embedded platforms) for rendering but with an API which hides the underlying GL complexity from the developer. The Clutter API is intended to be easy to use, efficient and flexible.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题