OpenGL-2.2.1.1: A binding for the OpenGL graphics system

Portabilityportable
Stabilitystable
Maintainersven.panne@aedion.de

Graphics.Rendering.OpenGL.GLU.NURBS

Description

This module corresponds to chapter 7 (NURBS) of the GLU specs.

Documentation

data NURBSObj

withNURBSObj :: a -> (NURBSObj -> IO a) -> IO a

type NURBSEndCallback = IO ()

checkForNURBSError :: NURBSObj -> IO a -> IO a

nurbsBeginEndCurve :: NURBSObj -> IO a -> IO a

nurbsCurve :: ControlPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr (c GLfloat) -> GLint -> IO ()

nurbsBeginEndSurface :: NURBSObj -> IO a -> IO a

nurbsSurface :: ControlPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr GLfloat -> GLint -> GLint -> Ptr (c GLfloat) -> GLint -> GLint -> IO ()

nurbsBeginEndTrim :: NURBSObj -> IO a -> IO a

pwlCurve :: TrimmingPoint p => NURBSObj -> GLint -> Ptr (p GLfloat) -> GLint -> IO ()

trimmingCurve :: TrimmingPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr (c GLfloat) -> GLint -> IO ()

data NURBSMode

Instances

Eq NURBSMode 
Ord NURBSMode 
Show NURBSMode 

loadSamplingMatrices :: (Matrix m1, Matrix m2) => NURBSObj -> Maybe (m1 GLfloat, m2 GLfloat, (Position, Size)) -> IO ()