pituicat/src/Classes/Bindable.hs

11 lines
242 B
Haskell
Raw Normal View History

2020-10-12 04:08:33 +00:00
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 ()