GLUtil 0.2 → 0.2.1
raw patch · 3 files changed
+3/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Graphics.GLUtil.Textures: TexRGBA :: TexColor
Files
- GLUtil.cabal +1/−1
- src/Graphics/GLUtil.hs +0/−0
- src/Graphics/GLUtil/Textures.hs +2/−1
GLUtil.cabal view
@@ -1,5 +1,5 @@ Name: GLUtil-Version: 0.2+Version: 0.2.1 Synopsis: Miscellaneous OpenGL utilities. License: BSD3 License-file: LICENSE
src/Graphics/GLUtil.hs view
src/Graphics/GLUtil/Textures.hs view
@@ -14,7 +14,7 @@ import Foreign.Storable (Storable) -- |Pixel format of image data.-data TexColor = TexMono | TexRGB | TexBGR+data TexColor = TexMono | TexRGB | TexBGR | TexRGBA -- |A basic texture information record. data TexInfo a = TexInfo { texWidth :: GLsizei@@ -93,6 +93,7 @@ _ -> loadAux Luminance' Luminance loadTex TexRGB = loadAux RGBA' RGB loadTex TexBGR = loadAux RGBA' BGR+ loadTex TexRGBA = loadAux RGBA' RGBA sz = TextureSize2D (texWidth tex) (texHeight tex) pixelType = glType (undefined::Elem a) loadAux i e = withPixels (texData tex) $