
I do not really like the name 'matrixExcursion'. It is so technical a
name. Since quite often the code passed to a matrixExcursion is
in form of a do notation, I found the name locally quite appealing ,since
then your
code looks like:
locally = matrixExcursion
colorFigure n = do
locally $ do
currentColor $= Color4 1 0 0 1
translate$Vector3 0 0 (-n/2)
square n
locally $ do
currentColor $= Color4 0 1 0 1
translate$Vector3 0 0 (n/2)
square n
gruß
Sven Eric
On Tue, 07 Oct 2003 19:06:23 +0200, Sven Panne
Patrick Scheibe wrote:
[...] The push and popMatrix functions dont seem to be there in future. What should I use instead of this? [...]
As Wolfgang has already pointed out, using matrixExcursion is the way to go. (BTW, I'm not very happy with this name, any suggestions are highly appreciated.)
--