Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Hash = Int
- type Tags = (ExprForm, GLSLType, String, Hash, [Either Expr Hash])
- type HashTree = Tree (ExprForm, GLSLType, String, Hash, [Either Expr Hash])
- getHash :: HashTree -> Hash
- getExprForm :: HashTree -> ExprForm
- toHashTree :: Tree (ExprForm, GLSLType, String) -> Tree (ExprForm, GLSLType, String, Hash, [Either Expr Hash])
- type Id = Int
- type GLSL = (IntMap (ExprForm, GLSLType, String, [Either Expr Hash]), [(ExprForm, GLSLType, String, Hash, [Either Expr Hash])])
- initialGLSL :: GLSL
- toContext :: HashTree -> GLSL
- genContext :: Expressible a => a -> GLSL
- hash2Name :: Hash -> String
- getTopLevel :: GLSL -> Expr
- contextToAssignments :: GLSL -> [String]
- assign :: (ExprForm, GLSLType, String, Hash, [Either Expr Hash]) -> String
- tagsToExpr :: Tags -> Expr
Documentation
getExprForm :: HashTree -> ExprForm Source
toHashTree :: Tree (ExprForm, GLSLType, String) -> Tree (ExprForm, GLSLType, String, Hash, [Either Expr Hash]) Source
type GLSL = (IntMap (ExprForm, GLSLType, String, [Either Expr Hash]), [(ExprForm, GLSLType, String, Hash, [Either Expr Hash])]) Source
Add if in first, variabalize!
genContext :: Expressible a => a -> GLSL Source
getTopLevel :: GLSL -> Expr Source
contextToAssignments :: GLSL -> [String] Source
tagsToExpr :: Tags -> Expr Source