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??
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'??
[email protected]
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)
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.
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
gcc -lalleg
http://www.ciusa.net/~jrgrant/