canvas/app/Classes/Renderable.hs

13 lines
259 B
Haskell
Raw Normal View History

2020-02-06 13:41:06 +00:00
{-# LANGUAGE TypeFamilies #-}
2020-02-06 22:18:05 +00:00
{-# LANGUAGE AllowAmbiguousTypes #-}
2020-02-06 13:41:06 +00:00
module Classes.Renderable where
class Renderable a where
type VertexObjects a :: *
type ShaderObjects a :: *
2020-02-07 04:50:19 +00:00
init :: IO ()
2020-02-06 13:41:06 +00:00
2020-02-07 04:50:19 +00:00
draw :: VertexObjects a -> ShaderObjects a -> a -> IO ()