
8 IDiscovering
ways with almost identical code. We have found this feature to be extremely helpful
in teaching some of the more difficult parts of a course. These advantages override the
potential objections that, once again, we are giving students code instead of having
them write their own and also acknowledge that we really are using some C++ to
teach the introductory course.
1.5 Hello World: New Style
E ven the simplest application program can be divided into three parts: an initializa-
tion that sets up the shaders and the interface with the window system, a stage that
forms the data and sends the data to the GPU, and a stage that renders the data ...