I'd need a very easy to use drawing c or c++ library. This means that I don't need to put buttons, frames or anything else in there, but I need just to draw points, circles, lines on a graphic window. Is that possible?
-
7What is "c/c++"? – Lightness Races in Orbit Jun 15 '11 at 15:35
-
8I wish I could vote down comments. Is it so hard to believe that someone would be equally happy with a C or C++ library? – AShelly Sep 25 '11 at 03:00
7 Answers
If you are working on Windows, try Direct2D, it's very powerful and equally simple to use.
More info at : http://msdn.microsoft.com/en-us/library/dd370990%28v=vs.85%29.aspx

- 121
- 2
SDL is pretty nice. If you really want to get involved, Direct3D and OpenGL are probably the best options.

- 5,812
- 5
- 29
- 46
-
1Trouble with SDL is that, AFAIK, it has few geometry drawing operations and you'll likely have to fall back to setPixel. That said, http://www.pygame.org/docs/ref/draw.html does have what's needed, maybe there's a C/C++ library based on SDL somewhere that does the same? – cib May 04 '13 at 16:22
You should be a little more specific:
What platforms do you want to target?
What do you exactly mean by "easy to use"?
If you are using Windows and just want to learn the concepts of computer graphics, just use the Windows GDI.
If you want to learn computer graphics for mobile devices, use OpenGL. It is a bit harder to use than the Windows GDI, because it is a lower level API, but it is more powerful.

- 19,076
- 18
- 85
- 153
Anti-Grain Geometry has some really nice results. It's not difficult to use. It's a C++ library and I don't know if there are C bindings.

- 5,145
- 4
- 39
- 62