summaryrefslogtreecommitdiff
path: root/src/Codec/Wavefront/TexCoord.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Codec/Wavefront/TexCoord.hs')
-rw-r--r--src/Codec/Wavefront/TexCoord.hs17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/Codec/Wavefront/TexCoord.hs b/src/Codec/Wavefront/TexCoord.hs
index 02e5c5a..0eb09f4 100644
--- a/src/Codec/Wavefront/TexCoord.hs
+++ b/src/Codec/Wavefront/TexCoord.hs
@@ -18,10 +18,25 @@ module Codec.Wavefront.TexCoord where
18-- let TexCoord r s t = TexCoord 0.1 0.2 0.3 18-- let TexCoord r s t = TexCoord 0.1 0.2 0.3
19-- @ 19-- @
20-- 20--
21-- That type is strcit and unboxed. 21-- That type is strict and unboxed.
22data TexCoord = TexCoord { 22data TexCoord = TexCoord {
23 texcoordR :: {-# UNPACK #-} !Float 23 texcoordR :: {-# UNPACK #-} !Float
24 , texcoordS :: {-# UNPACK #-} !Float 24 , texcoordS :: {-# UNPACK #-} !Float
25 , texcoordT :: {-# UNPACK #-} !Float 25 , texcoordT :: {-# UNPACK #-} !Float
26 } deriving (Eq,Show) 26 } deriving (Eq,Show)
27 27
28
29-- |A parameter-space coordinate is a 3D-floating vector. You can access to its components by pattern
30-- matching on them:
31--
32-- @
33-- let ParamCoord r s t = ParamCoord 0.1 0.2 0.3
34-- @
35--
36-- That type is strict and unboxed.
37data ParamCoord = ParamCoord {
38 paramcoordR :: {-# UNPACK #-} !Float
39 , paramcoordS :: {-# UNPACK #-} !Float
40 , paramcoordT :: {-# UNPACK #-} !Float
41 } deriving (Eq,Show)
42