diff options
author | Joe Crayne <joe@jerkface.net> | 2019-04-22 03:13:44 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2019-04-22 03:36:23 -0400 |
commit | ac89ee199abfe893b03cdbb89a426cd0594e06c9 (patch) | |
tree | c3542c880eb610e9a2d5d863ec9ba518a32a0b02 /GLWidget.hs | |
parent | 36bd8e7133eca5d4e04252c555ee0cc2cc78106e (diff) |
objdemo: pass view matrix from haskell.
Diffstat (limited to 'GLWidget.hs')
-rw-r--r-- | GLWidget.hs | 5 |
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 | |||
82 | oops :: String -> IO () | 82 | oops :: String -> IO () |
83 | oops s = hPutStrLn stderr s | 83 | oops s = hPutStrLn stderr s |
84 | 84 | ||
85 | runGLApp :: IsWidget b => (GLArea -> IO b) -> WidgetMethods b -> IO () | 85 | runGLApp :: IsWidget b => (GLArea -> IO b) -- ^ Initialize a state object that will be passed |
86 | -- to all the event handlers. | ||
87 | -> WidgetMethods b | ||
88 | -> IO () | ||
86 | runGLApp mk methods = do | 89 | runGLApp mk methods = do |
87 | _ <- Gtk.init Nothing | 90 | _ <- Gtk.init Nothing |
88 | 91 | ||