on master help sign in
The box is resizable
commit4384bf8360f5bb39c9c97cf8c7dcef68b951da5e authorJohn P Mayer Jr <john.p.mayer.jr@gmail.com> dateFri 13 Dec 2013, 23:35 (13 years ago) parenta8a4f79
1 file changed+2−1
tests/good/Box.elm+2−1
tests/good/Box.elm+2−1
@@ -1,6 +1,7 @@
11
22import MJS (V3,M4x4,v3,m4x4makeRotate,m4x4makePerspective,m4x4makeLookAt,m4x4mul)
33import Graphics.WebGL (Program, link, Triangle, zipTriangle, Buffer, bind, Model, encapsulate, webgl)
4+import Window(dimensions)
45
56-- Define what our geometry looks like
67
@@ -76,5 +77,5 @@ rot = (\t -> { rot = m4x4mul (m4x4makeRotate (3*t) (v3 0 1 0)) (m4x4makeRotate (
7677draw : Signal [Model]
7778draw = combine [ (encapsulate prog buf) <~ rot ]
7879
79−main = webgl (400,400) <~ draw
80+main = webgl <~ dimensions ~ draw
8081