Please help, being a novice programmer I am interseted to see what I can do with graphics.h. Please help.
Printable View
Please help, being a novice programmer I am interseted to see what I can do with graphics.h. Please help.
Ok you want to learn what graphics.h can do right. So go to the include folder and read the Text and study the commands and funtions and statements and see and learn what they do. Thats what I do to learn on my own, i read the header files and it shows you how to use certain funtions which is included in the header file.
I haven't got graphics.h. Found it on the net, downloaded it and tried it. But it comes up with linking errors to termios.h, vga.h and vgamouse.h which i couldn't find one of them on the net.
why?
Graphics.h has a collection of all the functions you need for writing a program involving graphics. One simple method is (if ur version of C supports) type graphics.h in the C-IDE and then click on CTRL+F1 and it will show you a list of all the functions available in Graphics.h
Most of them need the support of a set of files from the Borland Graphics Interface (popularly called the BGI files). APart from these, they also need the graphics.OBJ file and some library files to work correctly. A good Installer of C would give all that you need. If u need one (a C compiler, older version) mail me and I'd be glad to. (BTW, I use TURBO C for DOS).
Regards,
Sriharsha.
I have devC++4 and it doesn't have graphics stuff by default. Any ideas?
thnx
I use Dev-C++ 4 for my codes and its great. Ok Listen BGI is very slow in graphics so Im saying to you forget graphics.h and move on to Allegro. Allegro is a game Library which can be used on Dev-C++. just go to www.bloodshed.com and go to the extra add-ons and stuff and you will see Allegro for Dev-C++ 4.Because i have been using Turbo C++ 3 for DOS. And to use Graphics it was a hassel to learn and it was quit slow when its compiling. So what im saying to you is forget graphics.h and that BGI crap and move on to Allegro which is easier and much better.:)
OK thnx
But why do people still use grahics?
People use graphics to make the game look more acceptable, you wouldnt want to play a game made out of ASCII now would you :o . So we use graphics i know i would. But for me Im done with 2D graphics and Im doing 3D graphics in a API called OpenGL :D . So all im saying to you is use Allegro for now because people have made pretty nice games with it.Quote:
But why do people still use grahics?
nonono
i was actually asking about why do people still use Borland's graphics.h libraries.....
thnx
You have to start somewhere. You can't go direct on the OpenGL programming.
Its not true at all because i just went straight to OpenGL and im quit good in using it too :p
can u answer my lil qs pls thnx a lot
What was the question any way?Quote:
Originally posted by Nutshell
can u answer my lil qs pls thnx a lot
Too lazy to scroll up? :DQuote:
Originally posted by opengl15
What was the question any way?
Well, the graphcs.h DOESN'T have the functions and stuff, only definitions. You also need the OBJ or LIB files.
Just forget graphics.h because its too much to handle so do like i said and learn Allegro or something similar.:rolleyes: