Pmb wrote:[color=blue]
> "Karl Heinz Buchegger" <kbuchegg@gascad.at> wrote in message
> news:40BF2FF7.3870B916@gascad.at...
>[color=green]
>>Pmb wrote:
>>[color=darkred]
>>>"Christopher Benson-Manica" <ataru@nospam.cyberspace.org> wrote in[/color][/color]
>
> message
>[color=green][color=darkred]
>>>news:c9n5hc$2gt$1@chessie.cirr.com...
>>>
>>>>Pmb <someone@somewhere.com> spoke thus:
>>>>
>>>>
>>>>>I want to be able to take an array of points and plot them on the
>>>
>>>screen. Is
>>>
>>>>>there a way to do this? E.g. I want to be able to graph a function.[/color][/color]
>
> At
>[color=green][color=darkred]
>>>this
>>>
>>>>>point I'm not up to a level in C++ where I want to start learning[/color][/color]
>
> Visual
>[color=green][color=darkred]
>>>C++
>>>
>>>>>so I don't want to go that route.
>>>>
>>>>(newsgroups.borland.com would be glad to help.)
>>>>
>>>>Your post is off-topic for comp.lang.c++.
>>>
>>>It's not off topic since I want to learn how to do this in C++.
>>>[/color]
>>
>>Hmm. I checked the C++ standard and there is nothing mentioned
>>about graphics.
>>
>>The fact that you used C++ is completely unimportant in your case.[/color]
>
>
> I disagree.
>
>[color=green]
>>Your problem is not about C++ but about doing graphics.[/color]
>
>
> That is incorrect. A topic on doing graphics is a topic on the algorithms
> and techniques of graphics. I don't want to know that. I want to know the
> nuts and bolts of function calls and how to use C++ to get the system to do
> graphics
>
> <snip incorrect analogy>
>
> I have a text called "Numerical Methods in C" which shows how to do this. I
> can't follow the code. I want to find a place/material in which something
> similar is done and explained in term of C++.
>
> And I understand what is and is not on topic. Sometimes people disagree
> about what is or is not on topic. I do not post messages which I consider to
> be off topic.
>
> If you consider this off topic then please do not respond. I do not consider
> this off topic.
>
> Pmb
>
>[/color]
The usage of the language, such as which containers to use for graphics
is topical. How to actually draw the pixels isn't.
Perhaps it is time for another one of my graphics rants. You can search
this newsgroup and news:comp.lang.c for my rants on why graphics, color
and displays are not topic. I'll be brief this time.
First off, C++ does not assume nor demand any platform to support
graphics. One can use C++ to program a vending machine, which has
no display. One can also use C++ to program video games or image
processing. However, anything beyond the actual language is off-topic
for this newsgroup. There are newsgroups that love to discuss graphic
algorithms and platform specific groups that discuss how to draw a
a pixel.
Back to the rant. Secondly, there is no standard for graphics. There
was a Graphics Kernel System, but that is more along theory than
implementation. Let us take a small sample, say the Microsoft Windows
PCs. There is no standard as to pixel organization. The operating
system has many different file formats to support this. Here are some
issues:
1. Colors per pixel (assuming a platform can support colors).
Some systems support one (Black / white), others have 3 or more.
2. Values per color. How many values per color? 24 bit? 8 bit?
3. Color mapping / scheme, which one:
RGB, CMYK, HSB?
4. Vector graphics?
5. Layers or planes. There is no standard for multiple planes,
nonetheless, drawing operations on planes (i.e. translucent,
opaque, blend, etc.).
Let's say that Microsoft has a standard. Can I take a simple program
that draws a toroid in purple and run that on Windows 95, 98, 2000,
ME, XP, and CE and have it display the same?
Can I take the same program, compile and run it on a Linux system?
Can I take the same program, compile and run it on a VAX system?
Can I take the same program, compile and run it on a Ninetendo Game
Cube?
However, I can take a conforming C++ program, compile it on a
supporting (hosted) platform and have it produce the same results.
This is what standardization provides.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book