schell / gelatin

A nice Haskell graphics API. There's always room for jello.
BSD 3-Clause "New" or "Revised" License
41 stars 4 forks source link

If size has a power of 2 width and height, generate mipmaps --generateMipmap gl TEXTURE_2D --texParameteri gl TEXTURE_2D TEXTURE_MIN_FILTER NEAREST_MIPMAP_NEAREST texParameteri gl TEXTURE_2D TEXTURE_MAG_FILTER LINEAR texParameteri gl TEXTURE_2D TEXTURE_MIN_FILTER LINEAR texParameteri gl TEXTURE_2D TEXTURE_WRAP_S CLAMP_TO_EDGE texParameteri gl TEXTURE_2D TEXTURE_WRAP_T CLAMP_TO_EDGE bindTexture gl TEXTURE_2D Nothing return (tex, sz) bindTexsAround :: MonadIO m => WebGLRenderingContextBase -> [WebGLTexture] -> m a -> m a bindTexsAround gl texs f = do mapM_ (uncurry bindTex) (zip texs [TEXTURE0 #18

Closed src-of-truth[bot] closed 6 years ago

src-of-truth[bot] commented 6 years ago

.]) Located in "schell/gelatin/gelatin-webgl/src/Gelatin/WebGL/Renderer.hs" on line 216

src-of-truth[bot] commented 6 years ago

Closed in the following commits: 5e453421615324a0dffb4d8c1f48ff9624f6d9b2 fb3e7db300f4e4989e5e1e0b38eeb6ce30cb22d9 86324e94a0c6d7ad4f3b71562e182902538ca530