Copyright | (c) Sven Panne 2002-2019 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module corresponds to chapter 7 (NURBS) of the GLU specs.
Documentation
type NURBSBeginCallback = PrimitiveMode -> IO () Source #
withNURBSBeginCallback :: NURBSObj -> NURBSBeginCallback -> IO a -> IO a Source #
withNURBSVertexCallback :: NURBSObj -> NURBSVertexCallback -> IO a -> IO a Source #
withNURBSNormalCallback :: NURBSObj -> NURBSNormalCallback -> IO a -> IO a Source #
withNURBSColorCallback :: NURBSObj -> NURBSColorCallback -> IO a -> IO a Source #
type NURBSEndCallback = IO () Source #
withNURBSEndCallback :: NURBSObj -> NURBSEndCallback -> IO a -> IO a Source #
nurbsCurve :: ControlPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr (c GLfloat) -> GLint -> IO () Source #
nurbsSurface :: ControlPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr GLfloat -> GLint -> GLint -> Ptr (c GLfloat) -> GLint -> GLint -> IO () Source #
class TrimmingPoint p Source #
trimmingTarget
Instances
TrimmingPoint Vertex3 Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS trimmingTarget :: Vertex3 GLfloat -> GLenum | |
TrimmingPoint Vertex2 Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS trimmingTarget :: Vertex2 GLfloat -> GLenum |
trimmingCurve :: TrimmingPoint c => NURBSObj -> GLint -> Ptr GLfloat -> GLint -> Ptr (c GLfloat) -> GLint -> IO () Source #
setNURBSCulling :: NURBSObj -> Capability -> IO () Source #
data SamplingMethod Source #
PathLength GLfloat | |
ParametricError GLfloat | |
DomainDistance GLfloat GLfloat | |
ObjectPathLength GLfloat | |
ObjectParametricError GLfloat |
Instances
Eq SamplingMethod Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS (==) :: SamplingMethod -> SamplingMethod -> Bool # (/=) :: SamplingMethod -> SamplingMethod -> Bool # | |
Ord SamplingMethod Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS compare :: SamplingMethod -> SamplingMethod -> Ordering # (<) :: SamplingMethod -> SamplingMethod -> Bool # (<=) :: SamplingMethod -> SamplingMethod -> Bool # (>) :: SamplingMethod -> SamplingMethod -> Bool # (>=) :: SamplingMethod -> SamplingMethod -> Bool # max :: SamplingMethod -> SamplingMethod -> SamplingMethod # min :: SamplingMethod -> SamplingMethod -> SamplingMethod # | |
Show SamplingMethod Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS showsPrec :: Int -> SamplingMethod -> ShowS # show :: SamplingMethod -> String # showList :: [SamplingMethod] -> ShowS # |
setSamplingMethod :: NURBSObj -> SamplingMethod -> IO () Source #
loadSamplingMatrices :: (Matrix m1, Matrix m2) => NURBSObj -> Maybe (m1 GLfloat, m2 GLfloat, (Position, Size)) -> IO () Source #
data DisplayMode' Source #
Instances
Eq DisplayMode' Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS (==) :: DisplayMode' -> DisplayMode' -> Bool # (/=) :: DisplayMode' -> DisplayMode' -> Bool # | |
Ord DisplayMode' Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS compare :: DisplayMode' -> DisplayMode' -> Ordering # (<) :: DisplayMode' -> DisplayMode' -> Bool # (<=) :: DisplayMode' -> DisplayMode' -> Bool # (>) :: DisplayMode' -> DisplayMode' -> Bool # (>=) :: DisplayMode' -> DisplayMode' -> Bool # max :: DisplayMode' -> DisplayMode' -> DisplayMode' # min :: DisplayMode' -> DisplayMode' -> DisplayMode' # | |
Show DisplayMode' Source # | |
Defined in Graphics.Rendering.OpenGL.GLU.NURBS showsPrec :: Int -> DisplayMode' -> ShowS # show :: DisplayMode' -> String # showList :: [DisplayMode'] -> ShowS # |
setDisplayMode' :: NURBSObj -> DisplayMode' -> IO () Source #