Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type SceneGraph g = Gr (SceneNode g) SceneEdge
- data SceneEdge = DefaultEdge
- data SceneNode g = SceneNode {}
- nullNode :: Node -> SceneNode g
- trivialGr :: SceneNode g -> SceneGraph g
- data Scene g = Scene {
- sceneGraph :: SceneGraph g
- sceneRoot :: Node
- data Viewport g = Viewport {
- viewCamera :: Node
- viewScene :: Scene g
- data World g = World {
- worldScene :: Scene g
- worldViewports :: [Viewport g]
- data KeyState
- type ClickHandler g = Scene g -> KeyState -> IO (SceneGraph g)
- type DragHandler g = Scene g -> V3 Float -> IO (SceneGraph g, Float)
- type Sink a = a -> IO ()
- data SceneData g
- data Geometry
- data Color
- mapColor :: Color -> V4 Float
- data Phong = Phong {}
- colorToPhong :: Color -> Phong
- llab :: SceneGraph g -> Node -> SceneNode g
Documentation
Empty edge label for scene graphs.
Instances
Eq SceneEdge Source # | |
Ord SceneEdge Source # | |
Defined in Graphics.SceneGraph.Types | |
Show SceneEdge Source # | |
Labellable SceneEdge Source # | |
Defined in Graphics.SceneGraph.Visualise toLabelValue :: SceneEdge -> Label # | |
Show (DragHandler g) Source # | |
Defined in Graphics.SceneGraph.Types showsPrec :: Int -> DragHandler g -> ShowS # show :: DragHandler g -> String # showList :: [DragHandler g] -> ShowS # | |
Show (ClickHandler g) Source # | |
Defined in Graphics.SceneGraph.Types showsPrec :: Int -> ClickHandler g -> ShowS # show :: ClickHandler g -> String # showList :: [ClickHandler g] -> ShowS # |
Scene Node. Made up of data and maybe a widget
Instances
Eq (SceneNode g) Source # | |
Show (DragHandler g) Source # | |
Defined in Graphics.SceneGraph.Types showsPrec :: Int -> DragHandler g -> ShowS # show :: DragHandler g -> String # showList :: [DragHandler g] -> ShowS # | |
Show (ClickHandler g) Source # | |
Defined in Graphics.SceneGraph.Types showsPrec :: Int -> ClickHandler g -> ShowS # show :: ClickHandler g -> String # showList :: [ClickHandler g] -> ShowS # | |
Show (SceneNode g) Source # | |
Labellable (SceneNode g) Source # | |
Defined in Graphics.SceneGraph.Visualise toLabelValue :: SceneNode g -> Label # |
trivialGr :: SceneNode g -> SceneGraph g Source #
Creates a scene graph containing the supplied node
Scene Graph with indicate root node
Scene | |
|
Instances
Show (DragHandler g) Source # | |
Defined in Graphics.SceneGraph.Types showsPrec :: Int -> DragHandler g -> ShowS # show :: DragHandler g -> String # showList :: [DragHandler g] -> ShowS # | |
Show (ClickHandler g) Source # | |
Defined in Graphics.SceneGraph.Types showsPrec :: Int -> ClickHandler g -> ShowS # show :: ClickHandler g -> String # showList :: [ClickHandler g] -> ShowS # |
View port refers to a camera node and has its own Scene which is drawn flattened
Viewport | |
|
A scene with a number of view ports looking onto it.
World | |
|
type ClickHandler g = Scene g -> KeyState -> IO (SceneGraph g) Source #
type DragHandler g = Scene g -> V3 Float -> IO (SceneGraph g, Float) Source #
Scene Node Data.
Geometry. Either a basic GL object or a mesh.
Instances
Simple colors
Phong lighting
colorToPhong :: Color -> Phong Source #
Convert from simple color to Phong