Re: Standard way of graphics in Linux
- From: Bernhard Agthe <Bernhard.Agthe@xxxxxxxxxxxxxxx>
- Date: Thu, 21 Sep 2006 10:01:23 +0200
Hi,
Int 80 is the native interface to the Linux kernel and
no interrupt for graphics output.
Int80 is some arbitrary software interrupt which /may/ be some kernel interface opening some graphics window but it also may be the soft-int to send the actual register to the printer or to the power-off button on a future system.
In Unix there has been a standard environment around for many, many, many years which is called libc. All common system functionality has been made available there via standard functions and structures and will still be available in ten years.
Use of any lower interface is discouraged. You (and the people you want to teach something by your code) will not be able to understand what's going on if you don't use the libc interface.
As a result of all the answers here, I have done some further
reading and I will try to access the X server by it's native
socket interface and not use xlib.
That is as troublesome as not using libc. You'll spend more time debugging your socket interface communication than actually writing code. Xlib is available on all systems which provide X client functionality.
Using the socket interface is comparable to building your own milling machine just for milling one piece. You'll never even get close to a professional system and you run the risk that the tool holder suddently flies away, misses you by inches and gets stuck in the door. You wouldn't do this, would you?
Actually using Xlib is complicated enough by itself, if you write your own socket stuff you'll lose so much functionality (or would you spend additional code to write networking functions?) that you'll problably give up for frustration before even drawing a single window.
Just write your app in Xlib and if you feel confident by the time it's running you can still try to emulate Xlib and go for the socket interface - is this a convenient option for you? Start high-level and go low-level later - so you first understand the mechanisms and interfaces before you try to program them...
Ciao...
.
- Follow-Ups:
- Re: Standard way of graphics in Linux
- From: John Hasler
- Re: Standard way of graphics in Linux
- From: Herbert Kleebauer
- Re: Standard way of graphics in Linux
- References:
- Standard way of graphics in Linux
- From: Herbert Kleebauer
- Re: Standard way of graphics in Linux
- From: Bjoern Schliessmann
- Re: Standard way of graphics in Linux
- From: Herbert Kleebauer
- Re: Standard way of graphics in Linux
- From: Wolfgang Draxinger
- Re: Standard way of graphics in Linux
- From: Herbert Kleebauer
- Re: Standard way of graphics in Linux
- From: Jan Panteltje
- Re: Standard way of graphics in Linux
- From: Herbert Kleebauer
- Re: Standard way of graphics in Linux
- From: Wolfgang Draxinger
- Re: Standard way of graphics in Linux
- From: Herbert Kleebauer
- Standard way of graphics in Linux
- Prev by Date: Re: scope of linux in the corporates...
- Next by Date: SDL questions [Re: Standard way of graphics in Linux]
- Previous by thread: Re: Standard way of graphics in Linux
- Next by thread: Re: Standard way of graphics in Linux
- Index(es):
Relevant Pages
|