1module Graphics.WebGL (makeGL, Vertex, bufferMesh, transform, mesh, webgl) where
11import Graphics.Element (Element)
12import Native.Graphics.WebGL
14data GLContext = Fake_Context
16makeGL : Int -> Int -> Signal GLContext
17makeGL = Native.Graphics.WebGL.makeGL
19type Vertex = { pos: V3, color: Color }
20type Triangle = (Vertex,Vertex,Vertex)
24bufferMesh : [Triangle] -> GLContext -> Mesh
25bufferMesh = Native.Graphics.WebGL.bufferMesh
27data Scene = SceneNode M4x4 [Scene] | SceneLeaf Mesh
29transform : M4x4 -> [Scene] -> Scene
35webgl : GLContext -> Scene -> Element
36webgl = 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