packages feed

typograffiti 0.1.0.0 → 0.1.0.1

raw patch · 2 files changed

+23/−8 lines, 2 files

Files

src/Typograffiti/Cache.hs view
@@ -271,6 +271,19 @@   ]  +liftGL+  :: ( MonadIO m+     , MonadError TypograffitiError m+     )+  => m (Either String a)+  -> m a+liftGL n = do+  let lft = liftEither . first TypograffitiErrorGL+  n >>= lft+++-- | A default operation for allocating one word worth of geometry. This is "word" as in+-- an English word, not a data type. makeDefaultAllocateWord   :: ( MonadIO m      , MonadError TypograffitiError m@@ -286,10 +299,9 @@ makeDefaultAllocateWord getContextSize = do   let position = 0       uv       = 1-      liftGL   = liftEither . first TypograffitiErrorGL-  vert <- liftGL =<< compileOGLShader vertexShader GL_VERTEX_SHADER-  frag <- liftGL =<< compileOGLShader fragmentShader GL_FRAGMENT_SHADER-  prog <- liftGL =<< compileOGLProgram+  vert <- liftGL $ compileOGLShader vertexShader GL_VERTEX_SHADER+  frag <- liftGL $ compileOGLShader fragmentShader GL_FRAGMENT_SHADER+  prog <- liftGL $ compileOGLProgram     [ ("position", fromIntegral position)     , ("uv", fromIntegral uv)     ]
typograffiti.cabal view
@@ -4,12 +4,15 @@ -- -- see: https://github.com/sol/hpack ----- hash: b6bda4deeb70ae65eaeeb1801fcc763f81f9474cdd3e74d8ab791b5e0bf4b539+-- hash: 055bf77ba100e5fea74a7d628f920e9b871482639d2d4be4f35e05f883b816ba  name:           typograffiti-version:        0.1.0.0-synopsis:       Display TTF fonts in OpenGL. Includes caching for fast rendering.-description:    Please see the README on GitHub at <https://github.com/githubuser/typograffiti#readme>+version:        0.1.0.1+synopsis:       Just let me draw nice text already+description:    This is a text rendering library that uses OpenGL and freetype2 to render TTF font strings quickly. It is fast enough to render large chunks of text in real time. This library exists because text rendering is one of the biggest hurdles in Haskell graphics programming - and it shouldn't be!+                Typograffiti includes an MTL style typeclass and a default monad transformer. It does not assume you are using any specific windowing solution. It does assume you are using OpenGL 3.3+.+                Pull requests are very welcome :)+                See https://github.com/schell/typograffiti/blob/master/app/Main.hs for an example. category:       Graphics homepage:       https://github.com/schell/typograffiti#readme bug-reports:    https://github.com/schell/typograffiti/issues