LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   graphics(geometrical figures) in linux through c or c++? (https://www.linuxquestions.org/questions/linux-general-1/graphics-geometrical-figures-in-linux-through-c-or-c-512587/)

diptenduray 12-21-2006 10:12 AM

graphics(geometrical figures) in linux through c or c++?
 
hi
i wanna do simple graphics in linux like drawing circles lines or other geometrical figures....can anyone tell me how to do it ...i mean what r the libraries required for drawing figures etc using c or c++ as the language...also help me with any reference site for the programmin details.

thnx

theNbomr 12-21-2006 12:44 PM

Two that I know of: cairo & GD. Both have C/C++ bindings AFAIK.

--- rod.

bigrigdriver 12-21-2006 12:49 PM

You will need graphics libraries, such as qt, gtk, or openGL.

A few seconds googling (www.google.com/linux) for 'c++ draw tutorial' will start you off.

diptenduray 12-22-2006 03:14 AM

thank you both of u ...I will start it right off

theNbomr 12-22-2006 12:26 PM

I can't believe I forgot about ImageMagick. It has been around for quite a while, and many distros probably include it right out of the box.

--- rod.

josedsilva 05-16-2008 02:17 PM

You can install svgalib from (http://svgalib.org) if you want to draw graphics without the need for X windows.
Svgalib has a nice library, namely vgagl, that provides you with basic drawing primitives.
I have written a wrapper library for svgalib in C that makes graphics management much easier. You can mail me at josedsilva@yahoo.com for the latest source code.


All times are GMT -5. The time now is 06:53 PM.