Re: ghc-6.0.1 and OpenGL enabled

Sven Eric Panitz <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <oprwp77fd9kexo7t@localhost>
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 <[email protected] 
muenchen.de> wrote:

> 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.)


--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.