Results 1 to 6 of 6

Thread: C Graphics in gcc

  1. #1
    Join Date
    Dec 2009
    Beans
    2

    Arrow C Graphics in gcc

    Hi, I am not very familiar with GCC. Can you please tell me how to do graphics programs in GCC like draw circles,ellipse and all that stuff ?

    Is there any equivalent header file of "Graphics.h" of TurboC in GCC?


  2. #2
    Join Date
    Jul 2006
    Beans
    60

    Re: C Graphics in gcc

    Have you done any C programming at all? Most people would probably use a framework such as SDL to do graphics.

  3. #3
    Join Date
    Aug 2007
    Location
    Kottawa, Sri Lanka
    Beans
    7,387
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: C Graphics in gcc

    Cairo may be what you are looking for.
    Think carefully before executing commands containing "rm", especially "sudo rm -rf ", if you require more information concerning this matter, read this.
    I am an experimenter, give me the most stable OS and I can make it unstable in a few hours.

    C == seriously fast == FTW!

  4. #4
    Join Date
    Dec 2009
    Beans
    2

    Re: C Graphics in gcc

    thanks for telling abt cairo

  5. #5
    Join Date
    Mar 2005
    Beans
    947
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: C Graphics in gcc

    In short, there is no standard for graphics in C, and nothing gcc-specific, either. So you're looking at add-on libraries. SDL is one of the simplest to work with, although lines, circles, etc. aren't its strong suit (it's focused on blitting bitmaps). I've heard good things about Cairo, but I haven't tried it.

  6. #6
    Join Date
    Jan 2007
    Beans
    552

    Re: C Graphics in gcc

    this one's C++, rather than C, but look at

    http://www.openframeworks.cc/

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •