Thread: need graphics.h explaining.

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    1

    Question need graphics.h explaining.

    Please help, being a novice programmer I am interseted to see what I can do with graphics.h. Please help.

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    31

    Red face Read and find out!!!!!!!

    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.
    - Read to Learn, and Learn to Read -

  3. #3
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    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?

  4. #4
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192

    Thumbs up

    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.
    Help everyone you can

  5. #5
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    I have devC++4 and it doesn't have graphics stuff by default. Any ideas?

    thnx

  6. #6
    Registered User
    Join Date
    Mar 2002
    Posts
    31

    Talking Me too I use it

    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.
    - Read to Learn, and Learn to Read -

  7. #7
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    OK thnx

    But why do people still use grahics?

  8. #8
    Registered User
    Join Date
    Mar 2002
    Posts
    31

    ??????????????

    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 . 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 . So all im saying to you is use Allegro for now because people have made pretty nice games with it.
    - Read to Learn, and Learn to Read -

  9. #9
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    nonono

    i was actually asking about why do people still use Borland's graphics.h libraries.....

    thnx

  10. #10
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    You have to start somewhere. You can't go direct on the OpenGL programming.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  11. #11
    Registered User
    Join Date
    Mar 2002
    Posts
    31

    Angry Thats not true.....

    Its not true at all because i just went straight to OpenGL and im quit good in using it too
    - Read to Learn, and Learn to Read -

  12. #12
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    can u answer my lil qs pls thnx a lot

  13. #13
    Registered User
    Join Date
    Mar 2002
    Posts
    31

    Smile What was it?

    Originally posted by Nutshell
    can u answer my lil qs pls thnx a lot
    What was the question any way?
    - Read to Learn, and Learn to Read -

  14. #14
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Re: What was it?

    Originally posted by opengl15


    What was the question any way?
    Too lazy to scroll up?

    Well, the graphcs.h DOESN'T have the functions and stuff, only definitions. You also need the OBJ or LIB files.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  15. #15
    Registered User
    Join Date
    Mar 2002
    Posts
    31

    Angry Forget graphics.h

    Just forget graphics.h because its too much to handle so do like i said and learn Allegro or something similar.
    - Read to Learn, and Learn to Read -

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. where is graphics.h?
    By voodoo3182 in forum C Programming
    Replies: 5
    Last Post: 08-06-2005, 09:48 PM
  2. problem with graphics.h
    By Dauthi in forum C++ Programming
    Replies: 2
    Last Post: 01-27-2003, 04:37 AM
  3. Does graphics.h work with windows??
    By sundeeptuteja in forum C++ Programming
    Replies: 6
    Last Post: 09-13-2002, 09:08 AM
  4. graphics.h
    By Seti in forum C++ Programming
    Replies: 2
    Last Post: 02-28-2002, 04:11 PM
  5. graphics.h
    By AM in forum C Programming
    Replies: 2
    Last Post: 01-14-2002, 01:11 PM