Could anyone give me an example on how to make a simple vga program with the GNU C /C++ compiler supplied with red hat? Just changing video mode and plotting a pixel.
Does it support assembly btw?
Printable View
Could anyone give me an example on how to make a simple vga program with the GNU C /C++ compiler supplied with red hat? Just changing video mode and plotting a pixel.
Does it support assembly btw?
Let's see...You'll have to probably learn how to programming with X first. Also, I'm not sure about g++ or gcc supporting assembly, but RedHat does come with NASM...A totally free Assembler.
What compiler might be good to use while programming in X?
GCC has an assembler in there somewhere.
svgalib is what you need to find, and probably some docs for it, too.
SVGAlib works from the console, I think.
I just downloaded svgalib and installed everything. The problem is that, being a Linux newbie, I must have happened to set some permission to root only, because everytime I try to run an svgalib program while not being root it says something like "svgalib: unable to get I/O permission".
How do I correct this?