summaryrefslogtreecommitdiff
path: root/GLWidget.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-04-22 03:13:44 -0400
committerJoe Crayne <joe@jerkface.net>2019-04-22 03:36:23 -0400
commitac89ee199abfe893b03cdbb89a426cd0594e06c9 (patch)
treec3542c880eb610e9a2d5d863ec9ba518a32a0b02 /GLWidget.hs
parent36bd8e7133eca5d4e04252c555ee0cc2cc78106e (diff)
objdemo: pass view matrix from haskell.
Diffstat (limited to 'GLWidget.hs')
-rw-r--r--GLWidget.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/GLWidget.hs b/GLWidget.hs
index 19ef129..8620c1a 100644
--- a/GLWidget.hs
+++ b/GLWidget.hs
@@ -82,7 +82,10 @@ oopsG e = do
82oops :: String -> IO () 82oops :: String -> IO ()
83oops s = hPutStrLn stderr s 83oops s = hPutStrLn stderr s
84 84
85runGLApp :: IsWidget b => (GLArea -> IO b) -> WidgetMethods b -> IO () 85runGLApp :: IsWidget b => (GLArea -> IO b) -- ^ Initialize a state object that will be passed
86 -- to all the event handlers.
87 -> WidgetMethods b
88 -> IO ()
86runGLApp mk methods = do 89runGLApp mk methods = do
87 _ <- Gtk.init Nothing 90 _ <- Gtk.init Nothing
88 91