LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2011, 05:30 AM   #1
pugachevsoul
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Linux Kernel GRAPHICS APIs and code description


Hi,
I have been googling all day looking for APIs exposed by the linux kernel for graphics n i haven found any information anywhere. please help me out u guys.

Thanks in advance.
 
Old 02-17-2011, 10:51 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
That's because, pretty much, there AREN'T any.

The idea is "separation of concerns".

The "kernel" handles low-level things (like managing processes, and coordinating device I/O). It's up to higher-level programs and libraries to handle higher-level things (like drawing "lines", "arcs", "polygons" or still higher-level things like "windows" and "scrollbars").

This is a Good Thing.

Soooooooooooo -

Are you interested in the mechanics of driving a "graphics device"? In that case, you might be interested in things like:

1) framebuffer code (in the Linux kernel)
2) video drivers (in the X windows code)

Otherwise, if you're interested in actually "doing graphics", I'd encourage you to look at one of these API's (just a few examples among many):

1) SDL

2) OpenGL

3) GTK+/Cairo

4) Etc. etc [substitute your favorite API for your favorite language/application here ]
 
Old 02-18-2011, 10:06 AM   #3
pugachevsoul
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
thanks a ton Paul..was really helpful..

but, pardon my inquisitiveness,...am I correct if I say that Opengl for instance uses frame buffer apis to draw its points n lines.......?
 
Old 02-18-2011, 10:10 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
No, the OpenGL API would delegate to the video driver.

Last edited by dugan; 02-18-2011 at 11:13 AM.
 
Old 02-18-2011, 11:38 PM   #5
pugachevsoul
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
thank u so much.....
 
Old 03-03-2011, 01:09 PM   #6
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
Just to add, there once *used* to be a project, written about in a Dr. Dobbs magazine, about kernel-ly graphics type thingies, which, AFAIR, was called KGI.
Oh, and does anyone remember SVGALib?

I remember playing DOOM on my old 486, in terminal mode, and when I pressed alt-f2 to go to another terminal, and then came back to the original one, the machine would crash.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel APIs and Code Description chessi Linux - Newbie 2 04-19-2007 11:33 PM
LXer: Newly released Cocotron lets developers code Mac APIs under Windows LXer Syndicated Linux News 0 01-20-2007 05:03 AM
kernel 2.6.17 @ laptop : panic description itazev Linux - Kernel 6 07-21-2006 12:27 PM
How can I get a Turbo C graphics code ported into Linux? qchristy Linux - Software 0 02-25-2006 10:43 AM
kernel APIs related to sk_buff seong moon Linux - Networking 0 08-27-2002 04:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration