Results 1 to 3 of 3

Thread: graphics in C

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    161

    graphics in C

    Hi all,
    I remember when I used Turbo C under windows that there was a library called <graphics.h>. This thing let you invoke a simple graphics enviroment. Not GUI elements just simple ovals, rectangles, lines, etc. I found it extremely useful for plotting graphs like sines and other math stuff. Is there anything like this under gcc?? If yes, please show me how. It would be cool because currently I have a networks course and we need to gather stats from our protocol implementation and it would look great to graphically show our stats.

    thanks, peace,

    J

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Posts
    634
    I'd be really interested in hear the reply to this, I used grahics.h in the past but its not used widely with newer compilers like VC++ and bloodshed.

    I know grahics can be done with using inline ASM, and i have done this before, but grahics.h was a hell of a lot easier to use compared with ASM...

    anyway I look forward to hearing what others have to say

    i2c

  3. #3
    Senior Member
    Join Date
    Oct 2001
    Posts
    786
    After some searching, I found this: http://www.cs.colorado.edu/~main/bgi/
    Put it into your header/includes, and it should work. I read you need winbgim.cpp and winbgim.h. And use winbgim.h instead of graphics.h. I haven't used it myself, and got this info from here: http://forums.free2code.net/view.php?tid=4037


    I've read some stuff on setting up graphics modes in ASM... ugh! I don't even want to try that. Mode 13h sounded interesting, but I have OpenGL that can take care off all of that screen resolution changing/setting, plus I don't have to worry about messing anything up too badly.

    Have fun,

    -Tim_axe

Posting Permissions

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