This commit is contained in:
nek0 2020-02-06 23:18:05 +01:00
parent 4bf5fa6b87
commit 6c2b46751b
3 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
module Classes.Renderable where
class Renderable a where

View file

@ -6,7 +6,7 @@ import qualified Graphics.Rendering.OpenGL as GL
import Foreign
initRenderData = do
initSpriteRenderData = do
quadVAO <- GL.genObjectName
quadVBO <- GL.genObjectName

View file

@ -21,6 +21,7 @@ executable canvas
main-is: Main.hs
other-modules: Types
Types.UserData
Classes.Renderable
Renderer
-- other-extensions:
build-depends: base ^>=4.12.0.0