简体   繁体   中英

What (minimal) C graphics library provides these functions

I have to replace the nano-X stuff in our linux embedded application and need some replacements 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 these? Ideally it should work with a pixel buffer in 16bit color, so that writing to the linux framebuffer device is possible.

I thought about libcairo but that is a rather big package fro just this purpose. The use of Qt 4.7 is planned for the future and I'm sure it contains the necessary drawing functions. Should I go directly with that?

The first library that comes to mind is SDL . Also have a look at GGI (It is much simpler than SDL). FLTK too have a simple 2D/3D interface but it is C++.

I think you should go directly with Qt (quite a big package too, though) if you're going to use it ; it'll be much easier to handle dependancies, and it'll do everything you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM