blah
This commit is contained in:
parent
4bf5fa6b87
commit
6c2b46751b
3 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
{-# LANGUAGE TypeFamilies #-}
|
||||||
|
{-# LANGUAGE AllowAmbiguousTypes #-}
|
||||||
module Classes.Renderable where
|
module Classes.Renderable where
|
||||||
|
|
||||||
class Renderable a where
|
class Renderable a where
|
||||||
|
|
|
@ -6,7 +6,7 @@ import qualified Graphics.Rendering.OpenGL as GL
|
||||||
|
|
||||||
import Foreign
|
import Foreign
|
||||||
|
|
||||||
initRenderData = do
|
initSpriteRenderData = do
|
||||||
quadVAO <- GL.genObjectName
|
quadVAO <- GL.genObjectName
|
||||||
quadVBO <- GL.genObjectName
|
quadVBO <- GL.genObjectName
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ executable canvas
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
other-modules: Types
|
other-modules: Types
|
||||||
Types.UserData
|
Types.UserData
|
||||||
|
Classes.Renderable
|
||||||
Renderer
|
Renderer
|
||||||
-- other-extensions:
|
-- other-extensions:
|
||||||
build-depends: base ^>=4.12.0.0
|
build-depends: base ^>=4.12.0.0
|
||||||
|
|
Loading…
Reference in a new issue