C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-27-2001, 11:05 AM   #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
bhaany is offline   Reply With Quote
Old 11-30-2001, 08:57 PM   #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
ivandn is offline   Reply With Quote
Old 11-30-2001, 11:29 PM   #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
bhaany is offline   Reply With Quote
Old 12-01-2001, 01:06 AM   #4
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,676
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
Salem is offline   Reply With Quote
Old 12-01-2001, 12:18 PM   #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
ivandn is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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