2module Graphics.WebGL (mapTriangle, zipTriangle, loadTex, model, webgl) where
6import Graphics.Element (Element)
8import Native.Graphics.WebGL
11type Triangle a = (a,a,a)
13mapTriangle : (a -> b) -> Triangle a -> Triangle b
14mapTriangle f (x,y,z) = (f x, f y, f z)
16zipTriangle : (a -> b -> c) -> Triangle a -> Triangle b -> Triangle c
17zipTriangle f (x,y,z) (x',y',z') = (f x x', f y y', f z z')
19data Shader attr unif vary = Shader
23loadTex : String -> Signal (Response Texture)
24loadTex = Native.Graphics.WebGL.loadTex
28model : Shader attr unif vary -> Shader {} unif vary -> [Triangle attr] -> unif -> Model
29model = Native.Graphics.WebGL.model
31webgl : (Int,Int) -> [Model] -> Element
32webgl = 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