C++ Graphics Library in Visual Studio and Eclipse

前端 未结 4 1978
春和景丽
春和景丽 2021-01-22 08:58

Is there any Graphics library available in VS or Eclipse for C++? I am creating a PacMan Game so Which graphics Library should i Try?

相关标签:
4条回答
  • 2021-01-22 09:27

    There are loads of things you can do:

    1. OpenGL: needs some intermediate library like GLEW or GLFW or others
    2. DirectX: See for example XNA, which is taled to be awesome for quick game development.
    3. Cross-pplatform toolkits: Qt, GTK+
    4. SDL
    5. Direct2D, GDI(+), ...

    I'd go with either XNA (for ease of use) or Qt.

    0 讨论(0)
  • 2021-01-22 09:32

    Although I would probably recommend SFML like greyfade, you might have a look at GDI too. It's not the simplest API out there, but for small projects it's quite nice. If everything is installed correctly, it should be included with Visual Studio. It completely depends on your target platform though.

    0 讨论(0)
  • 2021-01-22 09:36

    SDL Has everything you need for that particular project. Easy to learn also. Check out lazyfoo's tutorial to get started out.

    :EDIT: Instructions for setting up SDL in VS are here

    0 讨论(0)
  • 2021-01-22 09:37

    SDL is a C library, so if you've been using C++ for a while, you may find its simple interface cumbersome. However, it is the most widely-used library in this category.

    SDLmm is a C++ library wrapper for SDL that presents a friendly C++ face to SDL.

    SFML is a C++ media library with features similar to SDL. I rather quite like it, and it works very well.

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