Drawing and images in C

  • Thread starter Michael Kragh Pedersen
  • Start date
M

Michael Kragh Pedersen

I'm making a program in C, in which I would like to be able to show
images and to draw on the screen. How can I do that?

Michael K. P.
 
I

infobahn

Michael said:
I'm making a program in C, in which I would like to be able to show
images and to draw on the screen. How can I do that?

This depends to a large extent on which platform(s) you wish to target.
Basically, you need to find a graphics library that is supported on
(or at least available for!) your platform, and use its routines to do
graphical things you want to do. The following list is most definitely
non-exhaustive.

MS-DOS: (Borland) BGI, various Microsoft C extensions, Allegro.

Win32: Win32 API, GTK+, SDL, Allegro.

Linux: (at least) XLib, GTK+, SDL, Allegro(?).

Atari: last I checked, Atari machines had a graphics library in
ROM, called VDI.

Mac etc: no idea, sorry.

Discussion of how to use these libraries is beyond the scope generally
accepted as topical by comp.lang.c regular contributors, so you will
need to find a newsgroup that deals with the platform you are targeting
if you want further help.
 
J

Jesse Meyer

Michael Kragh Pedersen said:
I'm making a program in C, in which I would like to be able to show
images and to draw on the screen. How can I do that?

That question is off-topic for this group: the group is dedicated
to discussing standard c, which tends to be a rather narrow subject.
The c language has no way of showing an image or drawing on the
screen, that capability tends to be platform dependent and is provided
by non-standard c libraries.

comp.os.ms-windows.programmer.win32 is probably the group you are
looking for (you didn't specify an OS, I'm assuming windows). But
don't post: Go to groups.google.com or groups.google.ca and
search the archives for your question. You don't want to ask
the same question that was answered last week!

However, your question is poorly worded, I suggest reading this
first:

http://www.catb.org/~esr/faqs/smart-questions.html

Google's web search is also an alternative, and is probably worth
checking first, try searching for "<platform> programming tutorial".
When I tried searching for "windows programming tutorial" I found many
links.
 
M

Michael Kragh Pedersen

infobahn said:
This depends to a large extent on which platform(s) you wish to target.
Basically, you need to find a graphics library that is supported on
(or at least available for!) your platform, and use its routines to do
graphical things you want to do. The following list is most definitely
non-exhaustive.

MS-DOS: (Borland) BGI, various Microsoft C extensions, Allegro.

Win32: Win32 API, GTK+, SDL, Allegro.

Linux: (at least) XLib, GTK+, SDL, Allegro(?).

Atari: last I checked, Atari machines had a graphics library in
ROM, called VDI.

Mac etc: no idea, sorry.

Discussion of how to use these libraries is beyond the scope generally
accepted as topical by comp.lang.c regular contributors, so you will
need to find a newsgroup that deals with the platform you are targeting
if you want further help.
Well, since it's only something, I'm making for my own computer, I can
settle with Win32 :)

But I will do that, although for me, the scope of this newsgroup is
logically everything, that has to do with the C language...you can't
really expect ppl to read from the name, that it's only for standard C,
I think :)

Michael K. P.
 
J

Jesse Meyer

Michael Kragh Pedersen said:
But I will do that, although for me, the scope of this newsgroup is
logically everything, that has to do with the C language...you can't
really expect ppl to read from the name, that it's only for standard C,
I think :)

That's why its considered polite to hunt down any FAQs the newsgroup
has, as well as to search the group's archives to see if the question
has been asked before.
 
M

Michael Kragh Pedersen

Jesse said:
That's why its considered polite to hunt down any FAQs the newsgroup
has, as well as to search the group's archives to see if the question
has been asked before.
The last is true, and I usually do that every time, but I hardly ever
find the answers, I need :)

Michael K. P.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,881
Members
47,418
Latest member
NoellaXku

Latest Threads

Top