Simple graphics with gnu

This is a discussion on Simple graphics with gnu within the Linux Programming forums, part of the Platform Specific Boards category; Could anyone give me an example on how to make a simple vga program with the GNU C /C++ compiler ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    79

    Simple graphics with gnu

    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?

  2. #2
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    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 will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    79
    What compiler might be good to use while programming in X?

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    79
    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.
    All generalizations are false

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    79
    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?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simple 2d "putpixel" api for windows?
    By spiky in forum C Programming
    Replies: 2
    Last Post: 10-27-2005, 03:44 PM
  2. Graphics tutorial
    By ssjnamek in forum C++ Programming
    Replies: 1
    Last Post: 08-15-2005, 03:13 AM
  3. a simple Dev-C++ game graphics system
    By shintaro in forum Game Programming
    Replies: 1
    Last Post: 08-11-2005, 06:49 PM
  4. Tutorial for making better computer graphics?
    By supertoad in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 05-02-2005, 01:19 AM
  5. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21