module Graphics.Rendering.Rect.Backgrounds(Backgrounds(..), renderBackgrounds) where
import Graphics.Rendering.Rect.CSS.Background
import Graphics.Rendering.Rect.Types
import qualified Data.ByteString.Char8 as B8
baseVertexShader = B8.pack $ unlines [
"#version 330 core;",
"uniform mat4 transform;",
"in vec2 pos;",
"void main() { gl_Position = pos * transform; }"
]
baseFragmentShader = B8.pack $ unlines [
"#version 330 core;",
"out vec4 fcolour;",
"in vec4 colour;",
"void main() { fcolour = colour; }"
]
renderBackgrounds :: Backgrounds -> Rects -> IO ()
renderBackgrounds _ _ = return ()