What the (minimal) C-graphics library provides these functions

I need to replace nano-X material in our linux embedded application and require replacement for the drawing functions Arc, Rect, FillRect, Ellipse, FillEllipse, Line, Text, DrawImageFromFile .

Does anyone know of a suitable open source library that I can use to replace them? Ideally, it should work with the pixel buffer in 16-bit color, so that it is possible to write to the linux framebuffer device.

I was thinking about libcairo , but this is a pretty big package for this purpose. The use of Qt 4.7 is planned for the future, and I am sure that it contains the necessary drawing functions. Should I go straight with this?

+4
source share
2 answers

The first library that comes to mind is SDL . Also check out GGI (this is much simpler than SDL). FLTK also have a simple 2D / 3D interface, but it is C ++.

+4
source

I think you should go straight with Qt (a pretty big package too, though) if you are going to use it; it will be much easier to handle dependencies and it will do whatever you need.

+1
source

Source: https://habr.com/ru/post/1344741/


All Articles