10

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?

Marco Molari
  • 128
  • 1
  • 2
  • 10

7 Answers7

11

Cairo is a nice option if you are looking for ease of usage.

Alok Save
  • 202,538
  • 53
  • 430
  • 533
8

You can use one of the many C++ creative coding frameworks:

yan
  • 20,644
  • 3
  • 38
  • 48
2

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

lwg643
  • 121
  • 2
2

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

MGZero
  • 5,812
  • 5
  • 29
  • 46
  • 1
    Trouble 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
1

Try SFML: http://www.sfml-dev.org/

Karel Petranek
  • 15,005
  • 4
  • 44
  • 68
1

You should be a little more specific:

  1. What platforms do you want to target?

  2. 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.

isekaijin
  • 19,076
  • 18
  • 85
  • 153
0

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.

Vitor Py
  • 5,145
  • 4
  • 39
  • 62