scenegraph-0.2.0.0: Scene Graph
Safe HaskellNone
LanguageHaskell2010

Graphics.SceneGraph.Types

Synopsis

Documentation

type SceneGraph g = Gr (SceneNode g) SceneEdge Source #

Scene Graph based on a Graph

data SceneEdge Source #

Empty edge label for scene graphs.

Constructors

DefaultEdge 

data SceneNode g Source #

Scene Node. Made up of data and maybe a widget

Constructors

SceneNode 

Instances

Instances details
Eq (SceneNode g) Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Methods

(==) :: SceneNode g -> SceneNode g -> Bool #

(/=) :: SceneNode g -> SceneNode g -> Bool #

Show (DragHandler g) Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Show (ClickHandler g) Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Show (SceneNode g) Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Labellable (SceneNode g) Source # 
Instance details

Defined in Graphics.SceneGraph.Visualise

Methods

toLabelValue :: SceneNode g -> Label #

nullNode :: Node -> SceneNode g Source #

Creates an empty scene graph

trivialGr :: SceneNode g -> SceneGraph g Source #

Creates a scene graph containing the supplied node

data Scene g Source #

Scene Graph with indicate root node

Constructors

Scene 

Instances

Instances details
Show (DragHandler g) Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Show (ClickHandler g) Source # 
Instance details

Defined in Graphics.SceneGraph.Types

data Viewport g Source #

View port refers to a camera node and has its own Scene which is drawn flattened

Constructors

Viewport 

Fields

data World g Source #

A scene with a number of view ports looking onto it.

Constructors

World 

data KeyState Source #

Constructors

Up 
Down 

Instances

Instances details
Eq KeyState Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Show KeyState Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Show (ClickHandler g) Source # 
Instance details

Defined in Graphics.SceneGraph.Types

type Sink a = a -> IO () Source #

data SceneData g Source #

Scene Node Data.

Instances

Instances details
Show (SceneData g) Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Labellable (SceneData g) Source # 
Instance details

Defined in Graphics.SceneGraph.Visualise

Methods

toLabelValue :: SceneData g -> Label #

data Geometry Source #

Geometry. Either a basic GL object or a mesh.

Constructors

Mesh2D [V2 Float] 
Mesh3D [(V3 Float, V3 Float)] 

Instances

Instances details
Eq Geometry Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Show Geometry Source # 
Instance details

Defined in Graphics.SceneGraph.Types

data Color Source #

Simple colors

Instances

Instances details
Eq Color Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Methods

(==) :: Color -> Color -> Bool #

(/=) :: Color -> Color -> Bool #

Show Color Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

data Phong Source #

Phong lighting

Instances

Instances details
Eq Phong Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Methods

(==) :: Phong -> Phong -> Bool #

(/=) :: Phong -> Phong -> Bool #

Show Phong Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Methods

showsPrec :: Int -> Phong -> ShowS #

show :: Phong -> String #

showList :: [Phong] -> ShowS #

Default Phong Source # 
Instance details

Defined in Graphics.SceneGraph.Types

Methods

def :: Phong #

colorToPhong :: Color -> Phong Source #

Convert from simple color to Phong