Assalam-O-Alaekum!
Is graphics.h part of the ANSI C standard library? My guess is not. Can anyone point me to GCC equivalent of graphics.h so that I can do graphics programming in C/C++ without using windowing toolkits like gtk or QT.
ALLAH HAFIZ.
graphics.h (Turbo/Borland C) equivalent for GCC???
-
- Battalion Quarter Master Havaldaar
- Posts: 221
- Joined: Wed Aug 07, 2002 3:02 pm
- Location: Rawalpindi
graphics.h (Turbo/Borland C) equivalent for GCC???
a10n3 s7r1k3r
-
- Battalion Quarter Master Havaldaar
- Posts: 221
- Joined: Wed Aug 07, 2002 3:02 pm
- Location: Rawalpindi
Okay, found a solution
Assalam-O-Alaekum!
SDL (Simple Directmedia Layer) can be used for 2D and 3D graphics programming especially games. It is licensed under LGPL and is available for many different platforms include Linux and Windows.
Some one told me about svgalib and xlib but I don't know much about them.
I hope this information helps someone
ALLAH HAFIZ.
SDL (Simple Directmedia Layer) can be used for 2D and 3D graphics programming especially games. It is licensed under LGPL and is available for many different platforms include Linux and Windows.
Some one told me about svgalib and xlib but I don't know much about them.
I hope this information helps someone
ALLAH HAFIZ.
a10n3 s7r1k3r
svgalib rocks
Hi,
yeah svgalib is the best option i gues if you want no X. I used that to make an X-independent video-player. But dont know why it used to segfault when used inside a Gstreamer plugin, so no real success. Bye.
yeah svgalib is the best option i gues if you want no X. I used that to make an X-independent video-player. But dont know why it used to segfault when used inside a Gstreamer plugin, so no real success. Bye.
"I think therefore I am" --- Rene Descartes
salam
all svgalib programs needs to be run with root priviliges so it may be the worst thing about it. i was facing the same problem of finding some thing like graphics.h. i found opengl to be good with glut for 2d or 3d drawings and if any one want a simple userinterface too with the graphics application glui or many other toolkits can be used with glut.
Re: graphics.h (Turbo/Borland C) equivalent for GCC???
many years ago, a friend had to write an application for someone using turbo c and bgi. he didn't have a pc, though, so what he did was write a library for the x window system that emulated all of graphics.h.s7r1k3r wrote:Assalam-O-Alaekum!
Is graphics.h part of the ANSI C standard library? My guess is not. Can anyone point me to GCC equivalent of graphics.h so that I can do graphics programming in C/C++ without using windowing toolkits like gtk or QT.
ALLAH HAFIZ.
he happily wrote his application on unix, copied it over to the client's box, compiled it under turbo c, and got paid.
if you want, i can ask him for the library. he wrote it about seven years ago, so he may not have the code handy.
-
- Naik
- Posts: 61
- Joined: Sat Jun 01, 2002 2:58 pm
- Location: Islamabad
- Contact: