Documentation fix for unloadAll and example for loading of a shared library (called loadCLib).
This commit is contained in:
12
examples/loadCLib/null/Null.hs
Normal file
12
examples/loadCLib/null/Null.hs
Normal file
@ -0,0 +1,12 @@
|
||||
module Null ( resource ) where
|
||||
|
||||
import API
|
||||
import Data.Dynamic
|
||||
import Prelude hiding (null)
|
||||
import Graphics.Rendering.OpenGL
|
||||
|
||||
resource = null
|
||||
|
||||
-- ! this has to be special: it can't be overridden by the user.
|
||||
resource_dyn :: Dynamic
|
||||
resource_dyn = toDyn resource
|
Reference in New Issue
Block a user