Re: Standard way of graphics in Linux



Jan Panteltje wrote:
On a sunny day (Wed, 13 Sep 2006 16:52:23 +0200) it happened Herbert Kleebauer
<klee@xxxxxxxxx> wrote in <45081B27.451A162C@xxxxxxxxx>:

Exactly that's the problem, the kernel is responsible for the low
level stuff but doesn't provide any support for graphics output
(as far as I understand it).

Thank God for that.

This is done by add-ons, but the problem
is, there seems to be no (or better many) standard for this add-on.

Well X is _the_ standard, if you do not like X you can use svgalib.
I have written several programs that use *xlib*, they are fast, small,
portable to all Linuxes.

Maybe I'm just to stupid to understand it. I would be happy to
use svgalib, X or anything else as long as it is the "Standard way
of graphics in Linux" (the subject of this thread). If I write a
small graphics demo for Windows and tell somebody: download the
binary from ftp://... and take a look at it, then everybody who
uses Windows can execute this demo. Now, how can I do this for
Linux? If I use svgalib to implement it, then it will not run
on a system which has X but not svgalib installed. If I use X,
then it is the other way around.

To make it concrete: ftp://137.193.64.130/pub/assembler/erde.zip
is such a little graphics demo with mouse input. There is a DOS assembler
version (runs also in Win9x,W2k,XP) and a Windows C and assembler version
(runs in any 32 bit Windows version). The C source is only 300 lines
long. Now, which Linux graphics function should I use, so that the
Linux binary can be executed on any 32 bit x86 Linux installation
(not knowing whether the target system has svgalib, X or something
else installed).
.



Relevant Pages

  • Re: Standard way of graphics in Linux
    ... everybody who uses Windows can execute this demo. ... I do this for Linux? ... If I use svgalib to implement it, ... SDL deals with all the gory details: ...
    (comp.os.linux.development.apps)
  • Re: Annouce: XNA Roguelike (working title) v0.1 release
    ... too lazy to boot/emulate into windows. ... with some multimedia additions like sfx,music and graphics. ... C# has terrible console support which ruled out ASCII graphics very ... allowing the code to run on linux. ...
    (rec.games.roguelike.development)
  • Re: Annouce: XNA Roguelike (working title) v0.1 release
    ... A* path finding used in dungeon exploration ... too lazy to boot/emulate into windows. ... with some multimedia additions like sfx,music and graphics. ... allowing the code to run on linux. ...
    (rec.games.roguelike.development)
  • Re: Operating systems at war?
    ... Linux have at least plugins for SVG, which is a more flexible format ... the performance-critical work off-loaded to the graphics card, ... Windows anyway) and has richer sets of GUI libraries on other platforms. ... Most of them have lots of other features not in RISC OS by ...
    (comp.sys.acorn.misc)
  • Re: Windows vs. Linux - HLA
    ... > Windows using MASM32 format or using graphics in Linux. ...
    (comp.lang.asm.x86)