Unix Programming - learning graphics in C/C++

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > learning graphics in C/C++





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author learning graphics in C/C++
Erik Paul

2004-01-28, 1:36 am

After I had finished my console programming course in C, I wanted to
learn to program graphics and using the mouse. I tried it with Visual
C++ 6 in 21 days(under Windows), but that course just seemed to explain
me how to you use a program which can "program for me". But I'm no
friend of click&play-programming, so I remembered that I don't know a
program which can "program for me" under UNIX. I hope that there really
is no program which can do such stuff, so, if I want to learn
programming under UNIX, I have to program everything line by line.
So my actual question is, whether anybody knows where to get a C or C++
course for UNIX where I really have to program every line on my own.

I hope you can help
Thanks in advance

Fletcher Glenn

2004-01-28, 4:35 am



Erik Paul wrote:
quote:

> After I had finished my console programming course in C, I wanted to
> learn to program graphics and using the mouse. I tried it with Visual
> C++ 6 in 21 days(under Windows), but that course just seemed to explain
> me how to you use a program which can "program for me". But I'm no
> friend of click&play-programming, so I remembered that I don't know a
> program which can "program for me" under UNIX. I hope that there really
> is no program which can do such stuff, so, if I want to learn
> programming under UNIX, I have to program everything line by line.
> So my actual question is, whether anybody knows where to get a C or C++
> course for UNIX where I really have to program every line on my own.
>
> I hope you can help
> Thanks in advance
>



You are describing something that is difficult to accomplish. Most UNIX
systems have a window manager that has a protocol for granting access to
the frame buffer. Unless you want to write your own window manager
(which is a gigantic task) you will have to live with the established
protocol for dealing with the existing window manager. Even so, the job
of creating and managing an application that works with a window
manager is quite a task. Even something a simple as a pop-up text box
would require you to write volumes of code. But, this task is already
done in any of several windows packages (like X/Motif). This leaves
you free to develop your graphics application without having to program
every bit of the windows infrastructure as well.

--

Fletcher Glenn

joe durusau

2004-01-28, 4:35 am



Erik Paul wrote:
quote:

> After I had finished my console programming course in C, I wanted to
> learn to program graphics and using the mouse. I tried it with Visual
> C++ 6 in 21 days(under Windows), but that course just seemed to explain
> me how to you use a program which can "program for me". But I'm no
> friend of click&play-programming, so I remembered that I don't know a
> program which can "program for me" under UNIX. I hope that there really
> is no program which can do such stuff, so, if I want to learn
> programming under UNIX, I have to program everything line by line.
> So my actual question is, whether anybody knows where to get a C or C++
> course for UNIX where I really have to program every line on my own.
>
> I hope you can help
> Thanks in advance



You really have to separate C/C++ from the idea of graphics. The
languages themselves have no connection to keyboards, graphics,
screens, etc. There are OS and hardware specific libraries that
allow this kind of thing. Nanosoggy's Visual C++ has such a library.
Many unix systems use something called X-windows. There are
rather huge books and courses on all of the graphics systems.

If you want Unix, try searching for X-windows programming on
the web. You will find lots of stuff.

Speaking only for myself,

Joe Durusau


=?iso-8859-1?Q?Nils_O=2E_Sel=E5sdal?=

2004-01-28, 7:37 am

In article <4017cedc$0$17593$9b622d9e@news.freenet.de>, Erik Paul wrote:
quote:

> After I had finished my console programming course in C, I wanted to
> learn to program graphics and using the mouse. I tried it with Visual
> C++ 6 in 21 days(under Windows), but that course just seemed to explain
> me how to you use a program which can "program for me". But I'm no
> friend of click&play-programming, so I remembered that I don't know a
> program which can "program for me" under UNIX. I hope that there really
> is no program which can do such stuff, so, if I want to learn
> programming under UNIX, I have to program everything line by line.
> So my actual question is, whether anybody knows where to get a C or C++
> course for UNIX where I really have to program every line on my own.


I'm not sure at what level you want to do graphics programming, but
take a look at http://www.gtk.org/ and read the GTK2 tutorial,
it might get you going.

Jeff Schwab

2004-01-28, 8:36 am

Erik Paul wrote:
quote:

> After I had finished my console programming course in C, I wanted to
> learn to program graphics and using the mouse. I tried it with Visual
> C++ 6 in 21 days(under Windows), but that course just seemed to explain
> me how to you use a program which can "program for me". But I'm no
> friend of click&play-programming, so I remembered that I don't know a
> program which can "program for me" under UNIX. I hope that there really
> is no program which can do such stuff, so, if I want to learn
> programming under UNIX, I have to program everything line by line.
> So my actual question is, whether anybody knows where to get a C or C++
> course for UNIX where I really have to program every line on my own.
>
> I hope you can help
> Thanks in advance
>



http://www.linuxjournal.com/article.php?sid=4879

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com