Thread: drawing in linux

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    2

    drawing in linux

    Hi..i wan to ask how to draw (line, box, point etc) on C linux?
    what library do they have?

    Thank you

    Haany Boyke

  2. #2
    Registered User ivandn's Avatar
    Join Date
    Oct 2001
    Posts
    49
    Assuming you are talking about XWindows and not console programs their are some XWindows graphics functions, but if you want portable code can use Mesa (OpenGL) which is an install option on redhat or you can download it. You will need to include <GL/glut.h> or some related files.
    Ivan

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    2
    Thanks for your reply....
    But how about if my program is console program?
    the problem is.., my program is a parallel program (using MPI and VPM)...and i want to visualize the result that i get with graphs....and i think i have to use console instead. Will the glut.h work?
    Thanks alot...

    boyke

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    http://invisible-island.net/ncurses/man/ncurses.3x.html
    Simple graphics - just horizontal and vertical lines, perhaps in colour

    http://www.svgalib.org/
    More complex graphics

  5. #5
    Registered User ivandn's Avatar
    Join Date
    Oct 2001
    Posts
    49
    no glut.h needs xwindows but if you are doing serious data visualization for a parrallel process application I would seriouslly consider writing a XWindows app with OpenGL if at all possible.
    Ivan

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  3. OpenGL Linux Line Drawing Problem
    By swanley007 in forum C++ Programming
    Replies: 2
    Last Post: 04-03-2006, 09:31 AM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM