2module Graphics.WebGL (mapTriangle, zipTriangle, model, webgl) where
6import Graphics.Element (Element)
7import Native.Graphics.WebGL
9type Triangle a = (a,a,a)
11mapTriangle : (a -> b) -> Triangle a -> Triangle b
12mapTriangle f (x,y,z) = (f x, f y, f z)
14zipTriangle : (a -> b -> c) -> Triangle a -> Triangle b -> Triangle c
15zipTriangle f (x,y,z) (x',y',z') = (f x x', f y y', f z z')
17data Shader attr unif vary = Shader
21model : Shader attr unif vary -> Shader {} unif vary -> [Triangle attr] -> unif -> Model
22model = Native.Graphics.WebGL.model
24webgl : (Int,Int) -> [Model] -> Element
25webgl = Native.Graphics.WebGL.webgl
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list