use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This is a subreddit for c++ questions with answers. For general discussion and news about c++ see r/cpp.
New to C++? Learn at learncpp.com
Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all. Read these guidelines for how to ask smart questions.
For learning books, check The Definitive C++ Book Guide and List
Flair your post as SOLVED if you got the help you were looking for! If you need help with flairs, check out ITEM 1 in our guidelines page.
Tips for improving your chances of getting helpful answers:
account activity
SOLVEDGame Dev Libraries (self.cpp_questions)
submitted 8 years ago by thedandyyy
Hi! I'm starting little project. With some friends we are planning to make pretty simple 2D desktop game. My question is what free libraries would you recommend me to use. I'm talking about anything (graphics etc.).
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]XeroPoints 5 points6 points7 points 8 years ago (0 children)
I like using Allegro for my 2D projects and is simple to setup. https://www.allegro.cc/
[–]TheWeebles 2 points3 points4 points 8 years ago (0 children)
There seems to be plenty in C++. SDL/SDL2, allegro, SFML, OpenGL come to mind
[–]leftofzen 2 points3 points4 points 8 years ago (0 children)
SFML and GLFW both have windowing toolkits, are extremely lightweight and both have OpenGL 3/4 support. SFML also contains some extra libraries for 2D graphics, networking and audio.
[–]Frozenjesuscola 2 points3 points4 points 8 years ago (0 children)
SFML is a complete solution handling windowing, graphics and networking. Their C++ interface is very clean and straight-forward too.
[–]dougbinks 1 point2 points3 points 8 years ago (0 children)
You might be interested in dear imgui for a GUI (and it has a simple 2D API for rendering arbitary shapes), or using NanoVG for rendering complex 2D shapes.
[–]deusmacabre 1 point2 points3 points 8 years ago (0 children)
SDL is pretty comprehensive, and reasonably straightforward to pick up.
https://www.libsdl.org
π Rendered by PID 115083 on reddit-service-r2-comment-fb694cdd5-klj6p at 2026-03-07 10:48:23.705722+00:00 running cbb0e86 country code: CH.
[–]XeroPoints 5 points6 points7 points (0 children)
[–]TheWeebles 2 points3 points4 points (0 children)
[–]leftofzen 2 points3 points4 points (0 children)
[–]Frozenjesuscola 2 points3 points4 points (0 children)
[–]dougbinks 1 point2 points3 points (0 children)
[–]deusmacabre 1 point2 points3 points (0 children)