fwgl-javascript 0.1.0.5 → 0.1.0.6
raw patch · 3 files changed
+5/−1 lines, 3 files
Files
- FWGL/Backend/JavaScript.hs +1/−0
- FWGL/Backend/JavaScript/WebGL/Raw.hs +3/−0
- fwgl-javascript.cabal +1/−1
FWGL/Backend/JavaScript.hs view
@@ -78,6 +78,7 @@ do element <- query $ toJSString "canvas" eventSrc <- source handledEvents element ctx <- JS.getCtx element+ JS.getExtension ctx $ toJSString "WEBGL_depth_texture" (Just w) <- getProp "clientWidth" element >>= fromJSRef (Just h) <- getProp "clientHeight" element >>= fromJSRef focus element -- ... no
FWGL/Backend/JavaScript/WebGL/Raw.hs view
@@ -512,3 +512,6 @@ foreign import javascript unsafe "$1.viewport($2, $3, $4, $5)" glViewport :: Ctx -> Int -> Int -> Int -> Int -> IO ()++foreign import javascript unsafe "$1.getExtension($2)"+ getExtension :: Ctx -> JSString -> IO (JSRef a)
fwgl-javascript.cabal view
@@ -1,5 +1,5 @@ name: fwgl-javascript-version: 0.1.0.5+version: 0.1.0.6 synopsis: FWGL GHCJS backend description: FWGL GHCJS backend homepage: https://github.com/ziocroc/FWGL