hi, i wondering, how can i use graphics in ansi c ?
i use linux and gcc . thanks
hi, i wondering, how can i use graphics in ansi c ?
i use linux and gcc . thanks
There is no such thing as graphics in ANSI-C.
You need a library of some sort, for example
Simple DirectMedia Layer
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Hello, you may check out a number of multimedia libraries.
SDL was mentioned above. You may also check out SFML or programming in OpenGL directly. You will find a lot of C++ libraries, but you can find C versions of most as well. SFML has a nice plain C library and it's much easier to use than SDL.
SFML - Simple and Fast Multimedia Library
nice, thanks @Salem.My question is stupid but ,it does not work in CLI?SDL supports Linux, Windows, Windows CE, BeOS, MacOS, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported.
Correct - Command Line Interface is text oriented.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Now I noticed that if I do a new project(in code blocks) is listed among others and SDL.I need to install the library?
Yes, you will need to install something.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
ok, thanks for the replies and sorry for offtopic
It's not off topic. It can be a bit tricky to install new libraries in Windows. It tends to be a bit easier in Linux. If you don't have a firm grasp of the command line, and the utilities you use it will be even more daunting to install new libraries. If you need more help finding a tutorial on getting set up with a multi media library let us know.