Pmb said:
I disagree.
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
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 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