11 lines
242 B
Haskell
11 lines
242 B
Haskell
|
module Classes.Bindable where
|
||
|
|
||
|
-- | typeclass for bindable objects like buffers, vertex arrays or shaders
|
||
|
class Bindable a where
|
||
|
|
||
|
-- bind the object in context
|
||
|
bind :: a -> IO ()
|
||
|
|
||
|
-- release object from context
|
||
|
unbind :: a -> IO ()
|