D
dman777
If I want to use terminal 2D graphics in my C programs using KMS, where can I find tutorials or find out how to incorporate/write KMS in my C programs?
Good question. There does not seem to be a sane, portable way to use the
framebuffer. There's /usr/include/linux/fb.h for the (pure)console. I do
not know what to use in xterm. You could use xlib xcb or the dga
extension(the latter full-screen only, but the faster of the three). You
could use one of the higher level libraries (libdirectfb or sdl being
popular). They are a little more complex, so your chances to run into
incompatibilities or brokenness with some bleeding-edge distro is a bit
higher...
I have absolutely no idea if any actual modesetting works by now for
things like the VESAFB kernel module(I assume it does not).
AFAIK The excellent w3m-img web browser does HTML rendering(+images) in
both X and console, so you might want to look at that(read the source).
But the code is just plain ugly.
Good Luck, you will need it...
As far as I understand it, KMS is only for modesetting. not for anydman777 said:That drives me crazy I can not find anything on KMS for programming. I wonder for 2d graphics in putty as the terminal emulator if KMS technology make a difference anyways.
If I use the old school Vesa, would it be a sure way to know it would work on all recent(or 2 year oldish) Linux systems? I found this for it:
https://docs.google.com/viewer?a=v&...xUsiLT&sig=AHIEtbQMgihTVXDSl03-QUY1f4kuRAJKrw
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.