vect-0.4.0: A low-dimensional linear algebra library, tailored to computer graphics.Source codeContentsIndex
Data.Vect.Double.OpenGL
Description
OpenGL support, inclduing vertex, texCoord, etc instances for Vec2, Vec3 and Vec4.
Synopsis
radianToDegrees :: RealFrac a => a -> a
degreesToRadian :: Floating a => a -> a
rotate :: Double -> Vec3 -> IO ()
translate :: Vec3 -> IO ()
scale3 :: Vec3 -> IO ()
scale :: Double -> IO ()
class VertexAttrib' a where
vertexAttrib :: AttribLocation -> a -> IO ()
Documentation
radianToDegrees :: RealFrac a => a -> aSource
degreesToRadian :: Floating a => a -> aSource
rotate :: Double -> Vec3 -> IO ()Source
The angle is in radians. (WARNING: OpenGL uses degrees!)
translate :: Vec3 -> IO ()Source
scale3 :: Vec3 -> IO ()Source
scale :: Double -> IO ()Source
class VertexAttrib' a whereSource
Methods
vertexAttrib :: AttribLocation -> a -> IO ()Source
show/hide Instances
Produced by Haddock version 2.4.2