pituicat/src/Classes/Graphics/Bindable.hs

11 lines
251 B
Haskell
Raw Normal View History

2020-10-17 14:18:42 +00:00
module Classes.Graphics.Bindable where
2020-10-12 04:08:33 +00:00
-- | 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 ()