luminance 0.3 → 0.3.0.1
raw patch · 4 files changed
+11/−2 lines, 4 files
Files
- CHANGELOG.md +4/−0
- luminance.cabal +1/−1
- src/Graphics/Luminance/Core/Texture.hs +5/−0
- src/Graphics/Luminance/Texture.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,7 @@+# 0.3.0.1++- Enhanced Texture documentation.+ # 0.3 - All textures can now be used in shaders.
luminance.cabal view
@@ -1,5 +1,5 @@ name: luminance-version: 0.3+version: 0.3.0.1 synopsis: Type-safe, dependently-typed and stateless graphics framework description: This package exposes several modules to work with /GPUs/ in a stateless and type-safe way. Currently, it uses __OpenGL__ as backend hardware technology but
src/Graphics/Luminance/Core/Texture.hs view
@@ -83,8 +83,13 @@ ---------------------------------------------------------------------------------------------------- -- Textures ---------------------------------------------------------------------------------------- +-- |Class of all textures. class Texture t where+ -- |Size of a texture. This is an associated type – /type family/ – because the dimensionality of+ -- a texture relies on its type. type TextureSize t :: *+ -- |In order to index regions of texels in texture, we need another associated type – for the same+ -- dimensionality reason as for 'TextureSize'. type TextureOffset t :: * fromBaseTexture :: BaseTexture -> TextureSize t -> t toBaseTexture :: t -> BaseTexture
src/Graphics/Luminance/Texture.hs view
@@ -10,7 +10,7 @@ module Graphics.Luminance.Texture ( -- * Texture information and creation- Texture+ Texture(TextureSize, TextureOffset) , createTexture -- * Sampling , Sampling(..)