Graphics in C

This is a discussion on Graphics in C within the Game Programming forums, part of the General Programming Boards category; How can I use graphics in C?? I use Dev-c++ and also have Borland C++ Compiler 5.5, which is full ...

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

    Graphics in C

    How can I use graphics in C?? I use Dev-c++ and also have Borland C++ Compiler 5.5, which is full of header files. What libs or headers should I have to use graphics??
    ---Programming is like roaming, you never know where you'll end at------

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

    paninaro3000@yahoo.com

  2. #2
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    I assume that you want to use graphics in Windows. You can use OpenGL or DirectX.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  3. #3
    tgm
    tgm is offline
    Registered User tgm's Avatar
    Join Date
    Jun 2002
    Posts
    150
    What you need to look into is a graphics library. These generally are not included with a compiler. Dev-C++ uses the MinGW compiler and has the OpenGL header files needed for development.
    You could also look into Simple DirecMedia Layer (SDL for short) www.libsdl.org. It is a fairly simple straight forward multimedia library that you can use (graphics, sound, input, networking etc). Alternatively, if you're only developing for Windows, you could look into DirectX, which is also a multimedia library. OpenGL is only a graphics library so you'll want to look into another library for input and sound, etc.
    I would recommend checking out SDL. It's much friendlier than DirectX and uses OpenGL for it's 3D graphics stuff (which many people will argue is better than the DirectGraphics component).
    Allegro is also popular here but I've never used it.

  4. #4
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    As I have mentioned twice before, I am working on a IDE that comes with a compiler setup and ready to make games with Allegro. I will post something on this thread when it is done.

    http://www.cprogramming.com/cboard/s...threadid=20353

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Turtle Graphics, how does it work?
    By freddyvorhees in forum C++ Programming
    Replies: 15
    Last Post: 08-28-2009, 09:57 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 05:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21