简体   繁体   English

什么(最小)C图形库提供这些功能

[英]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 . 我必须在我们的linux嵌入式应用程序中替换nano-X的东西,并需要一些替换绘图函数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. 理想情况下,它应该使用16位颜色的像素缓冲区,以便可以写入linux帧缓冲设备。

I thought about libcairo but that is a rather big package fro just this purpose. 我想到了libcairo但这只是一个相当大的包。 The use of Qt 4.7 is planned for the future and I'm sure it contains the necessary drawing functions. Qt 4.7的使用计划在未来使用,我确信它包含必要的绘图功能。 Should I go directly with that? 我应该直接去那吗?

The first library that comes to mind is SDL . 想到的第一个库是SDL Also have a look at GGI (It is much simpler than SDL). 还要看看GGI (它比SDL简单得多)。 FLTK too have a simple 2D/3D interface but it is C++. FLTK也有简单的2D / 3D界面,但它是C ++。

I think you should go directly with Qt (quite a big package too, though) if you're going to use it ; 如果你打算使用它,我认为你应该直接使用Qt(相当大的包装); it'll be much easier to handle dependancies, and it'll do everything you want. 处理依赖性会更容易,它会做你想要的一切。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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