用C语言开发图形界面
在浏览linuxquestions的时候,看到一篇关于Graphics Programming on linux using C的帖子,感觉不错,特来分享一下。
现在关于图形开发的VC,C#,java,QT等IDE大行其道。不过还是有一部分默默无闻的人偏爱着用pure
代码来描绘着自己的世界。
我这里推荐几个,大家可以search一下相关的内容,下面即为keyword。
- OpenGL
- PGPLOT
- GTK
- KDE
- GLUT
- FLTK
- ncurses
- xlib
- QT
- SDL等
更多信息
SDL
SDL is a good library and used by game developers.
##OpenGL
You can also use OpenGL for 3d stuff, but be warned that performance will be poor unless X use 3d accelerated drivers. Otherwise it will use Mesa indirect.
svgalib
svgalib is easy to use, but people tend to overlook it because it doesn’t fit in well with the modern X graphics paradigm. I have a program (experix project in sourceforge) that plots graphs and writes text using a svgalib-based graphics server.
GTK+
GTK+: can be a little overwelming but I was able to understand it a lot better than xlib. It is slower tho i will admit.
never tried svgalib before but thanks for the link ill have to check that out.
GTK+: will confuse you on all its diffrent versions as well and for larger apps it can get a little confusing on what does what or how this is related to that.
ncurses
ncurses: is cool but can be a freekin nightmare. i still dont understand colums
and rows
Qt
Qt: dont know anything about this think i made a program with it before i Knew anything about C
xlib
xlib: Try if you dare you might find it more understandable then me. Never could get my hello world program to display.