Canul Podkopayeva wrote:
> Anyone knows where I can get info on demo programming (game
> programmming?) under Linux?
Linux itself doesn't provide any graphics facilities. You will need to
use libraries such as Xlib, SVGAlib or OpenGL for graphics.
> I don't even know to plot a dot on a tty using C.
You can't plot `dots' on a tty; ttys are character-cell devices.
> While in DOS it's way too easy.
The closest thing to DOS is SVGAlib. It's fairly low-level; it
provides functions to set the screen mode and get the address of video
memory. Then you just write to video memory.
Its main disadvantages are that there are many graphics cards for which
it doesn't support anything better than 320x200x8bpp, and that it's
not particularly portable.
X is portable, and supports a far greater range of video hardware.
OpenGL is much higher level, includes 3D rendering functions. Also,
you don't need to bother with pixel format issues (8/15/16/24/32 bpp).
SVGAlib and X generally come with Linux distributions.
For information on OpenGL and Mesa (a free OpenGL clone), see
http://reality.sgi.com/employees/mjk_asd/opengl-links.html
http://www.ssec.wisc.edu/~brianp/Mesa.html
--
Glynn Clements <[EMAIL PROTECTED]>