开发者

Easy to use drawing library in c or c++?

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 e开发者_运维百科lse in there, but I need just to draw points, circles, lines on a graphic window. Is that possible?


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


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

  • Cinder
  • openFrameworks
  • polyCode


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


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


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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜