correction: Re: [HOpenGL] vector/vertex specification stuff

Marc Ziegert coeus@gmx.de
Wed, 8 Jan 2003 14:50:33 +0100


Hey, Marc.
*confused* Why did I/you do that ?!? :

> %fun glVertex1s :: GLshort -> IO ()
> %fun glVertex2s :: GLshort  -> GLshort -> IO ()
> %fun glVertex3s :: GLshort  -> GLshort  -> GLshort -> IO ()
> %fun glVertex4s :: GLshort  -> GLshort  -> GLshort  -> GLshort -> IO ()
...
> glVertex1 :: GLShort -> IO ()
> glVertex2 :: GLShort -> GLShort -> IO ()
> glVertex3 :: GLShort -> GLShort -> GLShort -> IO ()
> glVertex4 :: GLShort -> GLShort -> GLShort -> GLShort -> IO ()
> 
> glVertex1 x = glVertex $ vector1 x
> glVertex2 x y = glVertex $ vector2 x y
> glVertex3 x y z = glVertex $ vector3 x y z
> glVertex4 x y z w = glVertex $ vector4 x y z w

- Marc