Thread: Graphics library?

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    75

    Graphics library?

    Does standard C have a graphics library for DOS applications?? If not, where can I get a graphics.h or similar to use graphics in a DOS programm
    ---Programming is like roaming, you never know where you'll end at------

    If 'here' is pronounced as 'hear', why 'there' isnt pronounced as 'dear'??

    [email protected]

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Does standard C have a graphics library for DOS applications??
    Standard C is concerned with portable libraries, so if you need something specific to one platform then standard C does not offer it. For this you need a third party library which can be found very easily on any search engine.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    75

    None?

    Then C doesnt have ANY graphics library????

    Jesus, that sucks.
    ---Programming is like roaming, you never know where you'll end at------

    If 'here' is pronounced as 'hear', why 'there' isnt pronounced as 'dear'??

    [email protected]

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Jesus, that sucks.
    It only sucks because you want to draw graphics without having to go install a new library. It only sucks because you probably don't give a hoot about portability, which is one of the most important features of a program. It only sucks because you have to do a little bit more work to draw circles. ISO C is a very portable language, that's one of the best features it has and one of the reasons it's so popular and powerful. A standard graphics library would kill that portability so it was wisely omitted from the standard. If you don't like it, go use VB.

    -Prelude
    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    75
    What about the Turbo C graphics.h?? That is a graphics library!!
    ---Programming is like roaming, you never know where you'll end at------

    If 'here' is pronounced as 'hear', why 'there' isnt pronounced as 'dear'??

    [email protected]

  6. #6
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by Paninaro
    What about the Turbo C graphics.h?? That is a graphics library!!
    Yes, but thats: (and I quote Prelude here)
    Standard C is concerned with portable libraries, so if you need something specific to one platform then standard C does not offer it. For this you need a third party library which can be found very easily on any search engine.
    Note that when you say "standard C", you're are talking about a predefined language that is governed and controlled, and is portable for numerous systems.

    When you ask about graphics libraries, you are talking about a specific OS, eg DOS, Windows, *nix etc etc. These types of libraries are not governed by the "standard".

    Your very first question was:
    >Does standard C have a graphics library for DOS applications??
    The answer is simply no, because "standard C" isn't designed specifically for DOS. To remain portabable it must be generic, and leave all the nasty OS specific stuff to custom libraries supplied with each compiler (or as seperate libs). (Am I repeating here?!)
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  7. #7
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using graphics library
    By arch in forum C++ Programming
    Replies: 2
    Last Post: 01-11-2008, 04:31 PM
  2. GD Graphics Library
    By Welder in forum Windows Programming
    Replies: 0
    Last Post: 11-01-2007, 06:46 PM
  3. Graphics Library
    By Emotions in forum Game Programming
    Replies: 4
    Last Post: 12-23-2004, 06:08 AM
  4. Game Programming FAQ
    By TechWins in forum Game Programming
    Replies: 5
    Last Post: 09-29-2004, 02:00 AM
  5. Need some help choosing a good graphics library
    By dead_cell in forum Game Programming
    Replies: 31
    Last Post: 01-08-2003, 01:30 PM