pituicat/src/Classes/Graphics/Bindable.hs
2020-10-17 16:19:18 +02:00

10 lines
251 B
Haskell

module Classes.Graphics.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 ()